Difference between revisions of "Template:Infobox rail franchise"
Jump to navigation
Jump to search
Template documentation
imported>Izkala (rm unused, outdated parameter) |
imported>Izkala (Doc, cleanup) |
||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Infobox |
| − | | bodystyle = width:{{{box_width|25em}}}; | + | | bodystyle = width: {{{box_width|25em}}}; |
| − | | bodyclass = vcard | + | | bodyclass = vcard |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | + | | headerstyle = background-color: #efefef; |
| − | | below | + | |
| − | <table style="width:100%; margin:0 | + | | title = {{{name|}}} |
| − | <tr><th style="background-color:#efefef; text-align:center;">Route map</th></tr> | + | | titleclass = fn org |
| − | <tr><td | + | |
| + | | 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 | + | {{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]]
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 =
}}
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |