Difference between revisions of "Template:Infobox rail company"
Jump to navigation
Jump to search
imported>G-13114 m |
imported>Frietjes (Adding unknown parameter tracking through Category:Pages using infobox rail company with unknown parameters using Module:check for unknown parameters) |
||
| 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 | + | | title = {{{name|}}} |
| − | | image1 = {{#if: {{{logo_filename | + | | 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 | + | | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{image_filename|}}}}}}|size={{{image_size|{{{widthpx|}}}}}}|sizedefault=265px}} |
| − | | caption2 = {{{caption | + | | caption2 = {{{caption|}}} |
| − | | header1 = {{#if:{{{franchise | + | |
| + | | 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 | + | | data2 = {{{franchise|}}} |
| − | | label3 = Main {{{nameforarea}}}(s) | + | | label3 = Main {{if empty|{{{nameforarea|}}}|region}}(s) |
| − | | data3 = {{{regions | + | | data3 = {{{regions|}}} |
| − | | label4 = Other {{{nameforarea}}}(s) | + | | label4 = Other {{if empty|{{{nameforarea|}}}|region}}(s) |
| − | | data4 = {{{secregions | + | | data4 = {{{secregions|}}} |
| label5 = Fleet size | | label5 = Fleet size | ||
| − | | data5 = {{{fleet | + | | data5 = {{{fleet|}}} |
| label6 = Stations called at | | label6 = Stations called at | ||
| − | | data6 = {{{stations | + | | data6 = {{{stations|}}} |
| label7 = Stations operated | | label7 = Stations operated | ||
| − | | data7 = {{{stationsop | + | | data7 = {{{stationsop|}}} |
| label9 = Route km operated | | label9 = Route km operated | ||
| − | | data9 = {{{routekm | + | | data9 = {{{routekm|}}} |
| − | | label10 | + | | label10 = National Rail abbreviation |
| − | | data10 | + | | data10 = {{{abbr|}}} |
| − | | | + | | label11 = Founded |
| − | | | + | | data11 = {{{founded|}}} |
| − | | | + | | label12 = Defunct |
| − | | | + | | data12 = {{{defunct|}}} |
| − | | | + | | label13 = Predecessor(s) |
| − | | | + | | data13 = {{{predecessors|}}} |
| − | | | + | | label14 = Successor(s) |
| − | | | + | | data14 = {{{successors|}}} |
| − | | label15 | + | | label15 = Parent company |
| − | | data15 | + | | data15 = {{{parent_company|}}} |
| − | | label16 | + | | label16 = Website |
| − | | data16 | + | | data16 = {{#if:{{{website|}}} | {{#ifeq:{{str left|{{lc:{{{website}}}}}|4}}|http|{{URL|1={{{website|}}}}} | {{{website}}} }} }} |
| − | |||
| − | | header40 = {{#if:{{{linelength | + | | header40 = {{#if:{{{linelength|}}}{{{tracklength|}}}{{{notrack|}}}{{{gauge|}}}{{{el|}}}{{{speed|}}}{{{elevation|}}}|Technical}} |
| label41 = Line length | | label41 = Line length | ||
| − | | data41 = {{{linelength | + | | data41 = {{{linelength|}}} |
| label42 = Track length | | label42 = Track length | ||
| − | | data42 = {{{tracklength | + | | data42 = {{{tracklength|}}} |
| label43 = {{abbr|No.|Number}} of tracks | | label43 = {{abbr|No.|Number}} of tracks | ||
| − | | data43 = {{{notrack | + | | data43 = {{{notrack|}}} |
| label44 = [[Track gauge|Gauge]] | | label44 = [[Track gauge|Gauge]] | ||
| − | | data44 = {{{gauge | + | | data44 = {{{gauge|}}} |
| label45 = Previous gauge | | label45 = Previous gauge | ||
| − | | data45 = {{{oldgauge | + | | data45 = {{{oldgauge|}}} |
| label46 = [[Railway electrification system|Electrification]] | | label46 = [[Railway electrification system|Electrification]] | ||
| − | | data46 = {{{el | + | | data46 = {{{el|}}} |
| label47 = Operating speed | | label47 = Operating speed | ||
| − | | data47 = {{{speed | + | | data47 = {{{speed|}}} |
| label48 = Highest elevation | | label48 = Highest elevation | ||
| − | | data48 = {{{elevation | + | | data48 = {{{elevation|}}} |
| belowstyle = vertical-align:middle; padding:0px; | | belowstyle = vertical-align:middle; padding:0px; | ||
| − | | below = {{#if:{{{map | + | | 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]]
| This template uses Lua: |
Usage
- 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
| The above documentation is transcluded from Template:Infobox rail company/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |