Template:Ja-rail-color/doc
Appearance
This is a documentation subpage for Template:Ja-rail-color. It may contain usage information, categories and other content that is not part of the original template page. |
This template returns a hex code for the colors of Japanese rail services and rapid transit lines.
In order to call a line's color, the code {{Ja-rail-color|service}}
is used (where service is replaced by the appropriate abbreviation for the service or line.
Adding #
as the optional second parameter will suppress the normally-included preceding # symbol (required for some templates).
- After saving an amendment, to refresh the color samples.
Usage
[edit]Valid parameters
[edit]Examples
[edit]Code | Result |
---|---|
{{color|{{Ja-rail-color|A}}|■}} Toei Asakusa Line
|
■ Toei Asakusa Line |
{{RouteBox|Narita Sky Access Line|Keisei Narita Airport Line|{{Ja-rail-color|KS|N}}|black}}
|
Narita Sky Access Line |
{{JARC|Z}}
|
#8F76D6 |
{{JARC|Z|#}}
|
8F76D6 |
See also
[edit]