آزاد دائرۃ المعارف، ویکیپیڈیا سے
Template:Rail color box 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.
Template 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 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 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 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.
|
|inline=
accepted values
Parameter
|
Description
|
Example
|
Example
|
yes
|
Inline color box with link.
|
C Line
|
Green لائن
|
small
|
Line strip with link.
|
C Line
|
Green لائن
|
dot
|
Small circle with link.
|
● C Line
|
● Green لائن
|
square
|
Small square with link.
|
■ C Line
|
■ Green لائن
|
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] This template prefers inline formatting of parameters. پیرامیٹر | وضاحت | طرز | حالت |
---|
System | 1 system | کوئی وضاحت نہیں
| اِسٹرنگ | مطلوب |
---|
Line | 2 line | کوئی وضاحت نہیں
| اِسٹرنگ | تجویز کردہ |
---|
Inline display type | 3 inline | کوئی وضاحت نہیں
| اِسٹرنگ | تجویز کردہ |
---|
Type (branch/service) | type | کوئی وضاحت نہیں
| اِسٹرنگ | اختیاری |
---|
Note | note | کوئی وضاحت نہیں
| اِسٹرنگ | اختیاری |
---|
|
{{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 لوا خطا: expandTemplate: template "SEPTA color" does not exist۔.
System abbreviations
[ترمیم]
Lists of available systems are at زمرہ:ریل نقل و حمل رنگ سانچے and Special:PrefixIndex/Module:Adjacent stations/.