Difference between revisions of "Template:Infobox rail company/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Andy M. Wang
(sync, tfm long done)
imported>Primefac
(reset sandbox)
 
Line 1: Line 1:
{{ infobox
+
{{infobox
 
| headerstyle= background-color: #efefef
 
| headerstyle= background-color: #efefef
| bodystyle = {{#if:{{{min-width|}}}|min-width:{{{min-width}}};}} {{#if:{{{box_width|}}}|width:{{{box_width}}};}} {{{style|}}}
+
| title    = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
| title    = {{{name<includeonly>|</includeonly>}}}
+
| image1    = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|{{{logo_filename|}}}}}}|size={{{logo_size|{{{logo_width|}}}}}}|upright={{{logo_upright|0.9}}}}}
| image1    = {{#if: {{{logo_filename<includeonly>|</includeonly>}}}|<div style="background:{{{bgcolor}}};">{{#invoke:InfoboxImage|InfoboxImage|image={{{logo_filename}}}|size={{{logo_width|}}}|sizedefault=200px}}</div>}}
+
| image2    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{image_filename|}}}}}}|size={{{image_size|{{{widthpx|}}}}}}|upright={{{image_upright|1.2}}}}}
| image2    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image_filename<includeonly>|</includeonly>}}}|size={{{widthpx|}}}|sizedefault=265px}}
+
| caption2  = {{{caption|}}}
| caption2  = {{{caption<includeonly>|</includeonly>}}}
+
| subheader = {{{other_name|}}}
| header1  = {{#if:{{{franchise<includeonly>|</includeonly>}}}{{{regions|}}}{{{secregions|}}}{{{fleet|}}}{{{stations|}}}{{{stationsop|}}}{{{abbr|}}}{{{parent_company|}}}{{{website}}}|Overview}}
+
 
| label2    = Franchise(s):
+
| header1  = {{#if:{{{franchise|}}}{{{regions|}}}{{{secregions|}}}{{{fleet|}}}{{{stations|}}}{{{stationsop|}}}{{{routekm|}}}{{{abbr|}}}{{{founded|}}}{{{defunct|}}}{{{parent_company|}}}{{{predecessors|}}}{{{successors|}}}{{{website|}}}|Overview}}
| data2    = {{{franchise<includeonly>|</includeonly>}}}
+
 
| label3    = Main {{{nameforarea}}}(s):
+
| label2    = Franchise(s)
| data3    = {{{regions<includeonly>|</includeonly>}}}
+
| data2    = {{{franchise|}}}
| label4    = Other {{{nameforarea}}}(s):
+
| label3    = Main {{if empty|{{{nameforarea|}}}|region}}(s)
| data4    = {{{secregions<includeonly>|</includeonly>}}}
+
| data3    = {{{regions|}}}
| label5    = Fleet size:
+
| label4    = Other {{if empty|{{{nameforarea|}}}|region}}(s)
| data5    = {{{fleet<includeonly>|</includeonly>}}}
+
| data4    = {{{secregions|}}}
| label6    = Stations called at:
+
| label5    = Fleet size
| data6    = {{{stations<includeonly>|</includeonly>}}}
+
| data5    = {{{fleet|}}}
| label7    = Stations operated:
+
| label6    = Stations called at
| data7    = {{{stationsop<includeonly>|</includeonly>}}}
+
| data6    = {{{stations|}}}
| label9    = Route km operated:
+
| label7    = Stations operated
| data9    = {{{routekm<includeonly>|</includeonly>}}}
+
| data7    = {{{stationsop|}}}
| label10   = National Rail abbreviation:
+
| label9    = Route km operated
| data10     = {{{abbr<includeonly>|</includeonly>}}}
+
| data9    = {{{routekm|}}}
| label11   = Parent company:
+
| label10   = National Rail abbreviation
| data11     = {{{parent_company<includeonly>|</includeonly>}}}
+
| data10   = {{{abbr|}}}
| label12    = Website:
+
| label11   = Founded
| data12    = <includeonly>{{#if:{{{website|}}} | [http://{{{website}}} {{ #if:{{{websitetitle|}}} | {{{websitetitle}}} | {{{website}}} }}] }}</includeonly><noinclude><nowiki>[http://{{{website}}} {{{websitetitle}}}</nowiki>]</noinclude>
+
| data11   = {{{founded|}}}
 +
| label12   = Defunct
 +
| data12   = {{{defunct|}}}
 +
| label13  = {{#if:{{{predecessors|}}}|Predecessors|Predecessor}}
 +
| data13    = {{#if:{{{predecessors|}}}|{{{predecessors|}}}|{{{predecessor|}}}}}
 +
| label14  = {{#if:{{{successors|}}}|Successors|Successor}}
 +
| data14    = {{#if:{{{successors|}}}|{{{successors|}}}|{{{successor|}}}}}
 +
| label15  = Parent company
 +
| data15    = {{{parent_company|}}}
 +
| label16  = Website
 +
| data16    = {{#if:{{{website|}}} | {{#ifeq:_MATCH_|{{#invoke:string|replace|{{{website}}}|^[A-Za-z0-9].*|_MATCH_|plain=false}}|{{URL|1={{{website}}}}}|{{{website}}} }} }}
  
| header40  = {{#if:{{{linelength<includeonly>|</includeonly>}}}{{{tracklength|}}}{{{notrack|}}}{{{gauge|}}}{{{el|}}}{{{speed|}}}{{{elevation|}}}|Technical}}
+
| header40  = {{#if:{{{linelength|}}}{{{tracklength|}}}{{{notrack|}}}{{{gauge|}}}{{{el|}}}{{{speed|}}}{{{elevation|}}}|Technical}}
| label41  = Line length:
+
| label41  = Line length
| data41    = {{{linelength<includeonly>|</includeonly>}}}
+
| data41    = {{{linelength|}}}
| label42  = Track length:
+
| label42  = Track length
| data42    = {{{tracklength<includeonly>|</includeonly>}}}
+
| data42    = {{{tracklength|}}}
| label43  = No. of tracks:
+
| label43  = {{abbr|No.|Number}} of tracks
| data43    = {{{notrack<includeonly>|</includeonly>}}}
+
| data43    = {{{notrack|}}}
| label44  = [[Track gauge|Gauge]]:
+
| label44  = [[Track gauge|Gauge]]
| data44    = {{{gauge<includeonly>|</includeonly>}}}
+
| data44    = {{{gauge|}}}
| label45  = Previous gauge:
+
| label45  = Previous gauge
| data45    = {{{oldgauge<includeonly>|</includeonly>}}}
+
| data45    = {{{oldgauge|}}}
| label46  = [[Railway electrification system|Electrification]]:
+
| label46  = [[Railway electrification system|Electrification]]
| data46    = {{{el<includeonly>|</includeonly>}}}
+
| data46    = {{{el|}}}
| label47  = Operating speed:
+
| label47  = Operating speed
| data47    = {{{speed<includeonly>|</includeonly>}}}
+
| data47    = {{{speed|}}}
| label48  = Highest elevation:
+
| label48  = Highest elevation
| data48    = {{{elevation<includeonly>|</includeonly>}}}
+
| data48    = {{{elevation|}}}
  
 
| belowstyle = vertical-align:middle; padding:0px;
 
| belowstyle = vertical-align:middle; padding:0px;
| below      = {{#if:{{{map<includeonly>|</includeonly>}}}|
+
| below      = {{#if:{{{map|}}}|
 
{{ infobox
 
{{ infobox
 
| bodystyle  = {{Infobox subbox bodystyle}}
 
| bodystyle  = {{Infobox subbox bodystyle}}
Line 56: Line 66:
 
}}
 
}}
 
}}
 
}}
}}<noinclude>{{documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS --></noinclude>
+
}}<noinclude>
 +
{{documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS -->
 +
</noinclude>

Latest revision as of 23:30, 19 March 2020

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