Difference between revisions of "Template:LIRR color"

From blackwiki
Jump to navigation Jump to search
imported>Train2104
(Belmont from schedule)
imported>Useddenim
m (removed case sensitivity)
Line 1: Line 1:
{{#switch:{{{1}}}
+
{{#switch:{{lc:{{{1}}}}}
  | City Atlantic
+
  | city atlantic
  | City Main
+
  | city main
  | City Montauk
+
  | city montauk
  | City=4D5357
+
  | city=4d5357
  | Main Port Washington
+
  | main port washington
  | Port Washington=C60C30
+
  | port washington=c60c30
  | Main Belmont Park
+
  | main belmont park
  | Belmont Park=552988
+
  | belmont park=552988
  | Main Hempstead
+
  | main hempstead
  | Hempstead=CE8E00
+
  | hempstead=ce8e00
  | Main Oyster Bay
+
  | main oyster bay
  | Main Port Jefferson Oyster Bay
+
  | main port jefferson oyster bay
  | Main Port Jefferson
+
  | main port jefferson
  | Port Jefferson=0039A6
+
  | port jefferson=0039a6
  | Oyster Bay=00AF3F
+
  | oyster bay=00af3f
  | Main Ronkonkoma
+
  | main ronkonkoma
  | Greenport
+
  | greenport
  | Ronkonkoma=A626AA
+
  | ronkonkoma=a626aa
  | Montauk Babylon
+
  | montauk babylon
  | Montauk at Babylon
+
  | montauk at babylon
  | Babylon=00985F
+
  | babylon=00985f
  | Montauk West Hempstead
+
  | montauk west hempstead
  | West Hempstead=00A1DE
+
  | west hempstead=00a1de
  | Central
+
  | central
  | Montauk=006983
+
  | montauk=006983
  | Atlantic Far Rockaway
+
  | atlantic far rockaway
  | Far Rockaway at Valley Stream
+
  | far rockaway at valley stream
  | Far Rockaway=6E3219
+
  | far rockaway=6e3219
  | Atlantic Long Beach
+
  | atlantic long beach
  | Long Beach=FF6319
+
  | long beach=ff6319
 
  | #default=999999
 
  | #default=999999
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 22:51, 27 July 2013

999999

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

This is an auxiliary template to standarize colors used in Long Island Rail Road articles and templates. On blank or invalid input, the template defaults to gray.

Usage

In order to call a line's color, the code #{{LIRR color|name}} is used (where name is replaced by the actual route name or abbreviation). Note that this template is not case sensitive: i.e. {{LIRR color|City}} produces the same result as {{LIRR color|city}}. (Note that the # symbol is not part of the template.)

Argument Color Line
{{LIRR color|City}} or …|City Atlantic}} or …|City Grand Central}} or …|City Main}} or …|City Montauk}} Sample:   4d5357 City Terminal Zone
{{LIRR color|Port Washington}} or …|Main Port Washington}} Sample:   c60c30 Port Washington Branch
{{LIRR color|Belmont Park}} or …|Main Belmont Park}} Sample:   552988 Belmont Park
{{LIRR color|Hempstead}} or …|Main Hempstead}} Sample:   ce8e00 Hempstead Branch
{{LIRR color|Port Jefferson}} or …|Main Port Jefferson}} or …|Main Port Jefferson Oyster Bay}} or …|Main Oyster Bay}} Sample:   0039a6 Port Jefferson Branch
{{LIRR color|Oyster Bay}} Sample:   00af3f Oyster Bay Branch
{{LIRR color|Ronkonkoma}} or …|Main Ronkonkoma}} or …|Greenport}} Sample:   a626aa Ronkonkoma Branch
{{LIRR color|Babylon}} or …|Montauk Babylon}} or …|Montauk at Babylon}} Sample:   00985f Babylon Branch
{{LIRR color|West Hempstead}} or …|Montauk West Hempstead}} Sample:   00a1de West Hempstead Branch
{{LIRR color|Montauk}} or …|Central}} Sample:   006983 Montauk Branch
{{LIRR color|Far Rockaway}} or …|Atlantic Far Rockaway}} or …|Far Rockaway at Valley Stream}} Sample:   6e3219 Far Rockaway Branch
{{LIRR color|Long Beach}} or …|Atlantic Long Beach}} Sample:   ff6319 Long Beach Branch
{{LIRR color|default}} Sample:   999999 all abandoned branches