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

From blackwiki
Jump to navigation Jump to search
imported>DanTD
(attempting to remove a category, again)
imported>Useddenim
({{Color template doc}})
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 !! Alternate inputs
| {{{{BASEPAGENAME}}|City}}
+
{{Color template doc|City}}
 
| [[City Terminal Zone]]
 
| [[City Terminal Zone]]
|-
+
| City Atlantic / City Main / City Montauk
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Port Washington}};" |
+
{{Color template doc|Port Washington}}
| {{{{BASEPAGENAME}}|Port Washington}}
 
 
| [[Port Washington Branch]]
 
| [[Port Washington Branch]]
|-
+
| Main Port Washington
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Belmont Park}};" |
+
{{Color template doc|Belmont Park}}
| {{{{BASEPAGENAME}}|Belmont Park}}
 
 
| [[Belmont Park (LIRR station)|Belmont Park]]
 
| [[Belmont Park (LIRR station)|Belmont Park]]
|-
+
| Main Belmont Park
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Hempstead}};" |
+
{{Color template doc|Hempstead}}
| {{{{BASEPAGENAME}}|Hempstead}}
 
 
| [[Hempstead Branch]]
 
| [[Hempstead Branch]]
|-
+
| Main Hempstead
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Port Jefferson}};" |
+
{{Color template doc|Port Jefferson}}
| {{{{BASEPAGENAME}}|Port Jefferson}}
 
 
| [[Port Jefferson Branch]]
 
| [[Port Jefferson Branch]]
|-
+
| Main Oyster Bay / Main Port Jefferson Oyster Bay / Main Port Jefferson
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Oyster Bay}};" |
+
{{Color template doc|Oyster Bay}}
| {{{{BASEPAGENAME}}|Oyster Bay}}
 
 
| [[Oyster Bay Branch]]
 
| [[Oyster Bay Branch]]
|-
+
|
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Ronkonkoma}};" |
+
{{Color template doc|Ronkonkoma}}
| {{{{BASEPAGENAME}}|Ronkonkoma}}
 
 
| [[Ronkonkoma Branch]]
 
| [[Ronkonkoma Branch]]
|-
+
| Main Ronkonkoma / Greenport
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Babylon}};" |
+
{{Color template doc|Babylon}}
| {{{{BASEPAGENAME}}|Babylon}}
 
 
| [[Babylon Branch]]
 
| [[Babylon Branch]]
|-
+
| Montauk Babylon / Montauk at Babylon
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|West Hempstead}};" |
+
{{Color template doc|West Hempstead}}
| {{{{BASEPAGENAME}}|West Hempstead}}
 
 
| [[West Hempstead Branch]]
 
| [[West Hempstead Branch]]
|-
+
| Montauk West Hempstead
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Montauk}};" |
+
{{Color template doc|Montauk}}
| {{{{BASEPAGENAME}}|Montauk}}
 
 
| [[Montauk Branch]]
 
| [[Montauk Branch]]
|-
+
| Central
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Far Rockaway}};" |
+
{{Color template doc|Far Rockaway}}
| {{{{BASEPAGENAME}}|Far Rockaway}}
 
 
| [[Far Rockaway Branch]]
 
| [[Far Rockaway Branch]]
|-
+
| Atlantic Far Rockaway / Far Rockaway at Valley Stream
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|Long Beach}};" |
+
{{Color template doc|Long Beach}}
| {{{{BASEPAGENAME}}|Long Beach}}
 
 
| [[Long Beach Branch]]
 
| [[Long Beach Branch]]
|-
+
| Atlantic Long Beach
| style="width: 1em; background-color: #{{{{BASEPAGENAME}}|}};" |
+
{{Color template doc|#default}}
| {{{{BASEPAGENAME}}|}}
 
 
| All abandoned branches
 
| All abandoned branches
 +
|
 
|}
 
|}
 +
 
<includeonly>
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->

Revision as of 23:05, 27 July 2013

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 Alternate inputs
{{LIRR color|City}} Sample:   4d5357 City Terminal Zone City Atlantic / City Main / City Montauk
{{LIRR color|Port Washington}} Sample:   c60c30 Port Washington Branch Main Port Washington
{{LIRR color|Belmont Park}} Sample:   60269e Belmont Park Main Belmont Park
{{LIRR color|Hempstead}} Sample:   ce8e00 Hempstead Branch Main Hempstead
{{LIRR color|Port Jefferson}} Sample:   006ec7 Port Jefferson Branch Main Oyster Bay / Main Port Jefferson Oyster Bay / Main Port Jefferson
{{LIRR color|Oyster Bay}} Sample:   00af3f Oyster Bay Branch
{{LIRR color|Ronkonkoma}} Sample:   a626aa Ronkonkoma Branch Main Ronkonkoma / Greenport
{{LIRR color|Babylon}} Sample:   00985f Babylon Branch Montauk Babylon / Montauk at Babylon
{{LIRR color|West Hempstead}} Sample:   00a1de West Hempstead Branch Montauk West Hempstead
{{LIRR color|Montauk}} Sample:   00b2a9 Montauk Branch Central
{{LIRR color|Far Rockaway}} Sample:   6e3219 Far Rockaway Branch Atlantic Far Rockaway / Far Rockaway at Valley Stream
{{LIRR color|Long Beach}} Sample:   ff6319 Long Beach Branch Atlantic Long Beach
{{LIRR color|#default}} Sample:   999999 All abandoned branches