Difference between revisions of "Template:LIRR color/doc"

From blackwiki
Jump to navigation Jump to search
imported>DanTD
(Another attempt to add the color to a line)
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(6 intermediate revisions by 5 users not shown)
Line 9: Line 9:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Argument !!colspan=3| Color !! Line !! Alternate inputs
+
! Argument !!colspan=3| Color !! Line
{{Color template doc|City}}
+
{{Color template doc|City|City Atlantic|City Grand Central|City Main|City Montauk}}
 
| [[City Terminal Zone]]
 
| [[City Terminal Zone]]
| City Atlantic / City Main / City Montauk / City Grand Central
+
{{Color template doc|Port Washington|Main Port Washington}}
{{Color template doc|Port Washington}}
 
 
| [[Port Washington Branch]]
 
| [[Port Washington Branch]]
| Main Port Washington
+
{{Color template doc|Belmont Park|Main Belmont Park}}
{{Color template doc|Belmont Park}}
 
 
| [[Belmont Park (LIRR station)|Belmont Park]]
 
| [[Belmont Park (LIRR station)|Belmont Park]]
| Main Belmont Park
+
{{Color template doc|Hempstead|Main Hempstead}}
{{Color template doc|Hempstead}}
 
 
| [[Hempstead Branch]]
 
| [[Hempstead Branch]]
| Main Hempstead
+
{{Color template doc|Port Jefferson|Main Port Jefferson|Main Port Jefferson Oyster Bay|Main Oyster Bay}}
{{Color template doc|Port Jefferson}}
 
 
| [[Port Jefferson Branch]]
 
| [[Port Jefferson Branch]]
| Main Oyster Bay / Main Port Jefferson Oyster Bay / Main Port Jefferson
 
 
{{Color template doc|Oyster Bay}}
 
{{Color template doc|Oyster Bay}}
 
| [[Oyster Bay Branch]]
 
| [[Oyster Bay Branch]]
|
+
{{Color template doc|Ronkonkoma|Main Ronkonkoma|Greenport}}
{{Color template doc|Ronkonkoma}}
 
 
| [[Ronkonkoma Branch]]
 
| [[Ronkonkoma Branch]]
| Main Ronkonkoma / Greenport
+
{{Color template doc|Babylon|Montauk Babylon|Montauk at Babylon}}
{{Color template doc|Babylon}}
 
 
| [[Babylon Branch]]
 
| [[Babylon Branch]]
| Montauk Babylon / Montauk at Babylon
+
{{Color template doc|West Hempstead|Montauk West Hempstead}}
{{Color template doc|West Hempstead}}
 
 
| [[West Hempstead Branch]]
 
| [[West Hempstead Branch]]
| Montauk West Hempstead
+
{{Color template doc|Montauk|Central}}
{{Color template doc|Montauk}}
 
 
| [[Montauk Branch]]
 
| [[Montauk Branch]]
| Central
+
{{Color template doc|Far Rockaway|Atlantic Far Rockaway|Far Rockaway at Valley Stream}}
{{Color template doc|Far Rockaway}}
 
 
| [[Far Rockaway Branch]]
 
| [[Far Rockaway Branch]]
| Atlantic Far Rockaway / Far Rockaway at Valley Stream
+
{{Color template doc|Long Beach|Atlantic Long Beach}}
{{Color template doc|Long Beach}}
 
 
| [[Long Beach Branch]]
 
| [[Long Beach Branch]]
| Atlantic Long Beach
 
 
{{Color template doc|default}}
 
{{Color template doc|default}}
| All abandoned branches
+
| all abandoned branches
|
 
 
|}
 
|}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
[[Category:United States rail transport color templates|{{PAGENAME}}]]
 
[[Category:United States rail transport color templates|{{PAGENAME}}]]
[[Category:Long Island Rail Road templates|{{PAGENAME}}]]
+
[[Category:Long Island Rail Road templates|color]]
</includeonly>
+
}}</includeonly>

Latest revision as of 00:05, 26 April 2020

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:   60269e 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:   006ec7 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:   00b2a9 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