Difference between revisions of "Template:Infobox rail company"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(add back the portions which do not change the default appearance)
imported>Plastikspork
(Update image syntax)
Line 3: Line 3:
 
| 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<includeonly>|</includeonly>}}}
 
| title    = {{{name<includeonly>|</includeonly>}}}
| image1    = {{#if: {{{logo_filename<includeonly>|</includeonly>}}}|<div style="background:{{{bgcolor}}};">[[File:{{{logo_filename}}}{{#if:{{{logo_width|}}}|{{!}}{{{logo_width}}}|{{!}}200px}}]]</div>}}
+
| image1    = {{#if: {{{logo_filename<includeonly>|</includeonly>}}}|<div style="background:{{{bgcolor}}};">{{#invoke:InfoboxImage|InfoboxImage|image={{{logo_filename}}}|size={{{logo_width|}}}|sizedefault=200px}}</div>}}
| image2    = {{#if:{{{image_filename<includeonly>|</includeonly>}}}|[[File:{{{image_filename}}}|<includeonly>{{px|</includeonly>{{{widthpx<includeonly>|265px</includeonly>}}}<includeonly>}}</includeonly><noinclude>|265px</noinclude>]]}}
+
| image2    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image_filename<includeonly>|</includeonly>}}}|size={{{widthpx|}}}|sizedefault=265px}}
 
| caption2  = {{{caption<includeonly>|</includeonly>}}}
 
| caption2  = {{{caption<includeonly>|</includeonly>}}}
 
| header1  = {{#if:{{{franchise<includeonly>|</includeonly>}}}{{{regions|}}}{{{secregions|}}}{{{fleet|}}}{{{stations|}}}{{{stationsop|}}}{{{abbr|}}}{{{parent_company|}}}{{{website}}}|Info}}
 
| header1  = {{#if:{{{franchise<includeonly>|</includeonly>}}}{{{regions|}}}{{{secregions|}}}{{{fleet|}}}{{{stations|}}}{{{stationsop|}}}{{{abbr|}}}{{{parent_company|}}}{{{website}}}|Info}}

Revision as of 01:59, 24 February 2014

{{{name}}}
[[File:{{{logo_filename}}}|200px]]
[[File:{{{image_filename}}}|265px]]
{{{caption}}}
Info
Franchise(s):{{{franchise}}}
Main {{{nameforarea}}}(s):{{{regions}}}
Other {{{nameforarea}}}(s):{{{secregions}}}
Fleet size:{{{fleet}}}
Stations called at:{{{stations}}}
Stations operated:{{{stationsop}}}
Passenger km 2007/8:{{{passkm0708}}}
Route km operated:{{{routekm}}}
National Rail abbreviation:{{{abbr}}}
Parent company:{{{parent_company}}}
Web site:[http://{{{website}}} {{{websitetitle}}}]
Technical
Line length:{{{linelength}}}
Track length:{{{tracklength}}}
No. of tracks:{{{notrack}}}
Gauge:{{{gauge}}}
Previous gauge:{{{oldgauge}}}
Electrification:{{{el}}}
Operating speed:{{{speed}}}
Highest elevation:{{{elevation}}}
Route map
{{{map}}}
[[Category:Infobox templates|Template:Remove first word]]

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

  1. 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