Mall:Rail color box
[visa] [redigera] [rensa sidcachen]
Dokumentation
| Den här mallen använder Module:Adjacent stations, ett skript som använder programspråket Lua. Se Wikipedia:Lua om du vill veta mer om hur man använder Lua i mallar. |
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
[redigera wikitext]{{Rail color box|system=|line=|inline=|type=|note=}}
Parameters
[redigera wikitext]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
[redigera wikitext]| TemplateData documentation used by VisualEditor and other tools | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Template which generates colored boxes to indicate rail lines, optionally with a link to the line's article.
| ||||||||||||||||||||||||||||||
System abbreviations
[redigera wikitext]Lists of available systems are at Category:Rail transport color templates and Special:PrefixIndex/Module:Adjacent stations/.
Variants
[redigera wikitext]Ovanstående dokumentation transkluderas från sidan ”Mall:Rail color box/dok”. Kategorier ska placeras på den dokumentationssidan.