模板:Ja-rail-line/doc
此頁面是Template:Ja-rail-line的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
{{Ja-rail-line|pfn=|(metro indicating)|name=|idx=|nidx=|col=|dir=|first=|pwidth=|lwidth=|dwidth=|nextstop=}}
This template is used for showing layout of a Japanese station.
Parameters
編輯pfn
編輯Input the number of the platform. If you want to input a platform used by multiple line, use Template:ja-rail-linem.
1st parameter
編輯Input "m" in this parameter to show that the line is owned by Tokyo Metro or Tokyo Metropolitan Bureau of Transportation. If you don't, it will show the line is owned by other companies.
name
編輯Input the name of the line. It will link to informed line page.
idx
編輯Use it to make a link displayed different from linked page.
nidx
編輯Use it to disable a link and input different string. When you use it, linename parameter is not needed.
col
編輯Input color of the line. You can use either color name or HTML code with # like #FFFFFF.
dir
編輯Input direction of the trains passing this platform.
nextstop
編輯Input the next stop on the line, if applicable.
first
編輯Input "2" in this parameter to inform whether the line is first line for the station. "3" for the last. "4" for the single platform.
- If you use:
"platform number" | ■ "Line name" | "direction" |
- If you don't use:
"platform number" | ■ "Line name" | "direction" |
- If you used "first" parameter, you can modify width of columns using pwidth for platform column (default:30), lwidth for line column (default:145), dwidth for direction column (default:430).
Difference between this and {{ja-rail-linem}} in parameters
編輯{{ja-rail-line}} | {{ja-rail-linem}} |
---|---|
name
|
linename
|
idx
|
lineindex
|
nidx
|
nolinkindex
|
col
|
linecol
|
These below have no difference. | |
pfn
| |
first
| |
pwidth
| |
lwidth
| |
dwidth
| |
dir
| |
nextstop
|
Example
編輯{{ja-rail-line|pfn=1|first=4|name=Keikyū Main Line|col=red|dir=for {{ja-stalink|Uraga}}|nextstop={{ja-stalink|Maborikaigan}}}}
1 | ■ Keikyū Main Line | for Template:Ja-stalink (Template:Ja-stalink) |
- Using color code for line color.
{{ja-rail-line|pfn=1|first=2|name=Tokyu Toyoko Line|idx=Tōyoko Line|col=red|dir=for {{ja-stalink|Shibuya}}}} {{ja-rail-line|pfn=2|first=3|nidx=Tōyoko Line|col=red|dir=for {{ja-stalink|Kikuna}} and {{ja-stalink|Yokohama}}}}
1 | ■ Tōyoko Line | for Template:Ja-stalink |
2 | ■ Tōyoko Line | for Template:Ja-stalink and Template:Ja-stalink |
- Using HTML code for line color.
{{ja-rail-line|pfn=1|first=2|name=Nambu Line|col=#FFD400|dir=for {{ja-stalink|Kawasaki}}}} {{ja-rail-line|pfn=2|first=3|nidx=Nambu Line|col=#FFD400|dir=for {{ja-stalink|Musashi-Kosugi}}}}
1 | ■ Nambu Line | for Template:Ja-stalink |
2 | ■ Nambu Line | for Template:Ja-stalink |