Template:Image: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(add caption)
(allow multiple input)
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
[[Category:Image Class Items]]
</noinclude><includeonly>
</noinclude><includeonly>
{{#set:File=File:{{{File name|}}}}}
{|  
{|  
! [[Property:File|File]]
| [[File::File:{{{File name|}}}]]
|-
! [[Property:Trail|Trail]]
! [[Property:Trail|Trail]]
| [[Trail::{{{Trail|}}}]]
| {{#arraymap:{{{Trail|}}}|,|@@@@|[[Trail::@@@@]]}}
|-
|-
! [[Property:Park|Park]]
! [[Property:Park|Park]]
Line 24: Line 23:
| [[Has Caption::{{{Caption|}}}]]
| [[Has Caption::{{{Caption|}}}]]
|}
|}
[[Category:Image]]</includeonly>
[[Category:Images]]</includeonly>

Latest revision as of 11:09, 16 December 2018

This template is used on image uploads it permits the tagging of images to a park or trail (or both). This will later permit easy incorporation into page galleries. With a simple query on a park or trail page, all uploaded and tagged images will show up in the gallery.

It is expected to be used by the Form:Image but expects the following usage format.

{{Image
 |File name=
 |Trail=
 |Park=
 |Caption=
}}

Edit the page to see the template text.