සැකිල්ල:Ja-rail-color
Appearance
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, purge this page to refresh the color samples.
Usage
[සංස්කරණය]Valid parameters
[සංස්කරණය]Examples
[සංස්කරණය]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 |