模板:Rail template doc/doc
| 茲萆文件是模板:Rail template doc其文件子頁面 (見頁面自家)。 茲萆頁面有用法信息、分類共其它伓是原底頁面其內容。 |
This template creates a wikitable row for documenting line and type parameters for an Adjacent stations data module. It is similar to {{Color template doc}}.
Usage
[Gāi nguòng-mā]Note: if the system icon is Non-free content and can only be used on articles with fair use, add |hideicon=true to suppress showing the icon in the template documentation.
Lines
[Gāi nguòng-mā]Standard example with no aliases:
{{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}}
Gives:
| Line | Keys | Color | Hex color | Icon |
|---|---|---|---|---|
| Red Line | Red |
E31837 |
| |
| Blue Line | Blue |
0076C0 |
| |
| Orange Line | Orange |
F7941D |
| |
| Yellow Line | Yellow |
FFD200 |
| |
| Green Line | Green |
00A94F |
| |
| Silver Line | Silver |
A1A2A1 |
|
Example with an alias:
{{Rail template doc}}
{{Rail template doc|Amtrak|Amtrak Cascades|Cascades}}
{{Rail template doc||end}}
| Line | Keys | Color | Hex color | Icon |
|---|---|---|---|---|
| Amtrak Cascades | Amtrak Cascades or Cascades |
223832 |
|
Up to 16 aliases can be shown for each row. If there are more than three aliases, some of them are initially hidden in a collapsible container.
Types
[Gāi nguòng-mā]Example with types defined:
{{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}}
<td style="background:#Lua chó̤-nguô: expandTemplate: template "MBTA color" does not exist.; border-top:solid 1px gray;"> <td style="background:#Lua chó̤-nguô: expandTemplate: template "MBTA color" does not exist.; border-top:solid 1px gray;"> <td style="background:#Lua chó̤-nguô: expandTemplate: template "MBTA color" does not exist.; border-top:solid 1px gray;"> <td style="background:#Lua chó̤-nguô: expandTemplate: template "MBTA color" does not exist.; border-top:solid 1px gray;"> <td style="background:#Lua chó̤-nguô: expandTemplate: template "MBTA color" does not exist.; border-top:solid 1px gray;">
| Line | Type | Type keys | Color | Hex color | Icon |
|---|---|---|---|---|---|
| Lua chó̤-nguô: expandTemplate: template "MBTA lines" does not exist. | Lua chó̤-nguô: expandTemplate: template "MBTA lines" does not exist. | A |
Lua chó̤-nguô: expandTemplate: template "MBTA color" does not exist. |
Lua 錯誤 於第80行的package.lua中:module 'Module:Adjacent stations/MBTA' not found。 | |
| Lua chó̤-nguô: expandTemplate: template "MBTA lines" does not exist. | Lua chó̤-nguô: expandTemplate: template "MBTA lines" does not exist. | B |
Lua chó̤-nguô: expandTemplate: template "MBTA color" does not exist. |
Lua 錯誤 於第80行的package.lua中:module 'Module:Adjacent stations/MBTA' not found。 | |
| Lua chó̤-nguô: expandTemplate: template "MBTA lines" does not exist. | Lua chó̤-nguô: expandTemplate: template "MBTA lines" does not exist. | C |
Lua chó̤-nguô: expandTemplate: template "MBTA color" does not exist. |
Lua 錯誤 於第80行的package.lua中:module 'Module:Adjacent stations/MBTA' not found。 | |
| Lua chó̤-nguô: expandTemplate: template "MBTA lines" does not exist. | Lua chó̤-nguô: expandTemplate: template "MBTA lines" does not exist. | D |
Lua chó̤-nguô: expandTemplate: template "MBTA color" does not exist. |
Lua 錯誤 於第80行的package.lua中:module 'Module:Adjacent stations/MBTA' not found。 | |
| Lua chó̤-nguô: expandTemplate: template "MBTA lines" does not exist. | Lua chó̤-nguô: expandTemplate: template "MBTA lines" does not exist. | E |
Lua chó̤-nguô: expandTemplate: template "MBTA color" does not exist. |
Lua 錯誤 於第80行的package.lua中:module 'Module:Adjacent stations/MBTA' not found。 |