Difference between revisions of "Template:LACMTA icon"

From blackwiki
Jump to navigation Jump to search
imported>Martijn Hoekstra
(TfD closed as keep)
imported>MSG17
(Changed module reference due to move, at least for now)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{{{{|safesubst:}}}#switch:{{lc:{{{1}}}}}
+
{{#invoke:LACMTA icon|icon}}<noinclude>
| harbor transitway
 
| el monte busway = [[{{ucfirst:{{lc:{{{1}}}}}}}|{{colorbox|#{{LACMTATW color|{{ucfirst:{{lc:{{{1}}}}}}}}}}}]]&nbsp;{{#if:{{{showtext|}}}|[[{{ucfirst:{{lc:{{{1}}}}}}}]]|}}&nbsp;
 
| regional connector = [[Regional Connector Transit Corridor|{{colorbox|#{{LACMTATW color|Regional}}}}]]&nbsp;{{#if:{{{showtext|}}}|[[Regional Connector]]|}}&nbsp;
 
| orange
 
| silver = [[File:LACMTA Square {{ucfirst:{{lc:{{{1}}}}}}} Line.svg|17px|link={{ucfirst:{{lc:{{{1}}}}}}} Line (Los Angeles Metro)|alt={{#if:{{{showtext|}}}|{{ucfirst:{{lc:{{{1}}}}}}} Line|}}]]&nbsp;{{#if:{{{showtext|}}}|[[{{ucfirst:{{lc:{{{1}}}}}}} Line (Los Angeles Metro)|{{ucfirst:{{lc:{{{1}}}}}}} Line]]|}}
 
| blue
 
| green
 
| gold
 
| expo
 
| purple
 
| red = [[File:LACMTA Circle {{ucfirst:{{lc:{{{1}}}}}}} Line.svg|17px|link={{ucfirst:{{lc:{{{1}}}}}}} Line (Los Angeles Metro)|alt={{#if:{{{showtext|}}}|{{ucfirst:{{lc:{{{1}}}}}}} Line|}}]]&nbsp;{{#if:{{{showtext|}}}|[[{{ucfirst:{{lc:{{{1}}}}}}} Line (Los Angeles Metro)|{{ucfirst:{{lc:{{{1}}}}}}} Line]]|}}
 
| crenshaw = [[File:LACMTA Circle {{ucfirst:{{lc:{{{1}}}}}}} Line.svg|17px|link=Crenshaw/LAX Line|alt={{#if:{{{showtext|}}}|Crenshaw/LAX Line|}}]]&nbsp;{{#if:{{{showtext|}}}|[[Crenshaw/LAX Line]]|}}
 
| #default = [[{{ucfirst:{{lc:{{{1}}}}}}} Line (Los Angeles Metro)|{{colorbox|#{{LACMTA color|{{ucfirst:{{lc:{{{1}}}}}}}}}}}]]
 
}}{{#if:{{{2|}}}|({{{2}}})}}<noinclude>
 
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 15:48, 8 November 2019

     

Template documentation[view] [edit] [history] [purge]

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

Input* Output*
{{LACMTA icon|A|showtext=yes}}  A Line
{{LACMTA icon|B|showtext=yes}}  B Line
{{LACMTA icon|C|showtext=yes}}  C Line
{{LACMTA icon|D|showtext=yes}}  D Line
{{LACMTA icon|E|showtext=yes}}  E Line
{{LACMTA icon|G|showtext=yes}}  G Line
{{LACMTA icon|J|showtext=yes}}  J Line
{{LACMTA icon|K|showtext=yes}}  Crenshaw/LAX Line 
{{LACMTA icon|L|showtext=yes}}  L Line
{{LACMTA icon|harbor|showtext=yes}}      Harbor Transitway 
{{LACMTA icon|regional|showtext=yes}}      Regional Connector Transit Corridor 
{{LACMTA icon|el monte|showtext=yes}}      El Monte Busway 

*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}}  A Line
{{LACMTA icon|A}} A Line 

See also