This is a documentation subpage for Template:Rail color. It contains usage information, categories and other content that is not part of the original page. |
This template is used on many 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. |
Template:Sidebar Adjacent stations
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}}
→ Lua error: expandTemplate: template "Amtrak color" does not exist.