• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:LACMTA icon/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:LACMTA icon
This is the template sandbox page for Template:LACMTA icon (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:LACMTA icon (sandbox)

This template displays colored "dot icons" for the current (and future) lines of Los Angeles Metro's Metro Rail system.

With the optional parameter |showtext=yes, the image link is expanded to an image plus text link.

Usage

edit
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}}  K Line
{{LACMTA icon|L|showtext=yes}}  L Line
{{LACMTA icon|harbor|showtext=yes}}      Harbor Transitway 
{{LACMTA icon|regional|showtext=yes}}      Regional Connector 
{{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

edit
Input* Output*
{{LACMTA icon|A|showtext=yes}}  A Line
{{LACMTA icon|A}} A Line

See also

edit
  • {{LACMTA icon strip}} To display multiple icons in a row: A Line‍B Line‍C Line‍D Line‍E Line‍G Line‍J Line‍K Line‍L Line
  • {{LACMTA link logo}} To show the Metro logo and name:  Los Angeles Metro
  • {{Rail color}} For the precise HEX color code of a line:   {{Rail color|Los Angeles Metro Rail|A}}
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.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:LACMTA_icon/sandbox&oldid=1001463185"
Last edited on 19 January 2021, at 20:02

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 19 January 2021, at 20:02 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop