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

Template:Rail template doc

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

This template creates a wikitable row for documenting line and type parameters for an Adjacent stations data module. It is similar to {{Color template doc}}.

Usage

Note: if the system icon is Non-free content and can only be used on articles with fair use, add |hideicon=true to suppress showing the icon in the template documentation.

Lines

Standard example with no aliases:

{{Rail template doc}}
{{Rail template doc|Washington Metro|Red}}
{{Rail template doc|Washington Metro|Blue}}
{{Rail template doc|Washington Metro|Orange}}
{{Rail template doc|Washington Metro|Yellow}}
{{Rail template doc|Washington Metro|Green}}
{{Rail template doc|Washington Metro|Silver}}
{{Rail template doc||end}}

Gives:

LineKeysColorHex colorIcon
Red Line Red   e51636!important
Blue Line Blue   1574c4!important
Orange Line Orange   f68712!important
Yellow Line Yellow   fcd006!important
Green Line Green   0fab4b!important
Silver Line Silver   9d9f9c!important

Example with an alias:

{{Rail template doc}}
{{Rail template doc|Amtrak|Amtrak Cascades|Cascades}}
{{Rail template doc||end}}
LineKeysColorHex colorIcon
Amtrak Cascades Amtrak Cascades
or Cascades
  223832

Up to 16 aliases can be shown for each row. If there are more than three aliases, some of them are initially hidden in a collapsible container.

Types

Example with types defined:

{{Rail template doc||type}}
{{Rail template doc|MBTA|Green|type=A}}
{{Rail template doc|MBTA|Green|type=B}}
{{Rail template doc|MBTA|Green|type=C}}
{{Rail template doc|MBTA|Green|type=D}}
{{Rail template doc|MBTA|Green|type=E}}
{{Rail template doc||end}}
LineTypeType keysColorHex colorIcon
Green Line Green Line – A branch A   00843D
Green Line Green Line – B branch B   00843D
Green Line Green Line – C branch C   00843D
Green Line Green Line – D branch D   00843D
Green Line Green Line – E branch E   00843D
The above documentation is transcluded from Template:Rail template doc/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Rail_template_doc&oldid=1091936503"
Last edited on 7 June 2022, at 08:07

Languages

    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • 한국어
    • हिन्दी
    • Bahasa Indonesia
    • Magyar
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • ਪੰਜਾਬੀ
    • සිංහල
    • Simple English
    • Slovenčina
    • Slovenščina
    • တႆး
    • ไทย
    • Türkçe
    • اردو
    • Tiếng Việt
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 7 June 2022, at 08:07 (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