Bản mẫu:Rail color box
Pages related to |
Mô đun:Trạm liền kề |
---|
(thảo luận | sandbox | sub-pages) |
{{Thông tin nhà ga}} |
(thảo luận | sandbox | testcases) |
{{Liên kết ga}} |
(thảo luận | sandbox | testcases) |
{{Đường sắt màu}} |
(thảo luận | sandbox | testcases) |
{{Tuyến liên kết}} |
(thảo luận | sandbox | testcases) |
{{Biểu trưng đường sắt}} |
(thảo luận | sandbox | testcases) |
{{Rail color box}} |
(thảo luận | sandbox | testcases) |
{{Trạm liền kề}} |
(thảo luận | sandbox | testcases) |
Cách sử dụng
[sửa mã nguồn]This template is intended to be used within station and line infoboxes, diagrams, navboxes and tables to show a small color box and a link to the associated line or service name. Its use should be avoided within body text.
Parameter | Description |
---|---|
system or 1
|
An identifier to specify which system's color and line article name convention should be used; either Module:Adjacent stations/system or Template:system color must exist, e.g. Template:RTD color or Module:Adjacent stations/Taipei Metro
|
line or 2
|
The line or service to be linked |
inline or 3
|
An optional parameter to create a colorbox and link suitable for use inline with other text Valid arguments are yes, small, link, box, route, xroute and croute |
type
|
This adds " – type" to the end, where type is the parameter value (which may be changed by a module subpage), and also passes the value to the data template or module. Typically a service or branch of the line |
note
|
An optional note with more information, added at the end |
For systems where multiple colors are used to designate different lines, the appropriate color will be selected based on the combination of the system and line parameters. The same is done for systems where types/services have their own colors.
The template can be abbreviated as {{rcb}}. All examples use this abbreviated form.
Examples
[sửa mã nguồn]{{rcb|system=Amtrak|line=Southwest Chief}}
and {{rcb|Amtrak|Southwest Chief}}
produce
{{rcb|SEPTA|Wilmington/Newark|note=(rush hour service only)}}
produces
Lỗi Lua: expandTemplate: template "SEPTA màu" does not exist.
The optional parameter |inline=
(or the third unnamed parameter) allows different display options for inline text.
yes |
Lỗi Lua: expandTemplate: template "RTD màu" does not exist. | Lỗi Lua: expandTemplate: template "Washington Metro màu" does not exist. | inline color box with link |
small |
Lỗi Lua: expandTemplate: template "RTD màu" does not exist. | Lỗi Lua: expandTemplate: template "Washington Metro màu" does not exist. | smaller color box with link |
dot |
Lỗi Lua: expandTemplate: template "RTD màu" does not exist. | Lỗi Lua: expandTemplate: template "Washington Metro màu" does not exist. | small circle with link |
square |
Lỗi Lua: expandTemplate: template "RTD màu" does not exist. | Lỗi Lua: expandTemplate: template "Washington Metro màu" does not exist. | small square with link |
link |
Lỗi Lua: expandTemplate: template "RTD màu" does not exist. | Lỗi Lua: expandTemplate: template "Washington Metro màu" does not exist. | linked box |
ldot |
Lỗi Lua: expandTemplate: template "RTD màu" does not exist. | Lỗi Lua: expandTemplate: template "Washington Metro màu" does not exist. | linked circle |
lsquare |
Lỗi Lua: expandTemplate: template "RTD màu" does not exist. | Lỗi Lua: expandTemplate: template "Washington Metro màu" does not exist. | linked square |
box |
Lỗi Lua: expandTemplate: template "RTD màu" does not exist. | Lỗi Lua: expandTemplate: template "Washington Metro màu" does not exist. | box with link omitted |
route |
Lỗi Lua: expandTemplate: template "RTD màu" does not exist. | Lỗi Lua: expandTemplate: template "Washington Metro màu" does not exist. | box with background color |
croute |
Lỗi Lua: expandTemplate: template "RTD màu" does not exist. | Lỗi Lua: expandTemplate: template "Washington Metro màu" does not exist. | box with background color and border radius |
xroute |
Lỗi Lua: expandTemplate: template "RTD màu" does not exist. | Lỗi Lua: expandTemplate: template "Washington Metro màu" does not exist. | box with colored text and border radius |
Some options, such as setting the text color, border color, and the short name for the latter three, require the use of a module subpage. Each line can have its own values, as can each type. The table keys for line and type tables are the same: "border color"
, "text color"
and "short name"
. Note that the "background color"
key is not used by this template.
System abbreviations
[sửa mã nguồn]Lists of available systems are at Category:Rail transport color templates and Special:PrefixIndex/Module:Adjacent stations/.
Variants
[sửa mã nguồn]TemplateData
[sửa mã nguồn]Dữ liệu bản mẫu cho Rail color box
Template which generates colored boxes to indicate rail lines, optionally with a link to the line's article.
Tham số | Miêu tả | Kiểu | Trạng thái | |
---|---|---|---|---|
System | 1 system | không có miêu tả | Chuỗi dài | bắt buộc |
Line | 2 line | không có miêu tả | Chuỗi dài | khuyên dùng |
Inline display type | 3 inline | không có miêu tả | Chuỗi dài | khuyên dùng |
Type (branch/service) | type | không có miêu tả | Chuỗi dài | tùy chọn |
Note | note | không có miêu tả | Chuỗi dài | tùy chọn |