Difference between revisions of "Template:Infobox rail company"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 29: Line 29:
 
| label12  = Defunct
 
| label12  = Defunct
 
| data12    = {{{defunct|}}}
 
| data12    = {{{defunct|}}}
| label13  = Predecessor(s)
+
| label13  = {{#if:{{{predecessors|}}}|Predecessors|Predecessor}}
| data13    = {{{predecessors|}}}
+
| data13    = {{#if:{{{predecessors|}}}|{{{predecessors|}}}|{{{predecessor|}}}}}
| label14  = Successor(s)
+
| label14  = {{#if:{{{successors|}}}|Successors|Successor}}
| data14    = {{{successors|}}}
+
| data14    = {{#if:{{{successors|}}}|{{{successors|}}}|{{{successor|}}}}}
 
| label15  = Parent company
 
| label15  = Parent company
 
| data15    = {{{parent_company|}}}
 
| data15    = {{{parent_company|}}}
Line 66: Line 66:
 
}}
 
}}
 
}}
 
}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox rail company with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox rail company]] with unknown parameter "_VALUE_"|ignoreblank=y| abbr | bgcolor | box_width | caption | defunct | el | elevation | fleet | founded | franchise | gauge | image | image_filename | image_size | linelength | logo | logo_filename | logo_size | logo_width | map | map_state | min-width | name | nameforarea | notrack | oldgauge | parent_company | predecessors | regions | routekm | secregions | speed | stations | stationsop | style | successors | tracklength | website | widthpx }}<noinclude>
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox rail company with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox rail company]] with unknown parameter "_VALUE_"|ignoreblank=y| abbr | bgcolor | box_width | caption | defunct | el | elevation | fleet | founded | franchise | gauge | image | image_filename | image_size | linelength | logo | logo_filename | logo_size | logo_width | map | map_state | min-width | name | nameforarea | notrack | oldgauge | parent_company | predecessor | predecessors | regions | routekm | secregions | speed | stations | stationsop | style | successor | successors | tracklength | website | widthpx }}<noinclude>
 
{{documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS -->
 
{{documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS -->
 
</noinclude>
 
</noinclude>

Revision as of 13:57, 2 November 2017

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

  1. redirect Template:Parameter names example
{{Infobox rail company
<!-- General -->
| name           = 
| logo           = 
| logo_size      = 
| image          = 
| image_size     = 
| caption        = 
<!-- Info -->
| franchise      = 
| nameforarea    = 
| regions        = 
| secregions     = 
| fleet          = 
| stations       = 
| stationsop     = 
| routekm        = 
| abbr           = 
| founded        =
| defunct        =
| predecessors   = <!-- or | predecessor    = -->
| successors     = <!-- or | successor      = -->
| parent_company = 
| website        = 
<!-- Technical -->
| linelength     = 
| tracklength    = 
| notrack        = 
| gauge          =
| oldgauge       = 
| el             = 
| speed          = 
| elevation      = 
<!-- Route map -->
| map            = 
}}

Tracking category