Difference between revisions of "Template:Infobox rail franchise"

From blackwiki
Jump to navigation Jump to search
imported>Izkala
(rm unused, outdated parameter)
imported>Izkala
(Doc, cleanup)
Line 1: Line 1:
{{ infobox
+
{{Infobox
| bodystyle = width:{{{box_width|25em}}}; font-size: 90%;" cellpadding="0" cellspacing="3
+
| bodystyle   = width: {{{box_width|25em}}};
| bodyclass = vcard
+
| bodyclass   = vcard
| labelstyle = width:110px;
 
| headerstyle= background-color: #efefef
 
| title    = <span class="fn org">{{{name<includeonly>|</includeonly>}}}</span>
 
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image_filename<includeonly>|</includeonly>}}}|size={{{widthpx<includeonly>|</includeonly>}}}|sizedefault=265px}}
 
| caption  = <small>{{{caption<includeonly>|</includeonly>}}}</small>
 
| header1  = {{#if:{{{linelength<includeonly>|</includeonly>}}}{{{tracklength|}}}{{{notrack|}}}{{{map|}}}{{{gauge|}}}{{{oldgauge|}}} {{{el|}}}{{{speed|}}}{{{elevation|}}}|
 
{{#if:{{{franchise<includeonly>|</includeonly>}}}{{{regions|}}}{{{secregions|}}}{{{fleet|}}}{{{stations|}}}{{{stationsop|}}}{{{abbr|}}}{{{parent_company|}}}{{{website}}}|Info}}}}
 
| label2    = Current operator:
 
| data2    = {{{operator<includeonly>|</includeonly>}}}
 
| label3    = Main {{{nameforarea}}}(s):
 
| data3    = {{{regions<includeonly>|</includeonly>}}}
 
| label4    = Franchise dates:
 
| data4    = {{{dates<includeonly>|</includeonly>}}}
 
| label5    = Fleet size:
 
| data5    = {{{fleet<includeonly>|</includeonly>}}}
 
| label6    = Stations called at:
 
| data6    = {{{stations<includeonly>|</includeonly>}}}
 
| label7    = Stations operated:
 
| data7    = {{{stationsop<includeonly>|</includeonly>}}}
 
| label9    = Route km operated:
 
| data9    = {{{routekm<includeonly>|</includeonly>}}}
 
| label10    = Previous franchises:
 
| data10    = {{{previous<includeonly>|</includeonly>}}}
 
| label12    = Website:
 
| data12    = <includeonly>{{#if:{{{website|}}} |  [http://{{{website}}} {{ #if:{{{websitetitle|}}} | {{{websitetitle}}} | {{{website}}} }}] }}</includeonly><noinclude><nowiki>[http://{{{website}}} {{{websitetitle}}}</nowiki>]</noinclude>
 
| header40  = {{#if:{{{linelength<includeonly>|</includeonly>}}}{{{tracklength|}}}{{{notrack|}}}{{{gauge|}}}{{{el|}}}{{{speed|}}}{{{elevation|}}}|Technical}}
 
| label41  = Line length:
 
| data41    = {{{linelength<includeonly>|</includeonly>}}}
 
| label42  = Track length:
 
| data42    = {{{tracklength<includeonly>|</includeonly>}}}
 
| label43  = No. of tracks:
 
| data43    = {{{notrack<includeonly>|</includeonly>}}}
 
| label44  = [[Track gauge|Gauge]]:
 
| data44    = {{{gauge<includeonly>|</includeonly>}}}
 
| label45  = Previous gauge:
 
| data45    = {{{oldgauge<includeonly>|</includeonly>}}}
 
| label46  = [[Railway electrification system|Electrification]]:
 
| data46    = {{{el<includeonly>|</includeonly>}}}
 
| label47  = Operating speed:
 
| data47    = {{{speed<includeonly>|</includeonly>}}}
 
| label48  = Highest elevation:
 
| data48    = {{{elevation<includeonly>|</includeonly>}}}
 
  
| belowstyle = vertical-align:middle;
+
| headerstyle = background-color: #efefef;
| below     = {{#if:{{{map<includeonly>|</includeonly>}}}|
+
 
<table style="width:100%; margin:0; background-color:#F9F9F9;" class="collapsible {{{map_state|}}}">
+
| title      = {{{name|}}}
<tr><th style="background-color:#efefef; text-align:center;">Route map</th></tr>
+
| titleclass  = fn org
<tr><td align="center">
+
 
 +
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image_filename|}}}|size={{{widthpx|}}}|sizedefault=265px}}
 +
| caption    = {{{caption|}}}
 +
 
 +
| header1    = {{#if:{{{linelength|}}}{{{tracklength|}}}{{{notrack|}}}{{{map|}}}{{{gauge|}}}{{{oldgauge|}}} {{{el|}}}{{{speed|}}}{{{elevation|}}}|
 +
{{#if:{{{franchise|}}}{{{regions|}}}{{{secregions|}}}{{{fleet|}}}{{{stations|}}}{{{stationsop|}}}{{{abbr|}}}{{{parent_company|}}}{{{website}}}|Info}}}}
 +
|  label2    = Current operator
 +
|  data2    = {{{operator|}}}
 +
|  label3    = Main {{{nameforarea}}}(s)
 +
|  data3    = {{{regions|}}}
 +
|  label4    = Franchise dates
 +
|  data4    = {{{dates|}}}
 +
|  label5    = Fleet size
 +
|  data5    = {{{fleet|}}}
 +
|  label6    = Stations called at
 +
|  data6    = {{{stations|}}}
 +
|  label7    = Stations operated
 +
|  data7    = {{{stationsop|}}}
 +
|  label8    = Route km operated
 +
|  data8    = {{{routekm|}}}
 +
|  label9    = Previous franchises
 +
|  data9    = {{{previous|}}}
 +
|  label10    = Website
 +
|  data10    = {{#if:{{{website|}}} |  [http://{{{website}}} {{ #if:{{{websitetitle|}}} | {{{websitetitle}}} | {{{website}}} }}] }}
 +
 
 +
| header11    = {{#if:{{{linelength|}}}{{{tracklength|}}}{{{notrack|}}}{{{gauge|}}}{{{el|}}}{{{speed|}}}{{{elevation|}}}|Technical}}
 +
|  label12    = Line length
 +
|  data12    = {{{linelength|}}}
 +
|  label13    = Track length
 +
|  data13    = {{{tracklength|}}}
 +
|  label14    = No. of tracks
 +
|  data14    = {{{notrack|}}}
 +
|  label15    = [[Track gauge|Gauge]]
 +
|  data15    = {{{gauge|}}}
 +
|  label16    = Previous gauge
 +
|  data16    = {{{oldgauge|}}}
 +
|  label17    = [[Railway electrification system|Electrification]]
 +
|  data17    = {{{el|}}}
 +
|  label18    = Operating speed
 +
|  data18    = {{{speed|}}}
 +
|  label19    = Highest elevation
 +
|  data19    = {{{elevation|}}}
 +
 
 +
| below       = {{#if:{{{map|}}}|
 +
<table style="width: 100%; margin: 0;" class="collapsible {{{map_state|}}}">
 +
  <tr><th style="background-color: #efefef; text-align: center;">Route map</th></tr>
 +
  <tr><td style="vertical-align: middle; text-align: center;">
 
{{{map}}}
 
{{{map}}}
</td></tr>
+
  </td></tr>
 
</table>
 
</table>
 
}}
 
}}
 
}}<noinclude>
 
}}<noinclude>
{{Documentation missing}}
+
{{Documentation|content=
 +
This is an infobox for [[Rail franchising in Great Britain|British railway franchises]]—the companies which operate the passenger train services.
 +
 
 +
{{Parameter names example|box_width|name|image_filename|widthpx|caption|linelength|tracklength|notrack|map|gauge|oldgauge|el|speed|elevation|franchise|regions|secregions|fleet|stations|stationsop|abbr|parent_company|website|operator|nameforarea|dates|routekm|previous|websitetitle|map_state}}
 +
<pre style="overflow: auto;">{{Infobox rail franchise
 +
| box_width =
 +
| name =
 +
| image_filename =
 +
| widthpx =
 +
| caption =
 +
| linelength =
 +
| tracklength =
 +
| notrack =
 +
| map =
 +
| gauge =
 +
| oldgauge =
 +
| el =
 +
| speed =
 +
| elevation =
 +
| franchise =
 +
| regions =
 +
| secregions =
 +
| fleet =
 +
| stations =
 +
| stationsop =
 +
| abbr =
 +
| parent_company =
 +
| website =
 +
| operator =
 +
| nameforarea =
 +
| dates =
 +
| routekm =
 +
| previous =
 +
| websitetitle =
 +
| map_state =
 +
}}</pre>
 +
}}
 +
 
 
[[Category:Rail transport infobox templates|Rail Franchise]]
 
[[Category:Rail transport infobox templates|Rail Franchise]]
 
</noinclude>
 
</noinclude>

Revision as of 01:12, 27 June 2015

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

Template documentation

This is an infobox for British railway franchises—the companies which operate the passenger train services.

Template:Parameter names example

{{Infobox rail franchise
| box_width = 
| name = 
| image_filename = 
| widthpx = 
| caption = 
| linelength = 
| tracklength = 
| notrack = 
| map = 
| gauge = 
| oldgauge = 
| el = 
| speed = 
| elevation = 
| franchise = 
| regions = 
| secregions = 
| fleet = 
| stations = 
| stationsop = 
| abbr = 
| parent_company = 
| website = 
| operator = 
| nameforarea = 
| dates = 
| routekm = 
| previous = 
| websitetitle = 
| map_state = 
}}