Difference between revisions of "Template:LACMTA icon"
Jump to navigation
Jump to search
imported>Epicgenius (noinclude) |
imported>Martijn Hoekstra (TfD closed as keep) |
||
| Line 1: | Line 1: | ||
| − | + | {{{{{|safesubst:}}}#switch:{{lc:{{{1}}}}} | |
| harbor transitway | | harbor transitway | ||
| el monte busway = [[{{ucfirst:{{lc:{{{1}}}}}}}|{{colorbox|#{{LACMTATW color|{{ucfirst:{{lc:{{{1}}}}}}}}}}}]] {{#if:{{{showtext|}}}|[[{{ucfirst:{{lc:{{{1}}}}}}}]]|}} | | el monte busway = [[{{ucfirst:{{lc:{{{1}}}}}}}|{{colorbox|#{{LACMTATW color|{{ucfirst:{{lc:{{{1}}}}}}}}}}}]] {{#if:{{{showtext|}}}|[[{{ucfirst:{{lc:{{{1}}}}}}}]]|}} | ||
Revision as of 14:00, 1 March 2015
[[{{{1}}} Line (Los Angeles Metro)| ]]
| This template uses Lua: |
This template displays colored "dot icons" for the current (and future) lines of the Los Angeles County Metropolitan Transportation Authority Metro Rail system.
With the optional parameter |showtext=yes, the image link is expanded to an image plus text link.
Usage
*Usage note: Metro changed all line names from colors to letters in late 2019. While the line letter should be used in all cases, for backwards compatibility the old color names will continue to work with this template (e.g. "blue" or "A"). The displayed name and icon will be the same regardless of which is used.
"showtext" switch example
| Input* | Output* |
|---|---|
{{LACMTA icon|A|showtext=yes}}
|
|
{{LACMTA icon|A}}
|
See also
- {{LACMTA icon strip}} To display multiple icons in a row:
- {{LACMTA link logo}} To show the Metro logo and name:
Metro (LACMTA) - {{LACMTA color}} To display/use the precise HEX color code of a line. (A Line, B Line, C Line, etc.)
| The above documentation is transcluded from Template:LACMTA icon/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |