සැකිල්ල:Rail color box/doc
This is a documentation subpage for සැකිල්ල:Rail color box. It may contain usage information, categories and other content that is not part of the original සැකිල්ල page. |
මෙම සැකිල්ල පිටු 9,800 පමණ භාවිතා වන නිසා සිදුකරන වෙනස් කිරීම් බොහෝ ස්ථානවලට බලපානු ඇත. ඔබ සිදුකිරීමට අදහස් කරන වෙනස්කම් මෙම සැකිල්ලට අදාළ /sandbox හෝ /testcases උපපිටුවල, හෝ ඔබගේ පරිශීලක උපපිටුවේ පළමුව සිදුකොට පරීක්ෂාකර බලන්න. එම වෙනස්කම් සිදුකිරීමට ප්රථම අදාළ සාකච්ඡා පිටුවේ ඒ පිළිබඳව සංවාදයක් ගොඩනැගීමට කාරුණික වන්න.
Transclusion count updated automatically (ප්රලේඛනය වෙතට යොමුවන්න). |
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) |
මෙම සැකිල්ල ලුවා භාවිතා කරයි: |
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.
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 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:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
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 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
| ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Click here to see a monthly parameter usage report for this template based on this TemplateData.
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)}}
producesWilmington/Newark Line (rush hour service only).
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}} | Color box size with black borders and text color. Standard size. | or ORANGE |
{{Color box striped}} | Striped color box. Standard size. | |
{{RouteBox}} | Borderless color box with text color and wikilinks. | ORANGE |
{{Colorbull}} | Colored bullet with wikilinks. | ■ |
{{Legend inline}} | Color box size with black borders. Standard size. | |
{{Color sample}} | Color box size with black borders. Smaller size. | |
{{Swatch inline}} | orange | |
{{Background color}} | orange | |
{{Rail color box}} | A version with more display options. Part of Module:Adjacent stations | ●, Orange |
{{Diagonal split color box}} | Color box split diagonally. Standard size. |