Difference between revisions of "Template:MUNI legend"
Jump to navigation
Jump to search
Template documentation
imported>Zzyzx11 (Zzyzx11 moved page Template:MUNI legend to Template:MUNI icon over redirect: Preping for two versions, one with the pure icon, and another with a div wrapper to simulate {{legend}}) |
imported>Zzyzx11 ({{documentation}}) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | # | + | <div class="legend" style="margin:1px 0;">{{MUNI icon|{{{1|T}}}|showtext=yes}} {{#if:{{{2|}}}|{{{2}}}}}</div><noinclude> |
| − | {{ | + | [[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> | ||
Latest revision as of 04:49, 2 March 2014
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)
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |