Template:Rail color
Appearance
From Wikipedia, the free encyclopedia
Warning This template is used on approximately 37,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Pages related to |
Module:Adjacent stations |
---|
(talk | sandbox | sub-pages) |
{{Infobox station }} |
(talk | sandbox | testcases) |
{{Station link }} |
(talk | sandbox | testcases) |
{{Station icon link }} |
(talk | sandbox | testcases) |
{{Rail color }} |
(talk | sandbox | testcases) |
{{Line link }} |
(talk | sandbox | testcases) |
{{Rail icon }} |
(talk | sandbox | testcases) |
{{Rail color box }} |
(talk | sandbox | testcases) |
{{Adjacent stations }} |
(talk | sandbox | testcases) |
{{Line terminus link }} |
(talk | sandbox | testcases) |
This template uses Lua:
Template:Rail color returns an RGB hex code value from a subpage of Module:Adjacent stations or from a helper template of {{S-line }}.
Usage
Module:Adjacent stations/system
or Template:system color
must exist for this template to work.
{{Rail color|system}}
{{Rail color|system|line}}
{{Rail color|system|line|branch}}
Variables
- system is the name of the system or an abbreviation.
- line is the line name, if any.
- branch is the name of the branch or service, if any.
Examples
{{Rail color|Amtrak}}
→ 00537E
The above documentation is transcluded from Template:Rail color/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.