Difference between revisions of "Template:Infobox rail company"

From blackwiki
Jump to navigation Jump to search
imported>G-13114
m
imported>Frietjes
Line 2: Line 2:
 
| headerstyle= background-color: #efefef
 
| headerstyle= background-color: #efefef
 
| bodystyle = {{#if:{{{min-width|}}}|min-width:{{{min-width}}};}} {{#if:{{{box_width|}}}|width:{{{box_width}}};}} {{{style|}}}
 
| bodystyle = {{#if:{{{min-width|}}}|min-width:{{{min-width}}};}} {{#if:{{{box_width|}}}|width:{{{box_width}}};}} {{{style|}}}
| title    = {{{name<includeonly>|</includeonly>}}}
+
| title    = {{{name|}}}
| image1    = {{#if: {{{logo_filename<includeonly>|</includeonly>}}}|<div style="background:{{{bgcolor}}};">{{#invoke:InfoboxImage|InfoboxImage|image={{{logo_filename}}}|size={{{logo_width|}}}|sizedefault=200px}}</div>}}
+
| image1    = {{#if: {{{logo|{{{logo_filename|}}}}}}|<div style="background:{{{bgcolor}}};">{{#invoke:InfoboxImage|InfoboxImage|image={{{logo|{{{logo_filename|}}}}}}|size={{{logo_size|{{{logo_width|}}}}}}|sizedefault=200px}}</div>}}
| image2    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image_filename<includeonly>|</includeonly>}}}|size={{{widthpx|}}}|sizedefault=265px}}
+
| image2    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{image_filename|}}}}}}|size={{{image_size|{{{widthpx|}}}}}}|sizedefault=265px}}
| caption2  = {{{caption<includeonly>|</includeonly>}}}
+
| caption2  = {{{caption|}}}
| header1  = {{#if:{{{franchise<includeonly>|</includeonly>}}}{{{regions|}}}{{{secregions|}}}{{{fleet|}}}{{{stations|}}}{{{stationsop|}}}{{{abbr|}}}{{{parent_company|}}}{{{website}}}|Overview}}
+
 
 +
| header1  = {{#if:{{{franchise|}}}{{{regions|}}}{{{secregions|}}}{{{fleet|}}}{{{stations|}}}{{{stationsop|}}}{{{routekm|}}}{{{abbr|}}}{{{founded|}}}{{{defunct|}}}{{{parent_company|}}}{{{predecessors|}}}{{{successors|}}}{{{website|}}}|Overview}}
 +
 
 
| label2    = Franchise(s)
 
| label2    = Franchise(s)
| data2    = {{{franchise<includeonly>|</includeonly>}}}
+
| data2    = {{{franchise|}}}
| label3    = Main {{{nameforarea}}}(s)
+
| label3    = Main {{if empty|{{{nameforarea|}}}|region}}(s)
| data3    = {{{regions<includeonly>|</includeonly>}}}
+
| data3    = {{{regions|}}}
| label4    = Other {{{nameforarea}}}(s)
+
| label4    = Other {{if empty|{{{nameforarea|}}}|region}}(s)
| data4    = {{{secregions<includeonly>|</includeonly>}}}
+
| data4    = {{{secregions|}}}
 
| label5    = Fleet size
 
| label5    = Fleet size
| data5    = {{{fleet<includeonly>|</includeonly>}}}
+
| data5    = {{{fleet|}}}
 
| label6    = Stations called at
 
| label6    = Stations called at
| data6    = {{{stations<includeonly>|</includeonly>}}}
+
| data6    = {{{stations|}}}
 
| label7    = Stations operated
 
| label7    = Stations operated
| data7    = {{{stationsop<includeonly>|</includeonly>}}}
+
| data7    = {{{stationsop|}}}
 
| label9    = Route km operated
 
| label9    = Route km operated
| data9    = {{{routekm<includeonly>|</includeonly>}}}
+
| data9    = {{{routekm|}}}
| label10   = National Rail abbreviation
+
| label10   = National Rail abbreviation
| data10     = {{{abbr<includeonly>|</includeonly>}}}
+
| data10   = {{{abbr|}}}
| labe111    = Founded
+
| label11  = Founded
| Data11    = {{{Founded<includeonly>|</includeonly>}}}
+
| data11    = {{{founded|}}}
| labe112    = Defunct
+
| label12  = Defunct
| Data12    = {{{Defunct<includeonly>|</includeonly>}}}
+
| data12    = {{{defunct|}}}
| labe113    = Predecessor(s)
+
| label13  = Predecessor(s)
| Data13    = {{{Predecessor(s)<includeonly>|</includeonly>}}}
+
| data13    = {{{predecessors|}}}
| labe114    = Successor(s)
+
| label14  = Successor(s)
| Data14    = {{{Successor(s)<includeonly>|</includeonly>}}}
+
| data14    = {{{successors|}}}
| label15   = Parent company
+
| label15   = Parent company
| data15     = {{{parent_company<includeonly>|</includeonly>}}}
+
| data15   = {{{parent_company|}}}
| label16   = Website
+
| label16   = Website
| data16     = <includeonly>{{#if:{{{website|}}} | [http://{{{website}}} {{ #if:{{{websitetitle|}}} | {{{websitetitle}}} | {{{website}}} }}] }}</includeonly><noinclude><nowiki>[http://{{{website}}} {{{websitetitle}}}</nowiki>]</noinclude>
+
| data16   = {{#if:{{{website|}}} | {{#ifeq:{{str left|{{lc:{{{website}}}}}|4}}|http|{{URL|1={{{website|}}}}} | {{{website}}} }} }}
 
 
  
| header40  = {{#if:{{{linelength<includeonly>|</includeonly>}}}{{{tracklength|}}}{{{notrack|}}}{{{gauge|}}}{{{el|}}}{{{speed|}}}{{{elevation|}}}|Technical}}
+
| header40  = {{#if:{{{linelength|}}}{{{tracklength|}}}{{{notrack|}}}{{{gauge|}}}{{{el|}}}{{{speed|}}}{{{elevation|}}}|Technical}}
 
| label41  = Line length
 
| label41  = Line length
| data41    = {{{linelength<includeonly>|</includeonly>}}}
+
| data41    = {{{linelength|}}}
 
| label42  = Track length
 
| label42  = Track length
| data42    = {{{tracklength<includeonly>|</includeonly>}}}
+
| data42    = {{{tracklength|}}}
 
| label43  = {{abbr|No.|Number}} of tracks
 
| label43  = {{abbr|No.|Number}} of tracks
| data43    = {{{notrack<includeonly>|</includeonly>}}}
+
| data43    = {{{notrack|}}}
 
| label44  = [[Track gauge|Gauge]]
 
| label44  = [[Track gauge|Gauge]]
| data44    = {{{gauge<includeonly>|</includeonly>}}}
+
| data44    = {{{gauge|}}}
 
| label45  = Previous gauge
 
| label45  = Previous gauge
| data45    = {{{oldgauge<includeonly>|</includeonly>}}}
+
| data45    = {{{oldgauge|}}}
 
| label46  = [[Railway electrification system|Electrification]]
 
| label46  = [[Railway electrification system|Electrification]]
| data46    = {{{el<includeonly>|</includeonly>}}}
+
| data46    = {{{el|}}}
 
| label47  = Operating speed
 
| label47  = Operating speed
| data47    = {{{speed<includeonly>|</includeonly>}}}
+
| data47    = {{{speed|}}}
 
| label48  = Highest elevation
 
| label48  = Highest elevation
| data48    = {{{elevation<includeonly>|</includeonly>}}}
+
| data48    = {{{elevation|}}}
  
 
| belowstyle = vertical-align:middle; padding:0px;
 
| belowstyle = vertical-align:middle; padding:0px;
| below      = {{#if:{{{map<includeonly>|</includeonly>}}}|
+
| below      = {{#if:{{{map|}}}|
 
{{ infobox
 
{{ infobox
 
| bodystyle  = {{Infobox subbox bodystyle}}
 
| bodystyle  = {{Infobox subbox bodystyle}}
Line 65: Line 66:
 
}}
 
}}
 
}}
 
}}
}}<noinclude>{{documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS --></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 | predecessors | regions | routekm | secregions | speed | stations | stationsop | style | successors | tracklength | website | widthpx }}<noinclude>
 +
{{documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS -->
 +
</noinclude>

Revision as of 13:56, 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