Template:Infobox public transit and Template:Infobox public transit/testcases: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
add class="infobox-header" to route map name for dark style fixes to apply |
m syntaxhighlight lang="wikitext" |
||
Line 1: | Line 1: | ||
{{Template test cases notice}} |
|||
{{Infobox |
|||
| bodystyle = {{#if:{{{box_width|}}}|width: {{{box_width}}};}} |
|||
| headerstyle = background-color: #efefef; |
|||
| belowstyle = vertical-align: middle; padding: 0px; |
|||
== Test case 1: [[Port Authority Trans-Hudson]] == |
|||
|above = {{#if:{{{name|}}}|{{{name}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}} |
|||
|abovestyle = text-align:center;background-color:#ededed; |
|||
=== Code === |
|||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|}}}|sizedefault=frameless|alt={{{alt|}}}|title={{{caption|}}}}} |
|||
<syntaxhighlight lang="wikitext"> |
|||
| caption = {{{caption|}}} |
|||
{{Infobox public transit |
|||
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{{imagesize2|}}}|sizedefault=frameless|alt={{{alt2|}}}|title={{{caption2|}}}}} |
|||
| name = PATH |
|||
| caption2 = {{{caption2|}}} |
|||
| image = placeholder.png |
|||
| image3 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image3|}}}|size={{{imagesize3|}}}|sizedefault=frameless|alt={{{alt3|}}}|title={{{caption3|}}}}} |
|||
| imagesize = 200 px |
|||
| caption3 = {{{caption3|}}} |
|||
| locale = Northern [[New Jersey]] and [[Manhattan]], [[New York (state)|New York]] |
|||
| header1 = {{#if:{{{native_name|}}}{{{owner|}}}{{{area served|}}}{{{locale|}}}{{{transit_type|}}}{{{lines|}}}{{{line_number|}}}{{{start|}}}{{{end|}}}{{{stations|}}}{{{stops|}}}{{{ridership|}}}{{{daily_ridership|}}}{{{annual_ridership|}}}{{{chief_executive|}}}{{{key_people|}}}{{{headquarters|}}}{{{website|}}}|Overview}} |
|||
| |
| transit_type = [[Rapid transit]] |
||
| began_operation = 1908 |
|||
| data2 = {{{native_name|}}} |
|||
| system_length = {{convert|13.8|mi|km|abbr=on}} |
|||
| label3 = Owner |
|||
| |
| lines = 4 |
||
| |
| stations = 13 |
||
| |
| ridership = 239,200 |
||
| track_gauge = {{RailGauge|sg|al=on}} |
|||
| label5 = Locale |
|||
| |
| marks = PATH; formerly HDM |
||
| operator = Port Authority Trans-Hudson |
|||
| label6 = Transit type |
|||
| owner = [[Port Authority of New York and New Jersey]] |
|||
| data6 = {{{transit_type|}}} |
|||
| map = {{PATH map}} |
|||
| label7 = Number of lines |
|||
| |
| map_state = show |
||
}} |
|||
| label8 = Line number |
|||
</syntaxhighlight> |
|||
| data8 = {{{line_number|}}} |
|||
| label9 = Start |
|||
| date9 = {{{Start}}} |
|||
| label10 = End |
|||
| date10 = {{{End}}} |
|||
| label11 = Number of s{{#if:{{{stations|}}}|tation|top}}s |
|||
| data11 = {{#if:{{{stations|}}}|{{{stations}}}|{{{stops|}}}}} |
|||
| label12 = Daily ridership |
|||
| data12 = {{{daily_ridership|{{{ridership|}}}}}} |
|||
| label13 = Annual ridership |
|||
| data13 = {{{annual_ridership|}}} |
|||
| label14 = {{#if:{{{chief_executive|}}}|Chief executive|Key people}} |
|||
| data14 = {{#if:{{{chief_executive|}}}|{{{chief_executive}}}|{{{key_people|}}}}} |
|||
| label15 = Headquarters |
|||
| data15 = {{{headquarters|}}} |
|||
| label16 = Website |
|||
| data16 = {{{website|}}} |
|||
=== Results === |
|||
| header17 = {{#if:{{{began_operation|}}}{{{operation_will_start|}}}{{{ended_operation|}}}{{{operator|}}}{{{marks|{{{reporting marks|}}}}}}{{{infrastructure_managers|}}}{{{host|}}}{{{character|}}}{{{stock|}}} {{{vehicles|}}}{{{train_length|}}}{{{headway|}}}|Operation}} |
|||
{| |
|||
| label18 = Began operation |
|||
! {{tl|{{BASEPAGENAME}}}} |
|||
| data18 = {{{began_operation|}}} |
|||
! {{tl|{{BASEPAGENAME}}/sandbox}} |
|||
| label19 = Operation will start |
|||
|- style="vertical-align:top;" |
|||
| data19 = {{{operation_will_start|}}} |
|||
| |
|||
| label20 = Ended operation |
|||
{{Infobox public transit |
|||
| data20 = {{{ended_operation|}}} |
|||
| name = PATH |
|||
| label21 = Operator(s) |
|||
| image = placeholder.png |
|||
| data21 = {{{operator|}}} |
|||
| imagesize = 200 px |
|||
| label22 = [[Reporting mark]]s |
|||
| locale = Northern [[New Jersey]] and [[Manhattan]], [[New York (state)|New York]] |
|||
| data22 = {{{marks|{{{reporting marks|}}}}}} |
|||
| transit_type = [[Rapid transit]] |
|||
| label23 = Infrastructure manager(s) |
|||
| began_operation = 1908 |
|||
| data23 = {{{infrastructure_managers|}}}{{{host|}}} |
|||
| system_length = {{convert|13.8|mi|km|abbr=on}} |
|||
| label24 = Character |
|||
| lines = 4 |
|||
| data24 = {{{character|}}} |
|||
| stations = 13 |
|||
| label25 = [[Rolling stock]] |
|||
| |
| ridership = 239,200 |
||
| track_gauge = {{RailGauge|sg|al=on}} |
|||
| label26 = Number of vehicles |
|||
| marks = PATH; formerly HDM |
|||
| data26 = {{{vehicles|}}} |
|||
| operator = Port Authority Trans-Hudson |
|||
| label27 = Train length |
|||
| owner = [[Port Authority of New York and New Jersey]] |
|||
| data27 = {{{train_length|}}} |
|||
| map = {{PATH service map}} |
|||
| label28 = [[Headway]] |
|||
| |
| map_state = show |
||
}} |
|||
| |
|||
| header29= {{#if:{{{system_length|}}}{{{notrack|}}}{{{track_gauge|}}}{{{ogauge|}}}{{{minimum_radius_of_curvature|}}}{{{el|}}}{{{average_speed|}}}{{{top_speed|}}}|Technical}} |
|||
{{Infobox public transit/sandbox |
|||
| label30 = System length |
|||
| name = PATH |
|||
| data30 = {{{system_length|}}} |
|||
| image = placeholder.png |
|||
| label31 = No. of tracks |
|||
| |
| imagesize = 200 px |
||
| locale = Northern [[New Jersey]] and [[Manhattan]], [[New York (state)|New York]] |
|||
| label32 = [[Track gauge]] |
|||
| transit_type = [[Rapid transit]] |
|||
| data32 = {{{track_gauge|}}} |
|||
| began_operation = 1908 |
|||
| label33 = Old gauge |
|||
| |
| system_length = {{convert|13.8|mi|km|abbr=on}} |
||
| lines = 4 |
|||
| label34 = [[Minimum railway curve radius|Minimum radius of curvature]] |
|||
| stations = 13 |
|||
| data34 = {{{minimum_radius_of_curvature|}}} |
|||
| ridership = 239,200 |
|||
| label35 = [[Railway electrification|Electrification]] |
|||
| |
| track_gauge = {{RailGauge|sg|al=on}} |
||
| marks = PATH; formerly HDM |
|||
| label36 = Average speed |
|||
| operator = Port Authority Trans-Hudson |
|||
| data36 = {{{average_speed|}}} |
|||
| owner = [[Port Authority of New York and New Jersey]] |
|||
| label37 = Top speed |
|||
| |
| map = {{PATH map}} |
||
| map_state = show |
|||
}} |
|||
| data38 = {{{embedded|}}} |
|||
|- |
|||
|} |
|||
| below = {{#if:{{{map|}}}| |
|||
<table style="width:100%; margin:0; border:none;" class="collapsible {{{map_state|}}}"> |
|||
<tr style="background-color: #efefef;" class="infobox-header"><th style="text-align: center;">{{#if:{{{map_name|}}}|{{{map_name}}}|System map}}</th></tr> |
|||
<tr><td style="text-align:center"> |
|||
{{{map}}} |
|||
</td></tr></table> |
|||
}} |
|||
}}{{#invoke:Check for unknown parameters | check | unknown={{main other|[[Category:Pages using infobox public transit with unknown parameters|_VALUE_{{PAGENAME}}]]}}|ignoreblank=y |
|||
| preview = Page using [[Template:Infobox public transit]] with unknown parameter "_VALUE_" |
|||
| box_width | name | image | imagesize | alt | caption | image2 | imagesize2 | alt2 | caption2 | image3 | imagesize3 | alt3 | caption3 |
|||
| native_name | owner | area served | locale | transit_type | lines | line_number | start | end | stations | stops | ridership | daily_ridership | annual_ridership |
|||
| chief_executive | key_people | headquarters | website | began_operation | operation_will_start | ended_operation | operator | marks |reporting marks | infrastructure_managers | host | character |
|||
| stock | vehicles|train_length | headway | system_length | notrack | track_gauge | ogauge | minimum_radius_of_curvature | el | average_speed | top_speed | embedded |
|||
| map | map_state | map_name |
|||
}}<noinclude> |
|||
{{Documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS --> |
|||
</noinclude> |