Jump to content

Template:Rail icon/testcases

From Wikipedia, the free encyclopedia

Basic usage

[edit]
Named args (data page)
{{Rail icon|line=Island |system=MTR}}

{{Rail icon}}

    

{{Rail icon/sandbox}}

    

Unnamed args (data page)
{{Rail icon|MTR|Island}}

{{Rail icon}}

    

{{Rail icon/sandbox}}

    

type (data page)
{{Rail icon|Taoyuan Metro|Airport|Commuter}}

{{Rail icon}}

{{Rail icon/sandbox}}

Non-Lua (data page)
{{Rail icon|Taipei|R}}

{{Rail icon}}

Lua error in package.lua at line 80: module 'Module:Adjacent stations/Taipei' not found.

{{Rail icon/sandbox}}

Lua error in package.lua at line 80: module 'Module:Adjacent stations/Taipei' not found.

Icons with name

[edit]
Icon for line with icon format and name (data page)
{{Rail icon|MTR|Island|name=y}}

{{Rail icon}}

     Island line

{{Rail icon/sandbox}}

     Island line

Icon for line with icon format and name using alias (data page)
{{Rail icon|MTR|isl|name=y}}

{{Rail icon}}

     Island line

{{Rail icon/sandbox}}

     Island line

Icon for line without icon format and with name (data page)
{{Rail icon|San Diego Trolley|Green|name=y}}

{{Rail icon}}

Green Line

{{Rail icon/sandbox}}

Green Line

Icon for system with name (data page)
{{Rail icon|MTR|name=y}}

{{Rail icon}}

MTR MTR

{{Rail icon/sandbox}}

MTR MTR

Icon for system without icon and with name (data page)
{{Rail icon|San Diego Trolley|name=y}}

{{Rail icon}}

Lua error in Module:Adjacent_stations at line 671: attempt to concatenate local 'icon' (a nil value).

{{Rail icon/sandbox}}

Lua error in Module:Adjacent_stations/sandbox at line 671: attempt to concatenate local 'icon' (a nil value).

Icon for line type with name (data page)
{{Rail icon|Taoyuan Metro|Airport|Commuter|name=y}}

{{Rail icon}}

Taoyuan Airport MRT

{{Rail icon/sandbox}}

Taoyuan Airport MRT

Defaults

[edit]
_default icon for lines (data page)
{{Rail icon|Antwerp tram|1}}

{{Rail icon}}

{{Rail icon/sandbox}}

_default icon for lines using alias (data page)
{{Rail icon|Antwerp tram|line 1}}

{{Rail icon}}

{{Rail icon/sandbox}}

Override _default icon for lines with icon specified (data page)
{{Rail icon|São Paulo Metropolitan Trains|13-AE}}

{{Rail icon}}

{{Rail icon/sandbox}}

Sole line default (data page)
{{Rail icon|Taiwan High Speed Rail}}

{{Rail icon}}

Taiwan High Speed Rail

{{Rail icon/sandbox}}

Taiwan High Speed Rail

System icon format

[edit]
Icon for line when system icon format is set (data page)
{{Rail icon|Brampton Transit|501 Züm Queen}}

{{Rail icon}}

501

{{Rail icon/sandbox}}

501

Override icon for line when system icon format is set (data page)
{{Rail icon|Brampton Transit|Brampton Transit}}

{{Rail icon}}


{{Rail icon/sandbox}}


Styles

[edit]
box (data page)
{{Rail icon|MTR|Island|style=box}}

{{Rail icon}}

    

{{Rail icon/sandbox}}

    

linked (data page)
{{Rail icon|MTR|Island|style=linked}}

{{Rail icon}}

    

{{Rail icon/sandbox}}

    

ldot (data page)
{{Rail icon|MTR|Island|style=ldot}}

{{Rail icon}}

    

{{Rail icon/sandbox}}

    

lsquare (data page)
{{Rail icon|MTR|Island|style=lsquare}}

{{Rail icon}}

    

{{Rail icon/sandbox}}

    

route (data page)
{{Rail icon|MTR|Island|style=route}}

{{Rail icon}}

    

{{Rail icon/sandbox}}

    

croute (data page)
{{Rail icon|MTR|Island|style=croute}}

{{Rail icon}}

    

{{Rail icon/sandbox}}

    

xroute (data page)
{{Rail icon|MTR|Island|style=xroute}}

{{Rail icon}}

    

{{Rail icon/sandbox}}