模板:Rail template doc
File:Test Template Info-Icon - Version (2).svg 模板文档[查看] [编辑] [历史] [清除缓存]
概要[编辑]
该模板会为 Adjacent stations 数据模组创建一个维基表格,每一排包含了路线和支线的参数文档说明。相似的模板还有{{Color template doc}}。
参数及使用方法[编辑]
注意:如果轨道系统的标志属于非自由内容而只可以在相关条目中被合理使用时,请添加|hideicon=true参数来禁止在模板文档中展示。
路线[编辑]
使用没有别名的标准用法:
{{Rail template doc}}
{{Rail template doc|Washington Metro|Red}}
{{Rail template doc|Washington Metro|Blue}}
{{Rail template doc|Washington Metro|Orange}}
{{Rail template doc|Washington Metro|Yellow}}
{{Rail template doc|Washington Metro|Green}}
{{Rail template doc|Washington Metro|Silver}}
{{Rail template doc||end}}
会得到:
| 路线 | 代码 | 颜色 | 十六进制颜色 | 图标 |
|---|---|---|---|---|
| 红线 | Red |
e51636 |
File:WMATA Red New.svg | |
| 蓝线 | Blue |
1574c4 |
File:WMATA Blue New.svg | |
| 橙线 | Orange |
f68712 |
File:WMATA Orange New.svg | |
| 黄线 | Yellow |
fcd006 |
File:WMATA Yellow New.svg | |
| 绿线 | Green |
0fab4b |
File:WMATA Green New.svg | |
| 银线 | Silver |
9d9f9c |
File:WMATA Silver New.svg |
拥有别名的例子:
{{Rail template doc}}
{{Rail template doc|Amtrak|Amtrak Cascades|Cascades}}
{{Rail template doc||end}}
| 路线 | 代码 | 颜色 | 十六进制颜色 | 图标 |
|---|---|---|---|---|
| Amtrak Cascades | Amtrak Cascades或 Cascades |
00537E |
File:BSicon LOGO Amtrak2.svg |
每一行最多可以填写16个别名。如果有多于3个别名,那么部分别名一开始会被折叠起来。
类别[编辑]
有支线类别的例子:
{{Rail template doc||type}}
{{Rail template doc|MBTA|Green|type=A}}
{{Rail template doc|MBTA|Green|type=B}}
{{Rail template doc|MBTA|Green|type=C}}
{{Rail template doc|MBTA|Green|type=D}}
{{Rail template doc|MBTA|Green|type=E}}
{{Rail template doc||end}}
| 路线 | 支线 | 支线代码 | 颜色 | 十六进制颜色 | 图标 |
|---|---|---|---|---|---|
| 绿线 | 绿线 – A支线 | A |
00843D |
File:Icon-green-line-default.svg | |
| 绿线 | 绿线 – B支线 | B |
00843D |
File:Icon-green-line-default.svg | |
| 绿线 | 绿线 – C支线 | C |
00843D |
File:Icon-green-line-default.svg | |
| 绿线 | 绿线 – D支线 | D |
00843D |
File:Icon-green-line-default.svg | |
| 绿线 | 绿线 – E支线 | E |
00843D |
File:Icon-green-line-default.svg |