Template:Trip Report Button: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
m (trail to trails)
m (spewing formatting stuff, don't want)
 
(6 intermediate revisions by the same user not shown)
Line 9: Line 9:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{{#if:{{{popup|}}}|{{#arraydefine:popup|popup}}|}}{{#if: {{CURRENTLOGGEDUSER}}
[[Category:Trip Report Class Items]]
| {{#arraydefine:pagename|{{#titleparts:{{{1}}}}}}}{{#formlink:form=Trip Report|link type=button|link text={{{2|}}}|target=Report:{{#arrayprint:pagename}}-{{CURRENTTIMESTAMP}}|query string=namespace=Report&Trip Report[Trails]={{#arrayprint:pagename}}&Trip Report[Reported By]={{CURRENTUSER}}|{{#arrayprint:popup}}|reload}}
</noinclude><includeonly>{{#if:{{{popup|}}}|{{#arraydefine:popup|popup}}|}}{{#if:{{CURRENTLOGGEDUSER}}
|{{#arraydefine:pagename|{{#titleparts:{{{Page}}}}}}}{{#formlink:form=Trip Report|link type=button|link text={{{Text|}}}|target=Report:{{#arrayprint:pagename}}-{{CURRENTTIMESTAMP}}|query string=namespace=Report&Trip Report[Trails]={{#arrayprint:pagename}}&Trip Report[Reported By]={{CURRENTUSER}}&Trip Report[Wiki Users on Hike]={{CURRENTUSER}}&Trip Report[Hike Length]={{#show:{{#arrayprint:pagename}}|?Trail distance round trip|link=none}}|{{#arrayprint:popup}}|reload}}
|<br>''(log in to submit report)''}}</includeonly>
|<br>''(log in to submit report)''}}</includeonly>

Latest revision as of 10:09, 8 December 2018

It should be called in the following format:

{{Trip Report Button
 |Page=
 |Text=
 |popup=
}}

Edit the page to see the template text.