Difference between revisions of "Template:BS-Infobox"

From blackwiki
Jump to navigation Jump to search
imported>Raphaelmak
(Provide an others value for gauge, so that near standard gauges can be rendered correctly)
Line 2: Line 2:
 
}}{{#if: {{{map|}}}|<tr><td valign="top" colspan="2">[[Image:{{{map}}}|center|{{{map_size}}}|{{{map_caption}}}]]{{#if: {{{map_caption|}}}|<div align="center"><small>{{{map_caption}}}</small></div>}}</td></tr>
 
}}{{#if: {{{map|}}}|<tr><td valign="top" colspan="2">[[Image:{{{map}}}|center|{{{map_size}}}|{{{map_caption}}}]]{{#if: {{{map_caption|}}}|<div align="center"><small>{{{map_caption}}}</small></div>}}</td></tr>
 
}}{{#if: {{{length|}}}|<tr><td valign="top">Line length:</td><td>{{{length}}}&nbsp;km</td></tr>
 
}}{{#if: {{{length|}}}|<tr><td valign="top">Line length:</td><td>{{{length}}}&nbsp;km</td></tr>
}}{{#if: {{{gauge|}}}|<tr><td valign="top">[[Rail gauge|Gauge]]:</td><td>{{#switch: {{{gauge|}}}| N = [[Narrow gauge railway|Narrow]] | B = [[Broad gauge|Broad]] | S = [[Standard gauge|Standard]] (1435mm)}}</td></tr>}}<noinclude>
+
}}{{#if: {{{gauge|}}}|<tr><td valign="top">[[Rail gauge|Gauge]]:</td><td>{{#switch: {{{gauge|}}}| N = [[Narrow gauge railway|Narrow]] | B = [[Broad gauge|Broad]] | S = [[Standard gauge|Standard]] (1435mm) | {{{gauge}}}mm}}</td></tr>}}<noinclude>
  
 
This is a template for the railway line infobox. Named parameters are:
 
This is a template for the railway line infobox. Named parameters are:
Line 22: Line 22:
 
| Length || Line length (km)
 
| Length || Line length (km)
 
|-
 
|-
| Gauge || Use "N" for Narrow, "B" for Broad and "S" for Standard  
+
| Gauge || Use "N" for Narrow, "B" for Broad and "S" for Standard, or type in any value in mm
 
|-
 
|-
 
| Map || Map
 
| Map || Map

Revision as of 07:15, 6 January 2008


This is a template for the railway line infobox. Named parameters are:

{{BS-Infobox
|image      =
|caption    =
|image_size =
|map        =
|map_size   =
|map_caption=
|length     =
|gauge      =
}}
Length Line length (km)
Gauge Use "N" for Narrow, "B" for Broad and "S" for Standard, or type in any value in mm
Map Map
Map_Size Map width, for example 200px
Image Image
Caption Image caption
Image_Size Image width, for example 200px

pt:Predefinição:BS-Infobox