Difference between revisions of "Template:MUNI legend"

From blackwiki
Jump to navigation Jump to search
imported>Zzyzx11
(re-coding the following: Template:MUNI icon will just render the icon, while Template:MUNI legend will provide a <div> wrapper to simulate {{legend}})
imported>Zzyzx11
({{documentation}})
 
Line 1: Line 1:
 
<div class="legend" style="margin:1px 0;">{{MUNI icon|{{{1|T}}}|showtext=yes}} {{#if:{{{2|}}}|{{{2}}}}}</div><noinclude>
 
<div class="legend" style="margin:1px 0;">{{MUNI icon|{{{1|T}}}|showtext=yes}} {{#if:{{{2|}}}|{{{2}}}}}</div><noinclude>
 
[[Category:Muni Metro templates|{{PAGENAME}}]]
 
[[Category:Muni Metro templates|{{PAGENAME}}]]
 +
 +
{{documentation|content=This template is intended to be used within station and line infoboxes to show an icon and a link to the associated line of the [[Muni Metro]] system. It simulates [[Template:Rail color box]] using the icons from [[Template:MUNI icon]].
 +
 +
The following is an example:
 +
:<code><nowiki>{{MUNI legend|J}}</nowiki></code> renders as: {{MUNI legend|J}}
 +
 +
A second parameter can be used to add a note to the end:
 +
:<code><nowiki>{{MUNI legend|J|(rush hour only)}}</nowiki></code> renders as: {{MUNI legend|J|(rush hour only)}}
 +
}}
 
</noinclude>
 
</noinclude>

Latest revision as of 04:49, 2 March 2014

Template documentation

This template is intended to be used within station and line infoboxes to show an icon and a link to the associated line of the Muni Metro system. It simulates Template:Rail color box using the icons from Template:MUNI icon.

The following is an example:

{{MUNI legend|J}} renders as:

A second parameter can be used to add a note to the end:

{{MUNI legend|J|(rush hour only)}} renders as:
 J Church (rush hour only)