Template:Trail page needs: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(Recreate after failed upgrade)
 
(Trying html comment tags to clean up code layout)
 
(3 intermediate revisions by the same user not shown)
Line 19: Line 19:
}}
}}
</pre>
</pre>
Edit the page to see the template text. Sorry the template code is so ugly, but if I didn't run the fields together it would insert a return making the boxes with a bunch of blank lines.
Edit the page to see the template text.
[[Category:Trail Templates]]</noinclude>
[[Category:Trail Templates]]</noinclude>
<includeonly>{{#if:{{{Hide needs|}}}| |<div class="metadata plainlinks" style="border: 2px solid #C9827E; width: 50%; padding-left: 5px; margin-left:5%; background-color:#FFD1C1" >
<includeonly>{{#if:{{{Hide needs|}}}|  
|<div class="metadata plainlinks" style="border: 2px solid #C9827E; width: 50%; padding-left: 5px; margin-left:5%; background-color:#FFD1C1" >
Please help make this trail page better. Feel free to add anything you believe relevant, but this page has been flagged as needing the following work:
Please help make this trail page better. Feel free to add anything you believe relevant, but this page has been flagged as needing the following work:
{{#if:{{{KML|}}}| * GPS KML Track}}{{#if:{{{Updated KML|}}}| * Updated GPS KML Track}}{{#if:{{{Detail route description|}}}| * Detail to route description}}{{#if:{{{Photos|}}}| * Photos}}{{#if:{{{Winter photos|}}}| * Winter photos}} {{#if:{{{Remove prefix|}}}| * Remove prefixes in page name}} {{#if:{{{Update infobox|}}}| * Update infobox to current layout}} {{#if:{{{Infobox data update|}}}| * Update data in infobox}} {{#if:{{{Trail pins|}}}| * Trail marker pins on map}}{{#if:{{{Other|}}}| * Other={{{Other|}}}]]}} {{#if:{{{Comment|}}}| * Comment:{{{Comment|}}}}} {{#if:{{{Date reviewed|}}}|{{#set:Page needs reviewed on={{{Date reviewed}}}}}}}
{{#if:{{{KML|}}}| * GPS KML Track}}<!--
You '''can''' help by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} editing this page] (Need any help? Read our [[Posting_tutorial|tutorial]]!)
-->{{#if:{{{Updated KML|}}}| * Updated GPS KML Track}}<!--
</div>}}
-->{{#if:{{{Detail route description|}}}| * Detail to route description}}<!--
{{#set:Trail page needs={{#if:{{{KML|}}}|KML}};{{#if:{{{Updated KML|}}}|Updated KML}};{{#if:{{{Detail route description|}}}|Detail route description}};{{#if:{{{Photos|}}}|Photos}};{{#if:{{{Winter photos|}}}|Winter photos}};{{#if:{{{Remove prefix|}}}|Remove prefix}};{{#if:{{{Update infobox|}}}|Update infobox}};{{#if:{{{Infobox data update|}}}|Infobox data update}};{{#if:{{{Trail marker pins|}}}|Trail marker pins}};{{#if:{{{Other|}}}|Other}}|+sep=;}}
-->{{#if:{{{Photos|}}}| * Photos}}<!--
{{#if:{{{Date reviewed|}}}|{{#set:Page needs reviewed on={{{Date reviewed}}}}}}}</includeonly>
-->{{#if:{{{Winter photos|}}}| * Winter photos}}<!--
-->{{#if:{{{Remove prefix|}}}| * Remove prefixes in page name}}<!--
-->{{#if:{{{Update infobox|}}}| * Update infobox to current layout}}<!--
-->{{#if:{{{Infobox data update|}}}| * Update data in infobox}}<!--
-->{{#if:{{{Trail pins|}}}| * Trail marker pins on map}}<!--
-->{{#if:{{{Other|}}}| * {{{Other|}}}}}<!--
-->{{#if:{{{Comment|}}}| * Comment:{{{Comment|}}}}}<!--
-->{{#if:{{{Date reviewed|}}}|{{#set:Page needs reviewed on={{{Date reviewed}}}}}}}
You '''can''' help by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} editing this page] (Need any help? Read our [[Help:Editing|editing tips]]! But seriously just edit and type - we can fix it later)
</div>}}{{#set:Trail page needs={{#if:{{{KML|}}}|KML}};<!--
-->{{#if:{{{Updated KML|}}}|Updated KML}};<!--
-->{{#if:{{{Detail route description|}}}|Detail route description}};<!--
-->{{#if:{{{Photos|}}}|Photos}};<!--
-->{{#if:{{{Winter photos|}}}|Winter photos}};<!--
-->{{#if:{{{Remove prefix|}}}|Remove prefix}};<!--
-->{{#if:{{{Update infobox|}}}|Update infobox}};<!--
-->{{#if:{{{Infobox data update|}}}|Infobox data update}};<!--
-->{{#if:{{{Trail marker pins|}}}|Trail marker pins}};<!--
-->{{#if:{{{Other|}}}|{{{Other|}}}}}|+sep=;}}<!--
-->{{#if:{{{Date reviewed|}}}|{{#set:Page needs reviewed on={{{Date reviewed}}}}}}}</includeonly>

Latest revision as of 22:06, 21 October 2015

This is the trail page needs template. It is expected to be called on trail pages to list the needs of the page. If used, it will list what the page needs and tag the property Trail page needs. Other is expected to be a semicolon (';') separated list of additional needs. The comment field is not a "property" and expected to be used to store general notes or clarifications of needs. Date reviewed is a flag used to indicate (and search for) old major layouts. Enter the date the page was reviewed for needs, it will be stored in Property:Page needs reviewed on. See Trail page needs for the current and previous designations.

It is expected to be used in the following format. Note: an empty assignment is needed to not invoke the need. "True" (or really anything) is needed to request the need.

{{Trail page needs
 | Hide needs = 
 | KML = 
 | Updated KML = 
 | Detail route description = 
 | Photos = 
 | Winter photos = 
 | Remove prefix = 
 | Update infobox = 
 | Infobox data update = 
 | Trail pins = 
 | Other = 
 | Comment = 
 | Date reviewed = 
}}

Edit the page to see the template text.