Template:Image: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(image upload template)
 
(allow multiple input)
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
<pre>
<pre>
{{Image
{{Image
  |File=
  |File name=
  |Trail=
  |Trail=
  |Park=
  |Park=
|Caption=
}}
}}
</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|}}}]]
|-
! [[Property:Trail|Trail]]
! [[Property:Trail|Trail]]
| [[Trail::{{{Trail|}}}]]
| {{#arraymap:{{{Trail|}}}|,|@@@@|[[Trail::@@@@]]}}
|-
|-
! [[Property:Park|Park]]
! [[Property:Park|Park]]
| [[Park::{{{Park|}}}]]
| [[Park::{{{Park|}}}]]
|-
! 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.