Template:List It Button: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> This is to show a List button on Park and Trail pages for users to make custom lists. It should be called in the following format: <pre> {{List It Button |Page=...")
 
m (fix array)
Line 13: Line 13:
[[Category:List Class Items]]
[[Category:List Class Items]]
</noinclude><includeonly>{{#if:{{{popup|}}}|{{#arraydefine:popup|popup}}|}}{{#if:{{CURRENTLOGGEDUSER}}
</noinclude><includeonly>{{#if:{{{popup|}}}|{{#arraydefine:popup|popup}}|}}{{#if:{{CURRENTLOGGEDUSER}}
|{{#arraydefine:pagename|{{CURRENTLOGGEDUSER}}/{{#titleparts:{{{Page}}}}}}}{{#formlink:form=List|link type=button|link text={{{Text|}}}|target=List:{{CURRENTLOGGEDUSER}}/{{#arrayprint:pagename}}|query string=namespace=List&List[Location]={{#arrayprint:pagename}}&List[Listed By]={{CURRENTUSER}}|{{#arrayprint:popup}}|reload}}
|{{#arraydefine:pagename|{{#titleparts:{{{Page}}}}}}}{{#formlink:form=List|link type=button|link text={{{Text|}}}|target=List:{{CURRENTLOGGEDUSER}}/{{#arrayprint:pagename}}|query string=namespace=List&List[Location]={{#arrayprint:pagename}}&List[Listed By]={{CURRENTUSER}}|{{#arrayprint:popup}}|reload}}
|}}</includeonly>
|}}</includeonly>

Revision as of 11:21, 3 May 2020

This is to show a List button on Park and Trail pages for users to make custom lists.

It should be called in the following format:

{{List It Button
 |Page=
 |Text=
 |popup=
}}

Edit the page to see the template text.