Template:Ja-rail-color is deprecated. Please see Category:Japan rail succession modules instead. Use the relevent module from the category and replace usages with {{Rcr|system|line}} |
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
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 |