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

From blackwiki
Jump to navigation Jump to search
imported>Train2104
(ob)
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(12 intermediate revisions by 6 users not shown)
Line 2: Line 2:
 
<!-- Categories and interwikis go at the bottom of this page. -->
 
<!-- Categories and interwikis go at the bottom of this page. -->
  
This is an auxiliary template to standarize colors used in [[Long Island Rail Road]] articles and templates. On blank or invalid input, the template outputs gray.
+
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: <code><nowiki>#{{</nowiki>{{BASEPAGENAME}}|''branch name''<nowiki>}}</nowiki></code> Note that the # symbol is not part of the template.
+
=== Usage ===
 +
In order to call a line's color, the code <code> #&#123;&#123;LIRR color|<i>name</i>}}</code> is used (where ''name'' is replaced by the actual route name or abbreviation). Note that this template is not case sensitive: i.e. <code><nowiki>{{LIRR color|City}}</nowiki></code> produces the same result as <code><nowiki>{{LIRR color|city}}</nowiki></code>. (Note that the # symbol is not part of the template.)
  
 
{| class="wikitable"
 
{| class="wikitable"
|- valign="bottom"
 
!
 
! Output
 
! Line
 
 
|-
 
|-
| style="width: 0.5em; background-color: #{{{{BASEPAGENAME}}|City}};" |  
+
! Argument !!colspan=3| Color !! Line
| {{{{BASEPAGENAME}}|City}}
+
{{Color template doc|City|City Atlantic|City Grand Central|City Main|City Montauk}}
 
| [[City Terminal Zone]]
 
| [[City Terminal Zone]]
|-
+
{{Color template doc|Port Washington|Main Port Washington}}
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Port Washington}};" |
 
| {{{{BASEPAGENAME}}|Port Washington}}
 
 
| [[Port Washington Branch]]
 
| [[Port Washington Branch]]
|-
+
{{Color template doc|Belmont Park|Main Belmont Park}}
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Belmont Park}};" |
 
| {{{{BASEPAGENAME}}|Belmont Park}}
 
 
| [[Belmont Park (LIRR station)|Belmont Park]]
 
| [[Belmont Park (LIRR station)|Belmont Park]]
|-
+
{{Color template doc|Hempstead|Main Hempstead}}
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Hempstead}};" |
 
| {{{{BASEPAGENAME}}|Hempstead}}
 
 
| [[Hempstead Branch]]
 
| [[Hempstead Branch]]
|-
+
{{Color template doc|Port Jefferson|Main Port Jefferson|Main Port Jefferson Oyster Bay|Main Oyster Bay}}
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Port Jefferson}};" |  
 
| {{{{BASEPAGENAME}}|Port Jefferson}}
 
 
| [[Port Jefferson Branch]]
 
| [[Port Jefferson Branch]]
|-
+
{{Color template doc|Oyster Bay}}
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Oyster Bay}};" |
 
| {{{{BASEPAGENAME}}|Oyster Bay}}
 
 
| [[Oyster Bay Branch]]
 
| [[Oyster Bay Branch]]
|-
+
{{Color template doc|Ronkonkoma|Main Ronkonkoma|Greenport}}
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Ronkonkoma}};" |  
 
| {{{{BASEPAGENAME}}|Ronkonkoma}}
 
 
| [[Ronkonkoma Branch]]
 
| [[Ronkonkoma Branch]]
|-
+
{{Color template doc|Babylon|Montauk Babylon|Montauk at Babylon}}
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Babylon}};" |  
 
| {{{{BASEPAGENAME}}|Babylon}}
 
 
| [[Babylon Branch]]
 
| [[Babylon Branch]]
|-
+
{{Color template doc|West Hempstead|Montauk West Hempstead}}
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|West Hempstead}};" |
 
| {{{{BASEPAGENAME}}|West Hempstead}}
 
 
| [[West Hempstead Branch]]
 
| [[West Hempstead Branch]]
|-
+
{{Color template doc|Montauk|Central}}
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Montauk}};" |  
 
| {{{{BASEPAGENAME}}|Montauk}}
 
 
| [[Montauk Branch]]
 
| [[Montauk Branch]]
|-
+
{{Color template doc|Far Rockaway|Atlantic Far Rockaway|Far Rockaway at Valley Stream}}
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Far Rockaway}};" |  
 
| {{{{BASEPAGENAME}}|Far Rockaway}}
 
 
| [[Far Rockaway Branch]]
 
| [[Far Rockaway Branch]]
|-
+
{{Color template doc|Long Beach|Atlantic Long Beach}}
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Long Beach}};" |
 
| {{{{BASEPAGENAME}}|Long Beach}}
 
 
| [[Long Beach Branch]]
 
| [[Long Beach Branch]]
|-
+
{{Color template doc|default}}
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|}};" |
+
| all abandoned branches
| {{{{BASEPAGENAME}}|}}
 
| 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:Templates for LIRR lines|{{PAGENAME}}]]
+
[[Category:Long Island Rail Road templates|color]]
[[Category:Long Island Rail Road templates|{{PAGENAME}}]]
+
}}</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