Difference between revisions of "Template:Infobox rail company/sandbox"
Jump to navigation
Jump to search
imported>Lfdder (Create sandbox version of Template:Infobox rail company) |
imported>Primefac (reset sandbox) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{infobox | |
| − | {{ infobox | ||
| headerstyle= background-color: #efefef | | headerstyle= background-color: #efefef | ||
| − | | title = {{{name|}}} | + | | title = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} |
| − | | image1 = {{# | + | | image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|{{{logo_filename|}}}}}}|size={{{logo_size|{{{logo_width|}}}}}}|upright={{{logo_upright|0.9}}}}} |
| − | | image2 = {{# | + | | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{image_filename|}}}}}}|size={{{image_size|{{{widthpx|}}}}}}|upright={{{image_upright|1.2}}}}} |
| caption2 = {{{caption|}}} | | caption2 = {{{caption|}}} | ||
| − | | header1 = {{#if:{{{franchise|}}}{{{regions|}}}{{{secregions|}}}{{{fleet|}}}{{{stations|}}}{{{stationsop|}}}{{{abbr|}}}{{{parent_company|}}}{{{website}}}| | + | | subheader = {{{other_name|}}} |
| − | | label2 = Franchise(s) | + | |
| + | | header1 = {{#if:{{{franchise|}}}{{{regions|}}}{{{secregions|}}}{{{fleet|}}}{{{stations|}}}{{{stationsop|}}}{{{routekm|}}}{{{abbr|}}}{{{founded|}}}{{{defunct|}}}{{{parent_company|}}}{{{predecessors|}}}{{{successors|}}}{{{website|}}}|Overview}} | ||
| + | |||
| + | | label2 = Franchise(s) | ||
| data2 = {{{franchise|}}} | | data2 = {{{franchise|}}} | ||
| − | | label3 = Main {{{nameforarea}}}(s) | + | | label3 = Main {{if empty|{{{nameforarea|}}}|region}}(s) |
| data3 = {{{regions|}}} | | data3 = {{{regions|}}} | ||
| − | | label4 = Other {{{nameforarea}}}(s) | + | | label4 = Other {{if empty|{{{nameforarea|}}}|region}}(s) |
| data4 = {{{secregions|}}} | | data4 = {{{secregions|}}} | ||
| − | | label5 = Fleet size | + | | label5 = Fleet size |
| data5 = {{{fleet|}}} | | data5 = {{{fleet|}}} | ||
| − | | label6 = Stations called at | + | | label6 = Stations called at |
| data6 = {{{stations|}}} | | data6 = {{{stations|}}} | ||
| − | | label7 = Stations operated | + | | label7 = Stations operated |
| data7 = {{{stationsop|}}} | | data7 = {{{stationsop|}}} | ||
| − | + | | label9 = Route km operated | |
| − | |||
| − | | label9 = Route km operated | ||
| data9 = {{{routekm|}}} | | data9 = {{{routekm|}}} | ||
| − | | label10 | + | | label10 = National Rail abbreviation |
| − | | data10 | + | | data10 = {{{abbr|}}} |
| − | | label11 | + | | label11 = Founded |
| − | | data11 | + | | data11 = {{{founded|}}} |
| − | | label12 = | + | | 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|}}}{{{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|}}} | | data41 = {{{linelength|}}} | ||
| − | | label42 = Track length | + | | label42 = Track length |
| data42 = {{{tracklength|}}} | | data42 = {{{tracklength|}}} | ||
| − | | label43 = No. of tracks | + | | label43 = {{abbr|No.|Number}} of tracks |
| data43 = {{{notrack|}}} | | data43 = {{{notrack|}}} | ||
| − | | label44 = [[Track gauge|Gauge]] | + | | label44 = [[Track gauge|Gauge]] |
| data44 = {{{gauge|}}} | | data44 = {{{gauge|}}} | ||
| − | | label45 = Previous gauge | + | | label45 = Previous gauge |
| data45 = {{{oldgauge|}}} | | data45 = {{{oldgauge|}}} | ||
| − | | label46 = [[Railway electrification system|Electrification]] | + | | label46 = [[Railway electrification system|Electrification]] |
| data46 = {{{el|}}} | | data46 = {{{el|}}} | ||
| − | | label47 = Operating speed | + | | label47 = Operating speed |
| data47 = {{{speed|}}} | | data47 = {{{speed|}}} | ||
| − | | label48 = Highest elevation | + | | label48 = Highest elevation |
| data48 = {{{elevation|}}} | | data48 = {{{elevation|}}} | ||
| Line 58: | Line 66: | ||
}} | }} | ||
}} | }} | ||
| − | }} | + | }}<noinclude> |
| + | {{documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS --> | ||
| + | </noinclude> | ||
Latest revision as of 23:30, 19 March 2020
| 50px | This is the template sandbox page for Template:Infobox rail company (diff). |
| 30px | This template uses Lua: |
Usage
- 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
| The above documentation is transcluded from Template:Infobox rail company/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |