ထႅမ်းပလဵတ်ႉ:Rail color box
Pages related to |
Module:Adjacent stations |
---|
(talk | sandbox | sub-pages) |
{{Infobox station}} |
(talk | sandbox | testcases) |
{{Station link}} |
(talk | sandbox | testcases) |
{{Rail color}} |
(talk | sandbox | testcases) |
{{Line link}} |
(talk | sandbox | testcases) |
{{Rail icon}} |
(talk | sandbox | testcases) |
{{Rail color box}} |
(talk | sandbox | testcases) |
{{Adjacent stations}} |
(talk | sandbox | testcases) |
Usage
မႄးထတ်း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:BJS 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
မႄးထတ်း{{rcb|system=Amtrak|line=Southwest Chief}}
and {{rcb|Amtrak|Southwest Chief}}
produce
{{rcb|SEPTA|Wilmington/Newark|note=(rush hour service only)}}
produces
လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "SEPTA color" does not exist.
The optional parameter |inline=
(or the third unnamed parameter) allows different display options for inline text.
yes |
လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "RTD color" does not exist. | Green Line | inline color box with link |
small |
လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "RTD color" does not exist. | Green Line | smaller color box with link |
dot |
လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "RTD color" does not exist. | ● Green Line | small circle with link |
square |
လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "RTD color" does not exist. | ■ Green Line | small square with link |
link |
လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "RTD color" does not exist. | linked box | |
ldot |
လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "RTD color" does not exist. | ● | linked circle |
lsquare |
လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "RTD color" does not exist. | ■ | linked square |
box |
လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "RTD color" does not exist. | box with link omitted | |
route |
လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "RTD color" does not exist. | Green | box with background color |
croute |
လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "RTD color" does not exist. | Green | box with background color and border radius |
xroute |
လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "RTD color" does not exist. | Green | 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
မႄးထတ်းLists of available systems are at Category:Rail transport color templates and Special:PrefixIndex/Module:Adjacent stations/.
Variants
မႄးထတ်းTemplate | Description | Example |
---|---|---|
{{Color box}} | a small color box with black borders and text color | or ORANGE |
{{Color box striped}} | a striped version | |
{{RouteBox}} | a borderless version with text color and wikilinks | ORANGE |
{{Colorbull}} | a colored bullet with wikilinks | ■ |
{{Legend2}} | another borderless version | |
{{Color sample}} | a small color box with black borders | |
{{Swatch inline}} | orange | |
{{Background color}} | orange | |
{{Rail color box}} | a version with more display options (part of Module:Adjacent stations) |
●, လွင်ႈၽိတ်းပိူင်ႈ Lua: expandTemplate: template "San Diego Trolley color" does not exist., etc. |
{{Diagonal split color box}} | a small color box split diagonally | |
{{Motor type}} | A small color box corresponding to the motor type | ထႅမ်းပလဵတ်ႉ:Motor type/mild hybrid, etc. |
TemplateData
မႄးထတ်းRail color box
Template which generates colored boxes to indicate rail lines, optionally with a link to the line's article.
Parameter | ၶေႃႈသပ်းလႅင်း | Type | Status | |
---|---|---|---|---|
System | 1 system | no description | String | required |
Line | 2 line | no description | String | suggested |
Inline display type | 3 inline | no description | String | suggested |
Type (branch/service) | type | no description | String | optional |
Note | note | no description | String | optional |
ၽိုၼ်ၵႅမ်မိုဝ်းလၢႆးၸႂ်ႉတိုဝ်း (documentation)တီႈၽၢႆႇၼိူဝ်ၼႆႉ လုၵ်ႉတီႈ ထႅမ်းပလဵတ်ႉ:Rail color box/doc သေ ၶၢႆႉသႂ်ႇၶဝ်ႈ (ႁဵတ်း transclude ဝႆႉၶႃႈဢေႃႈ။ (မႄးထတ်း | ပိုၼ်း) ၽူႈၸိူဝ်းမႄးထတ်းၶဝ် ၸၢင်ႈၸၢမ်းတူၺ်းလႆႈ ၸိူဝ်းပဵၼ်ၼႃႈလိၵ်ႈ sandbox (သၢင်ႈ | ငဝ်းမိူၼ်) လႄႈ testcases (သၢင်ႈ) ႁင်း ထႅမ်းပလဵတ်ႉဢၼ်ၼႆႉ လႆႈယူႇၶႃႈ။ သႂ်ႇပိူင်ထၢၼ်ႈ ၵႃႈတီႈ ၼႃႈလိၵ်ႈၽႄ /doc လႄႈ။ ၼႃႈလိၵ်ႈၽႄ ႁင်း ထႅမ်းပလဵတ်ႉ ဢၼ်ၼႆႉ။. |