Template:Park trail gallery: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(add template category - and fix button for trails)
m (Cleanup ask)
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:
  |autocaptions=no
  |autocaptions=no
  |captionproperty=Has Caption
  |captionproperty=Has Caption
|widget=carousel
}}
}}
{{#formlink:form=Image
{{#formlink:form=Image
Line 25: Line 24:
</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

Latest revision as of 08: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: