Jump to content

Template:Infobox rail: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Adding unknown parameter tracking through Category:Pages using infobox rail with unknown parameters using Module:check for unknown parameters. Redo parameter check post-merge; many parameters were missing from the check.
add class="infobox-header" to route map name for dark style fixes to apply
 
(15 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
| subbox = {{{subbox|}}}
| headerstyle= background-color: #efefef
| headerstyle= background-color: #efefef


|title = {{{name|{{{railroad_name|}}}}}}
|title = {{{name|{{{railroad_name|}}}}}}
| subheader = {{{other_name|}}}


|image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|{{{logo_filename|}}}}}}|size={{{logo_size|}}}|sizedefault=frameless|upright=0.91|alt={{{logo_alt|}}}}}
|image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|{{{logo_filename|}}}}}}|size={{{logo_size|}}}|sizedefault=frameless|upright=0.91|alt={{{logo_alt|}}}}}
|caption1 = {{#if:{{{image|}}}||{{{caption|{{{image_caption|}}}}}}}}
|caption1 = {{#if:{{{image|{{{image_filename|}}}}}}||{{{caption|{{{image_caption|}}}}}}}}


|image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{system_map|}}}|size={{{map_size|}}}|sizedefault=frameless|upright=1.14|alt={{{map_alt|}}}}}
|image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{system_map|}}}|size={{{map_size|}}}|sizedefault=frameless|upright=1.14|alt={{{map_alt|}}}}}
Line 17: Line 19:
| label2 = Franchise(s)
| label2 = Franchise(s)
| data2 = {{{franchise|}}}
| data2 = {{{franchise|}}}
| label3 = Main {{if empty|{{{nameforarea|}}}|region}}(s)
| label3 = Contract(s)
| data3 = {{{regions|}}}
| data3 = {{{contract|}}}
| label4 = Other {{if empty|{{{nameforarea|}}}|region}}(s)
| label4 = Concession(s)
| data4 = {{{secregions|}}}
| data4 = {{{concession|}}}
| label5 = Fleet size
| label5 = Current operator
| data5 = {{{fleet|}}}
| data5 = {{{operator|}}}
| label6 = Stations called at
| label6 = Main {{if empty|{{{nameforarea|}}}|region}}(s)
| data6 = {{{stations|}}}
| data6 = {{{regions|}}}
| label7 = Stations operated
| label7 = Other {{if empty|{{{nameforarea|}}}|region}}(s)
| data7 = {{{stationsop|}}}
| data7 = {{{secregions|}}}
| label8 = Parent company
| label8 = Fleet size
| data8 = {{{parent_company|}}}
| data8 = {{{fleet|}}}
| label9 = Headquarters
| label9 = Stations called at
| data9 = {{{headquarters|{{{hq_city|}}}}}}
| data9 = {{{stations|}}}
| label10 = [[Reporting mark]]
| label10 = Stations operated
| data10 = {{{marks|{{{abbr|}}}}}}
| data10 = {{{stationsop|}}}
| label11 = Locale
| label11 = Parent company
| data11 = {{{locale|}}}
| data11 = {{{parent_company|}}}
| label12 = Dates of operation
| label12 = Headquarters
| data12 = {{{headquarters|{{{hq_city|}}}}}}
| data12 = {{#if:{{{start_year|{{{founded|}}}}}}{{{end_year|{{{defunct|}}}}}}|{{{start_year|{{{founded|}}}}}}–{{{end_year|{{{defunct|}}}}}}}}
| label13 = Predecessor{{#if:{{{predecessors|}}}|s}}
| label13 = Key people
| data13 = {{if empty|{{{predecessor_line|}}}|{{{predecessors|}}}|{{{predecessor|}}}}}
| data13 = {{{key_people|}}}
| label14 = Successor{{#if:{{{successors|}}}|s}}
| label14 = Founders
| data14 = {{if empty|{{{successor_line|}}}|{{{successors|}}}|{{{successor|}}}}}
| data14 = {{{founders|}}}
| label20 = [[Reporting mark]]
| data20 = {{{marks|{{{abbr|}}}}}}
| label21 = Locale
| data21 = {{{locale|}}}
| label22 = Dates of operation
| data22 = {{#if:{{{start_year|{{{founded|}}}}}}{{{end_year|{{{defunct|}}}}}}|{{{start_year|{{{founded|}}}}}}–{{{end_year|{{{defunct|}}}}}}|{{#if:{{{dates|}}}|{{{dates}}}}}}}
| label23 = Predecessor{{#if:{{{predecessors|}}}|s}}
| data23 = {{if empty|{{{predecessor_line|}}}|{{{predecessors|}}}|{{{predecessor|}}}}}
| label24 = Successor{{#if:{{{successors|}}}|s}}
| data24 = {{if empty|{{{successor_line|}}}|{{{successors|}}}|{{{successor|}}}}}


| header20 = {{#if:{{{gauge|}}}{{{old_gauge|}}}{{{electrification|{{{el|}}}}}}{{{length|}}}{{{linelength|}}}{{{routekm|}}}{{{tracklength|}}}{{{notrack|}}}{{{speed|}}}{{{elevation|}}}|Technical}}
| header30 = {{#if:{{{gauge|}}}{{{old_gauge|}}}{{{electrification|{{{el|}}}}}}{{{length|}}}{{{linelength|}}}{{{routekm|}}}{{{tracklength|}}}{{{notrack|}}}{{{speed|}}}{{{elevation|}}}|Technical}}
| label21 = [[Track gauge]]
| label31 = [[Track gauge]]
| data21 = {{{gauge|}}}
| data31 = {{{gauge|}}}
| label22 = Previous gauge
| label32 = Previous gauge
| data22 = {{{old_gauge|}}}
| data32 = {{{old_gauge|}}}
| label23 = [[Railway electrification system|Electrification]]
| label33 = [[Railway electrification|Electrification]]
| data23 = {{{electrification|{{{el|}}}}}}
| data33 = {{{electrification|{{{el|}}}}}}
| label24 = Length
| label34 = Length
| data24 = {{if empty|{{{length|}}}|{{{linelength|}}}|{{{routekm|}}}}}
| data34 = {{if empty|{{{length|}}}|{{{linelength|}}}|{{{routekm|}}}}}
| label25 = Track length
| label35 = Track length
| data25 = {{{tracklength|}}}
| data35 = {{{tracklength|}}}
| label26 = {{abbr|No.|Number}} of tracks
| label36 = {{abbr|No.|Number}} of tracks
| data26 = {{{notrack|}}}
| data36 = {{{notrack|}}}
| label27 = Operating speed
| label37 = Operating speed
| data27 = {{{speed|}}}
| data37 = {{{speed|}}}
| label28 = Highest elevation
| label38 = Highest elevation
| data28 = {{{elevation|}}}
| data38 = {{{elevation|}}}


| header41 = {{#if:{{{website|}}}{{{embedded|}}}|Other}}
| header41 = {{#if:{{{website|}}}{{{embedded|}}}|Other}}
Line 71: Line 83:
|0|no|show|uncollapsed|#default = uncollapsed
|0|no|show|uncollapsed|#default = uncollapsed
}}">
}}">
<tr style="background-color: #efefef;"><th style="text-align:center"><div style="margin:0 4em">{{#if:{{{map_name|}}}|{{{map_name}}}|Route map}}</div></th></tr>
<tr style="background-color: #efefef;" class="infobox-header"><th style="text-align:center"><div style="margin:0 4em">{{#if:{{{map_name|}}}|{{{map_name}}}|Route map}}</div></th></tr>
<tr><td style="text-align:center; padding-top: 3px">
<tr><td style="text-align:center; padding-top: 3px">
{{{routemap|{{{map}}}}}}</td></tr>
{{{routemap|{{{map}}}}}}</td></tr>
</table>}}
</table>}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox rail with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox rail]] with unknown parameter "_VALUE_"|ignoreblank=y| abbr | alt | caption | defunct | el | electrification | elevation | embedded | end_year | fleet | founded | franchise | gauge | headquarters | hq_city | image | image_alt | image_caption | image_filename | image_size | length | linelength | locale | logo | logo_alt | logo_filename | logo_size | map | map_alt | map_caption | map_name | map_size | map_state | marks | name | nameforarea | notrack | old_gauge | parent_company | predecessor | predecessor_line | predecessors | railroad_name | regions | routekm | routemap | secregions | speed | start_year | stations | stationsop | successor | successor_line | successors | system_map | tracklength | website }}{{#if:
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox rail with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox rail]] with unknown parameter "_VALUE_"|ignoreblank=y| abbr | alt | caption | contract | concession | dates | defunct | el | electrification | elevation | embedded | end_year | fleet | founded | founders | franchise | gauge | headquarters | hq_city | image | image_alt | image_caption | image_filename | image_size | key_people | length | linelength | locale | logo | logo_alt | logo_filename | logo_size | map | map_alt | map_caption | map_name | map_size | map_state | marks | name | nameforarea | notrack | old_gauge | operator | other_name | parent_company | predecessor | predecessor_line | predecessors | railroad_name | regions | routekm | routemap | secregions | speed | start_year | stations | stationsop | subbox | successor | successor_line | successors | system_map | tracklength | website }}{{#invoke:Check for clobbered parameters|check
| nested = 1
{{#ifeq:{{{name|{{{railroad_name|}}}}}}|{{{railroad_name|{{{name|}}}}}}||1}}
| template = Infobox rail
{{#ifeq:{{{logo|{{{logo_filename|}}}}}}|{{{logo_filename|{{{logo|}}}}}}||1}}
| cat = {{main other|Category:Pages using infobox rail with conflicting parameters}}
{{#ifeq:{{{image_alt|{{{alt|}}}}}}|{{{alt|{{{image_alt|}}}}}}||1}}
| abbr; marks
{{#ifeq:{{{caption|{{{image_caption|}}}}}}|{{{image_caption|{{{caption|}}}}}}||1}}
| alt; image_alt
{{#ifeq:{{{headquarters|{{{hq_city|}}}}}}|{{{hq_city|{{{headquarters|}}}}}}||1}}
| caption; image_caption
{{#ifeq:{{{routemap|{{{map|}}}}}}|{{{map|{{{routemap|}}}}}}||1}}
| defunct; end_year
|[[Category:Pages using infobox rail with unknown parameters|χ]]
| el; electrification
| founded; start_year
| headquarters; hq_city
| image; image_filename
| logo; logo_filename
| map; routemap
| name; railroad_name
}}<noinclude>
}}<noinclude>
{{documentation}}
{{documentation}}

Latest revision as of 07:35, 5 July 2024