Pang-bô͘:Rail color box/doc
這是一篇說明次役,是位Pang-bô͘:Rail color box寫的. 遮有和使用資訊,類別佮其他無屬原本 pang-bô͘ 抑 的一部分。 |
本 枋模予人使用佇 濟濟 抑 頂面,所以伊的改變會受著大範圍的注意。請佇界變進前先佇 馮摹的 /sandbox 抑 /testcases 次頁面試驗,或者是佇你家己的 用者取頁面.請佇實行改變進曾考慮先 佇 土論頁 參詳一咧。 |
Pang-bô͘:Sidebar Adjacent stations
Sú-iōng Lua thêng-sek: |
Template:Rail color box is intended都be used within station and line infoboxes, diagrams, navboxes and tables to show a small color box and a link都the associated line or service name。 Its use should be avoided within body text。
Usage[修改]
{{Rail color box|system=|line=|inline=|type=|note=}}
Parameters[修改]
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:RE-BB coloror Module:Adjacent stations/Taipei Metro
|
line or 2
|
The line or service都be linked。 |
inline or 3
|
An optional parameter to create a color box and link suitable for use inline with other text。 Valid arguments are listed in the table below。 |
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都the data template or module。 Typically a service or branch of the line。 |
note
|
An optional note with more information added at the end。 |
Parameter | Description | Example | Example |
---|---|---|---|
yes | Inline color box with link。 | C Line (suspended) |
Green Line |
small | Line strip with link。 | C Line (suspended) |
Green Line |
dot | Small circle with link。 | ● C Line (suspended) |
● Green Line |
square | Small square with link。 | ■ C Line (suspended) |
■ Green Line |
link | Linked box。 | ||
ldot | Linked small circle。 | ● | ● |
lsquare | Linked small square。 | ■ | ■ |
box | Box with link omitted。 | ||
route | Box with text。 | C | Green |
croute | Box with text and border radius。 | C | Green |
xroute | Transparent box with text and border radius。 | C | Green |
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 or services have their own colors。 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。
TemplateData[修改]
TemplateData documentation used by VisualEditor and other tools | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
See the monthly error report for this template. TemplateData for Rail color box Template which generates colored boxes to indicate rail lines, optionally with a link to the line's article.
|
Examples[修改]
{{Rail color box|system=Amtrak|line=Southwest Chief}}
and{{Rail color box|Amtrak|Southwest Chief}}
produce 。{{Rail color box|SEPTA|Wilmington/Newark|note=(rush hour service only)}}
produces Lua錯誤:expandTemplate: template "SEPTA color" does not exist。
System abbreviations[修改]
Lists of available systems are atCategory:Rail transport color templatesand Special:PrefixIndex/Module:Adjacent stations/。
Variants[修改]