Template:Park trail gallery: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(plurality strikes again!)
m (Cleanup ask)
 
(2 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:Images]] [[Park::{{{Park}}}]] OR [[Category:Images]] [[Trail::{{{Trail}}}]]
  [[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
|widget=carousel
}}
}}
{{#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: