Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox station: Difference between revisions

Template page
m 1 revision imported
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
| child = {{#ifeq:{{{embed|}}}|yes|yes}}
| templatestyles = Infobox station/styles.css
| templatestyles = Infobox station/styles.css
| bodyclass = vcard ib-station
| bodyclass = vcard ib-station
Line 33: Line 34:
| class4  = label
| class4  = label
| label5  = Coordinates
| label5  = Coordinates
|  data5  = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:railwaystation|{{#if:{{{country|{{#property:P17}}}}}|region:{{ISO 3166 code|{{{country|{{#property:P17}}}}}|{{{borough|}}}}}}}}}}}
|  data5  = {{{coordinates|}}}
| label6  = {{if empty|{{{grid_name|}}}|Grid position}}
| label6  = {{if empty|{{{grid_name|}}}|Grid position}}
|  data6  = {{{grid_position|}}}
|  data6  = {{{grid_position|}}}
Line 86: Line 87:
| label31  = Architectural style
| label31  = Architectural style
|  data31  = {{{architectural_style|}}}
|  data31  = {{{architectural_style|}}}
| label32  = Station color
|  data32  = {{{colour|}}}


| header32 = Other information
| header33 = Other information
| label33 = Status
| label34 = Status
data33 = {{{status|}}}
data34 = {{{status|}}}
| label34 = Station code
| label35 = Station code
data34 = {{{code|}}}
data35 = {{{code|}}}
| class34  = nickname
| label35  = Stop number
|  data35  = {{{number|}}}
| class35  = nickname
| class35  = nickname
| label36  = [[IATA airport code|IATA code]]
| label36  = Stop number
|  data36  = {{{iata|}}}
|  data36  = {{{number|}}}
| class36  = nickname
| label37  = Fare zone
| label37  = Fare zone
|  data37  = {{{zone|}}}
|  data37  = {{{zone|}}}
Line 182: Line 183:


| header77 = Location
| header77 = Location
|  data78  =  
|  data78  = {{#if:{{{map_image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|}}}|size={{{map_size|}}}|upright={{if empty|{{{map_image_upright|}}}|{{{image_upright|}}}|1.35}}|alt={{{map_alt|}}}}}{{#if:{{{map_caption|}}}|<div style="padding:0.2em 0;">{{{map_caption}}}</div>|}}|}}
{{#if:{{{map_type|}}}
  |{{#if:{{{coordinates|}}}{{#switch:{{#property:P625}}|unknown value|=|#default=1}}
    |{{Location map|{{{map_type}}}
      | AlternativeMap = {{{AlternativeMap|}}}
      | alt = {{{map_alt|}}}
      | overlay_image  = {{{map_overlay|}}}
      | coordinates = {{{coordinates|}}}
      | float = center | border = infobox
      | label  = {{If empty|{{{map_dot_label|}}}|{{{name|}}}|{{PAGENAMEBASE}}}}
      | outside = {{{pushpin_outside|}}}
      | position = {{{map_label_position|}}}
      | caption = {{#if:{{{map_caption|}}}|{{{map_caption}}}|Location within {{#invoke:Location map|data|{{{map_type}}}|name}}}}
      | width  = {{{map_size|}}}
      }}
    |{{superimpose|align=center|base={{#invoke:Location map|data|{{{map_type}}}|image}}|base_width=250px|float=Question mark.svg|x=100|y=50|float_width=50px}}{{main other|[[Category:Articles using Infobox station with a broken location map]]}}
    }}
| {{#if:{{{map_image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|}}}|size={{{map_size|}}}|upright={{if empty|{{{map_image_upright|}}}|{{{image_upright|}}}|1.35}}|alt={{{map_alt|}}}}}{{#if:{{{map_caption|}}}|<div style="padding:0.2em 0;">{{{map_caption}}}</div>|}}|}}
}}
|  data79  = {{#invoke:Infobox mapframe|auto|mapframe-marker={{#switch:{{#invoke:wd|property|P31}}
  |{{label|Q494829}}=bus
  |{{label|Q55488}}=rail
  |{{label|Q55491}}|{{label|Q14562709}}=rail-metro
  |{{label|Q2175765}}=rail-light
}}}}
|  data80  = {{#invoke:Infobox mapframe|autocaption}}


| header81 = Notes
| header81 = Notes
Line 217: Line 193:
  -->{{#if:{{{type|}}}|{{#ifeq:{{#invoke:String|find|{{{type}}}|<}}{{#invoke:String|find|{{{type}}}|''}}|00||[[Category:Articles using Infobox station with markup inside type]]}}{{#ifeq:{{#invoke:String|find|{{lc:{{{type}}}}}|[file:}}{{#invoke:String|find|{{lc:{{{type}}}}}|[image:}}|00||[[Category:Articles using Infobox station with images inside type]]}}}}}}<!--
  -->{{#if:{{{type|}}}|{{#ifeq:{{#invoke:String|find|{{{type}}}|<}}{{#invoke:String|find|{{{type}}}|''}}|00||[[Category:Articles using Infobox station with markup inside type]]}}{{#ifeq:{{#invoke:String|find|{{lc:{{{type}}}}}|[file:}}{{#invoke:String|find|{{lc:{{{type}}}}}|[image:}}|00||[[Category:Articles using Infobox station with images inside type]]}}}}}}<!--
  -->{{#if:{{{opened|}}}{{{start|}}}{{{opening|}}}{{{starting|}}}||{{main other|[[Category:Pages with no open date in Infobox station]]}}}}<!--
  -->{{#if:{{{opened|}}}{{{start|}}}{{{opening|}}}{{{starting|}}}||{{main other|[[Category:Pages with no open date in Infobox station]]}}}}<!--
  -->{{#invoke:Parameter validation|validateparams|module_options = Module:Parameter validation/default config}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox station with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox station]] with unknown parameter "_VALUE_"|ignoreblank=y| accessible | ADA | address | alt | AlternativeMap | architect | architectural_style | bicycle | borough | tram_operators | tram_routes | bus_operators | bus_routes | bus_stands | caption | classification | closed | code | number | connections | coordinates | country | cta_header | custom_header | depth | disabled | distance | electrified | elevation | embedded | end | ending | events | events1 | events2 | events3 | events4 | events5 | events6 | events7 | events8 | events9 | events10 | events11 | events12 | footnotes | former | grid_name | grid_position | iata | image | image_caption | image_upright | levels | line | lines | local_authority | manager | map_alt | map_caption | map_dot_label | map_image | map_image_upright | map_label_position | map_name | map_overlay | map_size | map_state | map_type | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-coordinates | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-frame-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher | mapframe-height | mapframe-width | mlanguage | mpassengers | name | name_lang | native_name | native_name_lang | nrhp | opened | opening | operator | original | other | other_name | other_services | other_services_collapsible | other_services_header | other_services2 | other_services2_collapsible | other_services2_header | owned | owner | parking | pass_percent | pass_rank | pass_system | pass_year | passengers | platform | platforms | postgroup | pregroup | prenational | pushpin_outside | rebuilt | route_map | routes | services | services_collapsible | start | starting | status | structure | style | style2 | symbol | symbol_location | symbol_location2 | symbol_location3 | symbol_location4 | symbol_location5 | symbol_location6 | symbol2 | symbol3 | symbol4 | symbol5 | symbol6 | tracks | train_operators | transit_authority | type | web | website | years | years1 | years2 | years3 | years4 | years5 | years6 | years7 | years8 | years9 | years10 | years11 | years12 | zone }}<!--
  -->{{#invoke:Parameter validation|validateparams|module_options = Module:Parameter validation/default config}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox station with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox station]] with unknown parameter "_VALUE_"|ignoreblank=y| accessible | ADA | address | alt | AlternativeMap | architect | architectural_style | bicycle | borough | tram_operators | tram_routes | bus_operators | bus_routes | bus_stands | caption | classification | closed | code | number | connections | coordinates | country | cta_header | custom_header | depth | disabled | distance | electrified | elevation | embedded | end | ending | events | events1 | events2 | events3 | events4 | events5 | events6 | events7 | events8 | events9 | events10 | events11 | events12 | footnotes | former | grid_name | grid_position | iata | image | image_caption | image_upright | levels | line | lines | local_authority | manager | map_alt | map_caption | map_dot_label | map_image | map_image_upright | map_label_position | map_name | map_overlay | map_size | map_state | map_type | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-coordinates | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-frame-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher | mapframe-height | mapframe-width | mlanguage | mpassengers | name | name_lang | native_name | native_name_lang | nrhp | opened | opening | operator | original | other | other_name | other_services | other_services_collapsible | other_services_header | other_services2 | other_services2_collapsible | other_services2_header | owned | owner | parking | pass_percent | pass_rank | pass_system | pass_year | passengers | platform | platforms | postgroup | pregroup | prenational | pushpin_outside | rebuilt | route_map | routes | services | services_collapsible | start | starting | status | structure | style | style2 | symbol | symbol_location | symbol_location2 | symbol_location3 | symbol_location4 | symbol_location5 | symbol_location6 | symbol2 | symbol3 | symbol4 | symbol5 | symbol6 | tracks | train_operators | transit_authority | type | web | website | years | years1 | years2 | years3 | years4 | years5 | years6 | years7 | years8 | years9 | years10 | years11 | years12 | zone | embed | colour }}<!--
  -->{{#invoke:check for deprecated parameters|check
  -->{{#invoke:check for deprecated parameters|check
|category=[[Category:Pages using infobox station with deprecated parameters|_VALUE_]]
|category=[[Category:Pages using infobox station with deprecated parameters|_VALUE_]]

Latest revision as of 07:36, 10 June 2024

Infobox station