Template:Park trail gallery: Difference between revisions
Jump to navigation
Jump to search
(Remove overlay command to see if fixes can't close problem) |
m (Cleanup ask) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
Example output for Sinking Waters Trail: | |||
{{#ask: | |||
[[Category:Images]] [[Trail::Sinking Waters]] | |||
|?Has Caption | |||
|format=gallery | |||
|autocaptions=no | |||
|captionproperty=Has Caption | |||
}} | |||
{{#formlink:form=Image | |||
|link text=Click here to upload an Image | |||
|link type=button | |||
|query string=Image[Trail]=Sinking Waters | |||
}} | |||
[[Category:Universal Templates]] | |||
</noinclude> | </noinclude> | ||
<includeonly>{{#ask: | <includeonly>{{#ask: | ||
[[Category: | [[Category:Images]] {{#if:{{{Park|}}}|[[Park::{{{Park}}}]]|[[Trail::{{{Trail}}}]]}} | ||
|?Has Caption | |?Has Caption | ||
|format=gallery | |format=gallery | ||
|autocaptions=no | |autocaptions=no | ||
|captionproperty=Has Caption | |captionproperty=Has Caption | ||
}} | }} | ||
{{#formlink:form=Image | {{#formlink:form=Image | ||
|link text=Click here to upload an Image | |link text=Click here to upload an Image | ||
|link type=button | |link type=button | ||
|query string=Image[Park]={{PAGENAME}} | |query string=Image[{{#if:{{{Park|}}}|Park|Trail}}]={{PAGENAME}} | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 07:03, 25 November 2018
This returns a gallery of photos that have been tagged with the defined park or trail.
It should be called in the following format. Typically expected for the current page. It is expected to only use the Park or the Trail parameter
{{Park trail gallery|Park={{PAGENAME}}|Trail={{PAGENAME}}}}
Edit the page to see the template text.
Example output for Sinking Waters Trail: