Template:Park trail gallery: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(plurality strikes again!)
(add template category - and fix button for trails)
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
|widget=carousel
}}
{{#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:  
Line 18: Line 35:
  |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>

Revision as of 11:24, 20 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: