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>Andy M. Wang (sync, tfm long done) |
||
| Line 1: | Line 1: | ||
| − | |||
{{ infobox | {{ infobox | ||
| headerstyle= background-color: #efefef | | headerstyle= background-color: #efefef | ||
| − | | title = {{{name|}}} | + | | bodystyle = {{#if:{{{min-width|}}}|min-width:{{{min-width}}};}} {{#if:{{{box_width|}}}|width:{{{box_width}}};}} {{{style|}}} |
| − | | image1 = {{#if: {{{logo_filename|}}}|<div style="background:{{{bgcolor}}};"> | + | | title = {{{name<includeonly>|</includeonly>}}} |
| − | | image2 = {{# | + | | image1 = {{#if: {{{logo_filename<includeonly>|</includeonly>}}}|<div style="background:{{{bgcolor}}};">{{#invoke:InfoboxImage|InfoboxImage|image={{{logo_filename}}}|size={{{logo_width|}}}|sizedefault=200px}}</div>}} |
| − | | caption2 = {{{caption|}}} | + | | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image_filename<includeonly>|</includeonly>}}}|size={{{widthpx|}}}|sizedefault=265px}} |
| − | | header1 = {{#if:{{{franchise|}}}{{{regions|}}}{{{secregions|}}}{{{fleet|}}}{{{stations|}}}{{{stationsop|}}}{{{abbr|}}}{{{parent_company|}}}{{{website}}}| | + | | caption2 = {{{caption<includeonly>|</includeonly>}}} |
| + | | header1 = {{#if:{{{franchise<includeonly>|</includeonly>}}}{{{regions|}}}{{{secregions|}}}{{{fleet|}}}{{{stations|}}}{{{stationsop|}}}{{{abbr|}}}{{{parent_company|}}}{{{website}}}|Overview}} | ||
| label2 = Franchise(s): | | label2 = Franchise(s): | ||
| − | | data2 = {{{franchise|}}} | + | | data2 = {{{franchise<includeonly>|</includeonly>}}} |
| label3 = Main {{{nameforarea}}}(s): | | label3 = Main {{{nameforarea}}}(s): | ||
| − | | data3 = {{{regions|}}} | + | | data3 = {{{regions<includeonly>|</includeonly>}}} |
| label4 = Other {{{nameforarea}}}(s): | | label4 = Other {{{nameforarea}}}(s): | ||
| − | | data4 = {{{secregions|}}} | + | | data4 = {{{secregions<includeonly>|</includeonly>}}} |
| label5 = Fleet size: | | label5 = Fleet size: | ||
| − | | data5 = {{{fleet|}}} | + | | data5 = {{{fleet<includeonly>|</includeonly>}}} |
| label6 = Stations called at: | | label6 = Stations called at: | ||
| − | | data6 = {{{stations|}}} | + | | data6 = {{{stations<includeonly>|</includeonly>}}} |
| label7 = Stations operated: | | label7 = Stations operated: | ||
| − | | data7 = {{{stationsop| | + | | data7 = {{{stationsop<includeonly>|</includeonly>}}} |
| − | |||
| − | |||
| label9 = Route km operated: | | label9 = Route km operated: | ||
| − | | data9 = {{{routekm|}}} | + | | data9 = {{{routekm<includeonly>|</includeonly>}}} |
| label10 = National Rail abbreviation: | | label10 = National Rail abbreviation: | ||
| − | | data10 = {{{abbr|}}} | + | | data10 = {{{abbr<includeonly>|</includeonly>}}} |
| label11 = Parent company: | | label11 = Parent company: | ||
| − | | data11 = {{{parent_company|}}} | + | | data11 = {{{parent_company<includeonly>|</includeonly>}}} |
| − | | label12 = | + | | label12 = Website: |
| − | | data12 = {{#if:{{{website|}}} | [http://{{{website}}} {{ #if:{{{websitetitle|}}} | {{{websitetitle}}} | {{{website}}} }}] }} | + | | data12 = <includeonly>{{#if:{{{website|}}} | [http://{{{website}}} {{ #if:{{{websitetitle|}}} | {{{websitetitle}}} | {{{website}}} }}] }}</includeonly><noinclude><nowiki>[http://{{{website}}} {{{websitetitle}}}</nowiki>]</noinclude> |
| − | | header40 = {{#if:{{{linelength|}}}{{{tracklength|}}}{{{notrack|}}}{{{gauge|}}}{{{el|}}}{{{speed|}}}{{{elevation|}}}|Technical}} | + | | header40 = {{#if:{{{linelength<includeonly>|</includeonly>}}}{{{tracklength|}}}{{{notrack|}}}{{{gauge|}}}{{{el|}}}{{{speed|}}}{{{elevation|}}}|Technical}} |
| label41 = Line length: | | label41 = Line length: | ||
| − | | data41 = {{{linelength|}}} | + | | data41 = {{{linelength<includeonly>|</includeonly>}}} |
| label42 = Track length: | | label42 = Track length: | ||
| − | | data42 = {{{tracklength|}}} | + | | data42 = {{{tracklength<includeonly>|</includeonly>}}} |
| label43 = No. of tracks: | | label43 = No. of tracks: | ||
| − | | data43 = {{{notrack|}}} | + | | data43 = {{{notrack<includeonly>|</includeonly>}}} |
| label44 = [[Track gauge|Gauge]]: | | label44 = [[Track gauge|Gauge]]: | ||
| − | | data44 = {{{gauge|}}} | + | | data44 = {{{gauge<includeonly>|</includeonly>}}} |
| label45 = Previous gauge: | | label45 = Previous gauge: | ||
| − | | data45 = {{{oldgauge|}}} | + | | data45 = {{{oldgauge<includeonly>|</includeonly>}}} |
| label46 = [[Railway electrification system|Electrification]]: | | label46 = [[Railway electrification system|Electrification]]: | ||
| − | | data46 = {{{el|}}} | + | | data46 = {{{el<includeonly>|</includeonly>}}} |
| label47 = Operating speed: | | label47 = Operating speed: | ||
| − | | data47 = {{{speed|}}} | + | | data47 = {{{speed<includeonly>|</includeonly>}}} |
| label48 = Highest elevation: | | label48 = Highest elevation: | ||
| − | | data48 = {{{elevation|}}} | + | | data48 = {{{elevation<includeonly>|</includeonly>}}} |
| belowstyle = vertical-align:middle; padding:0px; | | belowstyle = vertical-align:middle; padding:0px; | ||
| − | | below = {{#if:{{{map|}}}| | + | | below = {{#if:{{{map<includeonly>|</includeonly>}}}| |
{{ infobox | {{ infobox | ||
| bodystyle = {{Infobox subbox bodystyle}} | | bodystyle = {{Infobox subbox bodystyle}} | ||
| Line 58: | Line 56: | ||
}} | }} | ||
}} | }} | ||
| − | }} | + | }}<noinclude>{{documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS --></noinclude> |
Revision as of 20:05, 29 October 2016
[[File:{{{logo_filename}}}|200px]] | |||||
| [[File:{{{image_filename}}}|265px]] {{{caption}}} | |||||
| Overview | |||||
|---|---|---|---|---|---|
| Franchise(s): | {{{franchise}}} | ||||
| Main {{{nameforarea}}}(s): | {{{regions}}} | ||||
| Other {{{nameforarea}}}(s): | {{{secregions}}} | ||||
| Fleet size: | {{{fleet}}} | ||||
| Stations called at: | {{{stations}}} | ||||
| Stations operated: | {{{stationsop}}} | ||||
| Route km operated: | {{{routekm}}} | ||||
| National Rail abbreviation: | {{{abbr}}} | ||||
| Parent company: | {{{parent_company}}} | ||||
| Website: | [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}}} | ||||
| |||||
| 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. |