Template:Trip Report Button: Difference between revisions
Jump to navigation
Jump to search
m (add some returns for easier understanding) |
m (add template category) |
||
Line 9: | Line 9: | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
[[Category:Trip Report Class Items]] | |||
</noinclude><includeonly>{{#if:{{{popup|}}}|{{#arraydefine:popup|popup}}|}}{{#if:{{CURRENTLOGGEDUSER}} | </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}}|{{#arrayprint:popup}}|reload}} | |{{#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}}|{{#arrayprint:popup}}|reload}} | ||
|<br>''(log in to submit report)''}}</includeonly> | |<br>''(log in to submit report)''}}</includeonly> |
Revision as of 10:40, 20 November 2018
It should be called in the following format:
{{Trip Report Button |Page= |Text= |popup= }}
Edit the page to see the template text.