Jump to content

Template:Infobox rail: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m make Reporting marks singular, per request
convert to Template:infobox, add support for a couple of missing features, per talk page discussion
Line 1: Line 1:
{{Infobox
{| class="infobox vcard" style="font-size:90%; width:23em;"
|name = Infobox rail
|-
! class="fn" colspan="2" style="font-size: large; text-align:center" {{#if: {{{bgcolor|}}}|bgcolor="#{{{bgcolor}}}"}} | {{{railroad_name}}}
|bodystyle = {{#if:{{{bgcolor|}}}|bgcolor="#{{{bgcolor}}}"}}
|above = {{{railroad_name}}}
|-
|abovestyle =
{{#if: {{{logo_filename|}}}|
{{!}} colspan="2" align="center" {{!}} [[Image:{{{logo_filename|}}} | {{px|{{{logo_size|}}}|200px}} | Logo ]]}}
|image = {{#if:{{{logo_filename|}}}|[[Image:{{{logo_filename}}}|{{px|{{{logo_size|}}}|200px}}|Logo]]</br>}}
{{#if:{{{system_map|}}}|[[Image:{{{system_map}}}|{{px|{{{map_size|}}}|250px}}|System map]]{{#if:{{{map_caption|}}}|</br><small>{{{map_caption}}}</small>}}</br>}}
|-
{{#if:{{{image|}}}|[[Image:{{{image}}}|{{px|{{{image_size|}}}|250px}}]]}}
{{#if: {{{system_map|}}}|
|imagestyle =
{{!}} colspan="2" align="center" {{!}} [[Image:{{{system_map}}} | {{px|{{{map_size|}}}|250px}} | System map ]]{{#if: {{{map_caption|}}}|<br><small>{{{map_caption}}}</small> }} }}
|caption = {{{image_caption|}}}
|-
|captionstyle =
{{#if: {{{image|}}}|
|headerstyle =
{{!}} colspan="2" align="center" {{!}} [[Image:{{{image}}} | {{px|{{{image_size|}}}|250px}} | {{{image_caption|}}} ]]{{#if: {{{image_caption|}}}|<br><small>{{{image_caption}}}</small> }} }}
|labelstyle =
|-
|datastyle =
{{#if: {{{marks|}}}|
|header1 =
! [[Reporting mark]]
|label1 = [[Reporting mark]]
{{!}} {{{marks|}}}}}
|data1 = {{{marks<includeonly>|</includeonly>}}}
|-
|header2 =
! Locale
|label2 = Locale
| {{{locale}}}
|data2 = {{{locale<includeonly>|</includeonly>}}}
|-
|header3 =
{{#if: {{{start_year|}}}{{{end_year|}}}|
! Dates of operation
|label3 = Dates of operation
{{!}} {{{start_year|}}}&ndash;{{{end_year|}}}}}
|data3 = {{#if:{{{start_year<includeonly>|</includeonly>}}}{{{end_year|}}}|{{{start_year|}}}&ndash;{{{end_year|}}}}}
|header4 =
|-
|label4 = Predecessor
{{#if: {{{predecessor_line|}}}|
|data4 = {{{predecessor_line<includeonly>|</includeonly>}}}
! Predecessor
|header5 =
{{!}} {{{predecessor_line|}}}}}
|label5 = Successor
|-
{{#if: {{{successor_line|}}}|
|data5 = {{{successor_line<includeonly>|</includeonly>}}}
|header6 =
! Successor
|label6 = [[Rail gauge|Track gauge]]
{{!}} {{{successor_line|}}}}}
|data6 = {{{gauge<includeonly>|</includeonly>}}}
|-
! [[Rail gauge|Track gauge]]
|label7 = Previous gauge
|data7 = {{{old_gauge<includeonly>|</includeonly>}}}
| {{{gauge}}}
|label8 = Electrification
|-
|data8 = {{{electrification<includeonly>|</includeonly>}}}
{{#if: {{{length|}}}|
! Length
|label9 = Length
{{!}} {{{length|}}}}}
|data9 = {{{length<includeonly>|</includeonly>}}}
|header10 =
|-
|label10 = Headquarters
{{#if: {{{hq_city|}}}|
|data10 = {{{hq_city<includeonly>|</includeonly>}}}
! Headquarters
|header11 =
{{!}} {{{hq_city|}}}}}
|label11 = Website
|-
{{#if: {{{website|}}}|
|data11 = {{{website<includeonly>|</includeonly>}}}
}}<noinclude>
! Website
{{pp-template}}
{{!}} {{{website|}}}}}
|}<noinclude>
{{pp-template|small=yes}}
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 22:27, 17 May 2009

{{{railroad_name}}}
Reporting mark{{{marks}}}
Locale{{{locale}}}
Dates of operation
Predecessor{{{predecessor_line}}}
Successor{{{successor_line}}}
Track gauge{{{gauge}}}
Previous gauge{{{old_gauge}}}
Electrification{{{electrification}}}
Length{{{length}}}
Headquarters{{{hq_city}}}
Website{{{website}}}