Template:Infobox rail line: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| child = {{{embed|}}} | | child = {{{embed|}}} | ||
| bodystyle = width:{{{box_width|25em}}}; | | bodystyle = width:{{{box_width|25em}}}; | ||
| above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}} | |||
| above = {{#if:{{{ | |||
| abovestyle = {{#if:{{{color|}}}|border-top: 4px solid #{{{color}}}; border-bottom: 4px solid #{{#if:{{{color2|}}}|{{{color2}}}|{{{color}}}}};}} | | abovestyle = {{#if:{{{color|}}}|border-top: 4px solid #{{{color}}}; border-bottom: 4px solid #{{#if:{{{color2|}}}|{{{color2}}}|{{{color}}}}};}} | ||
| image = {{#if:{{{image<includeonly>|</includeonly>}}}|[[file:{{{image<noinclude>|Placeholder.svg</noinclude>}}}|{{{image_width|}}}|alt={{{image_alt|}}}]]}} | | image = {{#if:{{{image<includeonly>|</includeonly>}}}|[[file:{{{image<noinclude>|Placeholder.svg</noinclude>}}}|{{{image_width|}}}|alt={{{image_alt|}}}]]}} | ||
| caption = {{{caption<includeonly>|</includeonly>}}} | | caption = {{{caption<includeonly>|</includeonly>}}} | ||
| headerstyle = background-color: #efefef; | |||
| headerstyle = background-color: #efefef | | header1 = {{#if:{{{connectinglines|}}}{{{formerconnections|}}}{{{continuesas|}}}{{{continuesfrom|}}}{{{coordinates|}}}{{{end|}}}{{{linenumber|}}}{{{locale|}}}{{{mapcolor|}}}{{{mapcolorlink|}}}{{{mapcolour|}}}{{{mapcolourlink|}}}{{{native_name|}}}{{{native_name_lang|}}}{{{other_name|}}}{{{daily_ridership|}}}{{{ridership2|}}}{{{routes|}}}{{{start|}}}{{{stations|}}}{{{status|}}}{{{system|}}}{{{trainnumber|}}}{{{type|}}}{{{website|}}}|Overview}} | ||
| label2 = Other name(s) | |||
| header1 = {{#if:{{{ | | data2 = {{{other_name|}}} | ||
| class2 = nickname | |||
| label2 = | | label3 = Native name | ||
| data2 | | data3 = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}} | ||
| | | label4 = Type | ||
| | | data4 = {{{type|}}} | ||
| | | label5 = System | ||
| | | data5 = {{{system|}}} | ||
| | | label6 = Status | ||
| | | data6 = {{{status|}}} | ||
| | | label7 = Locale | ||
| | | data7 = {{{locale|}}} | ||
| label8 = Coordinates | |||
| | | data8 = {{{coordinates|}}} | ||
| | | label9 = Termini | ||
| | | data9 = {{#if:{{{start|}}}|{{{start}}}{{#if:{{{end|}}}|<br />{{{end}}}}}}} | ||
| | | label10 = Continues from | ||
| | | data10 = {{{continuesfrom|}}} | ||
| | | label11 = Continues as | ||
| | | data11 = {{{continuesas|}}} | ||
| | | label12 = Connecting lines | ||
| | | data12 = {{{connectinglines|}}} | ||
| | | label13 = Former connections | ||
| | | data13 = {{{formerconnections|}}} | ||
| | | label14 = Stations | ||
| | | data14 = {{{stations|}}} | ||
| | | label15 = Services | ||
| | | data15 = {{{routes|}}} | ||
| | | label16 = Daily ridership | ||
| data16 = {{{daily_ridership|}}} | |||
| | | label17 = Ridership | ||
| data17 = {{{ridership2|}}} | |||
| | | label18 = Train number(s) | ||
| | | data18 = {{{trainnumber|}}} | ||
| | | label19 = Line number | ||
| | | data19 = {{{linenumber|}}} | ||
| | | label20 = {{#if:{{{mapcolor|}}}|Color|Colour}} on {{#if:{{{mapcolourlink|{{{mapcolorlink|}}}}}}|[[{{{mapcolourlink|{{{mapcolorlink}}}}}}|map]]|map}} | ||
| | | data20 = {{#if:{{{mapcolor|}}}|{{{mapcolor}}}|{{{mapcolour|}}} }} | ||
| | | label21 = Website | ||
| | | data21 = {{{website|}}} | ||
| | | header22 = {{#if:{{{character|}}}{{{close|}}}{{{conductionsystem|}}}{{{depot|}}}{{{lastextension|}}}{{{planopen|}}}{{{open|}}}{{{operator|}}}{{{owner|}}}{{{reopen|}}}{{{stock|}}}|Operation}} | ||
| | | label23 = Commenced | ||
| | | data23 = {{{yearcommenced|}}} | ||
| | | label24 = Planned opening | ||
| | | data24 = {{{planopen|}}} | ||
| | | label25 = Opened | ||
| | | data25 = {{{open|}}} | ||
| | | label26 = Last extension | ||
| data26 = {{{lastextension|}}} | |||
| header40 = {{#if:{{{ | | label27 = Completed | ||
| data27 = {{{yearcompleted|}}} | |||
| label28 = Closed | |||
| data28 = {{{close|}}} | |||
| label29 = Reopened | |||
| data29 = {{{reopen|}}} | |||
| label30 = Owner | |||
| data30 = {{{owner|}}} | |||
| label31 = Operator(s) | |||
| data31 = {{{operator|}}} | |||
| label32 = Conduction system | |||
| data32 = {{{conductionsystem|}}} | |||
| label33 = Character | |||
| data33 = {{{character|}}} | |||
| label34 = Depot(s) | |||
| data34 = {{{depot|}}} | |||
| label35 = Rolling stock | |||
| data35 = {{{stock|}}} | |||
| header36 = {{#if:{{#if:{{{event1label|}}}|{{{event1|}}}}}{{#if:{{{event2label|}}}|{{{event2|}}}}}{{#if:{{{event3label|}}}|{{{event3|}}}}}|Events}} | |||
| label37 = {{{event1label}}} | |||
| data37 = {{#if:{{{event1label|}}}|{{{event1|}}}}} | |||
| label38 = {{{event2label}}} | |||
| data38 = {{#if:{{{event2label|}}}|{{{event2|}}}}} | |||
| label39 = {{{event3label}}} | |||
| data39 = {{#if:{{{event3label|}}}|{{{event3|}}}}} | |||
| header40 = {{#if:{{{aveinterstation|}}}{{{electrification|}}}{{{elevation|}}}{{{elevation_ft|}}}{{{elevation_m|}}}{{{gauge|}}}{{{load_gauge|}}}{{{linelength|}}}{{{linelength_footnotes|}}}{{{linelength_km|}}}{{{linelength_mi|}}}{{{maxincline|}}}{{{minradius|}}}{{{minradius_ft|}}}{{{minradius_m|}}}{{{old_gauge|}}}{{{availability|}}}{{{racksystem|}}}{{{routenumber|}}}{{{speed|}}}{{{speed_km/h|}}}{{{speed_mph|}}}{{{tracklength|}}}{{{tracklength_footnotes|}}}{{{tracklength_km|}}}{{{tracklength_mi|}}}|Technical}} | |||
| label41 = Line length | | label41 = Line length | ||
| data41 | | data41 = {{Convinfobox|{{{linelength_km|}}}|km|{{{linelength_mi|}}}|mi}}{{{linelength|}}}{{{linelength_footnotes|}}} | ||
| label42 = Track length | | label42 = Track length | ||
| data42 | | data42 = {{Convinfobox|{{{tracklength_km|}}}|km|{{{tracklength_mi|}}}|mi}}{{{tracklength|}}}{{{tracklength_footnotes|}}} | ||
| label43 = | | label43 = Number of tracks | ||
| data43 | | data43 = {{{tracks|}}} | ||
| label44 = [[Track gauge]] | | label44 = [[Track gauge]] | ||
| data44 | | data44 = {{{gauge|}}} | ||
| label45 = Old gauge | | label45 = Old gauge | ||
| data45 | | data45 = {{{old_gauge|}}} | ||
| label46 = [[Loading gauge]] | | label46 = [[Loading gauge]] | ||
| data46 | | data46 = {{{load_gauge|}}} | ||
| label47 = [[Minimum railway curve radius|Minimum radius]] | | label47 = [[Route availability]] | ||
| | | data47 = {{{availability|}}} | ||
| | | label48 = [[Minimum railway curve radius|Minimum radius]] | ||
| | | data48 = {{Convinfobox|{{{minradius_m|}}}|m|{{{minradius_ft|}}}|ft}}{{{minradius|}}} | ||
| | | label49 = [[Railway electrification system|Electrification]] | ||
| | | data49 = {{{electrification|}}} | ||
| | | label50 = Operating speed | ||
| | | data50 = {{Convinfobox|{{{speed_km/h|}}}|km/h|{{{speed_mph|}}}|mph}}{{{speed|}}} | ||
| | | label51 = [[Railway signalling|Signalling]] | ||
| | | data51 = {{{signalling|}}} | ||
| | | label52 = Highest elevation | ||
| | | data52 = {{Convinfobox|{{{elevation_m|}}}|m|{{{elevation_ft|}}}|ft}}{{{elevation|}}} | ||
| | | label53 = [[Grade (slope)|Maximum incline]] | ||
| | | data53 = {{{maxincline|}}} | ||
| label54 = Rack system | |||
| data54 = {{{racksystem|}}} | |||
| label55 = Route number | |||
| data55 = {{{routenumber|}}} | |||
| label56 = Average inter-station distance | |||
| data56 = {{{aveinterstation|}}} | |||
| data60 = {{{embedded|}}} | |||
| belowstyle = vertical-align: middle | | belowstyle = vertical-align: middle; padding: 0 | ||
| below | | below = {{#if:{{{map|}}}| | ||
<table style="width:100%; | <table style="border-spacing: 0; width: 100%; min-width: 100%" class="mw-collapsible {{#switch:{{{map_state|}}} | ||
|1|yes|collapsed|hide = mw-collapsed autocollapse | |||
|0|no|show|uncollapsed|#default = uncollapsed | |||
|1 | |||
|yes | |||
|collapsed = mw-collapsed autocollapse | |||
}}"> | }}"> | ||
<tr | <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><td | <tr><td style="text-align:center; padding-top: 3px"> | ||
{{{map | {{{map|}}}</td></tr> | ||
</td></tr> | </table>}} | ||
</table> | |||
}} | |||
}}<noinclude>{{documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->[[Category: Transportation templates]]</noinclude> | }}<noinclude>{{documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->[[Category: Transportation templates]]</noinclude> | ||
[[Category:Railways]] | [[Category:Railways]] |
Revision as of 07:27, 7 May 2020
Template:PAGENAMEBASE | |
File:Placeholder.svg {{{caption}}} |
[create]
Template documentation
![](/wiki/images/thumb/6/6b/Template-info.svg.png/50px-Template-info.svg.png)
Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |