Jump to content

Template:Infobox station/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
test
Tag: Reverted
use sandbox for Module:Adjacent stations
 
(39 intermediate revisions by 2 users not shown)
Line 3: Line 3:
| bodyclass = vcard ib-station
| bodyclass = vcard ib-station
| autoheaders = yes
| autoheaders = yes
| headerstyle = {{#invoke:Adjacent stations|style|subheader|{{{style|}}}|{{{style2|}}}}}
| headerstyle = {{#invoke:Adjacent stations/sandbox|style|subheader|{{{style|}}}|{{{style2|}}}}}
| headerclass = notheme


| above = {{#if:{{{cta_header|}}}{{{custom_header|}}}|{{{custom_header|{{{cta_header}}}}}}|<div style="display: table; width: 100%; border-collapse: collapse"><div class="ib-station-name">{{Br separated entries
| above = {{#if:{{{cta_header|}}}{{{custom_header|}}}|{{{custom_header|{{{cta_header}}}}}}|<div style="display: table; width: 100%; border-collapse: collapse"><div class="ib-station-name">{{Br separated entries
Line 15: Line 16:
-->{{#if:{{{symbol_location5|}}}{{{symbol5|}}}|+{{{symbol_location5|}}}\{{{symbol5|}}}\}}<!--
-->{{#if:{{{symbol_location5|}}}{{{symbol5|}}}|+{{{symbol_location5|}}}\{{{symbol5|}}}\}}<!--
-->{{#if:{{{symbol_location6|}}}{{{symbol6|}}}|+{{{symbol_location6|}}}\{{{symbol6|}}}\}}}}}}</div>}}
-->{{#if:{{{symbol_location6|}}}{{{symbol6|}}}|+{{{symbol_location6|}}}\{{{symbol6|}}}\}}}}}}</div>}}
| abovestyle = {{#invoke:Adjacent stations|style|header|{{{style|}}}|{{{style2|}}}}}
| abovestyle = {{#invoke:Adjacent stations/sandbox|style|header|{{{style|}}}|{{{style2|}}}}}
| aboveclass = notheme


| subheader = {{{type|}}}
| subheader = {{{type|}}}
Line 172: Line 174:


| rowcellstyle75 = padding: 0
| rowcellstyle75 = padding: 0
| data76 = {{#if:{{{route_map|}}}|
| data76 = {{#if:{{{route_map|}}}{{{map_name|}}}|
{{ infobox
{{ infobox
| bodystyle = {{Subinfobox bodystyle}}
| bodystyle = {{Subinfobox bodystyle}}
| bodyclass = collapsible {{{map_state|}}}
| bodyclass = collapsible {{{map_state|}}}
| headerstyle = {{#invoke:Adjacent stations|style|subheader|{{{style|}}}|{{{style2|}}}}}
| headerstyle = {{#invoke:Adjacent stations/sandbox|style|subheader|{{{style|}}}|{{{style2|}}}}}
| headerclass = notheme
| header1 = {{#if:{{{map_name|}}}|<div style="margin:0 3.5em">{{{map_name}}}</div>|<div style="margin:0 3.5em">{{#ifeq:{{#invoke:String|find|{{{route_map}}}|[[Template:Railway track legend|Legend]]}}|0|Route map|Track layout}}</div>}}
| header1 = {{#if:{{{map_name|}}}|<div style="margin:0 3.5em">{{{map_name}}}</div>|<div style="margin:0 3.5em">{{#ifeq:{{#invoke:String|find|{{{route_map}}}|[[Template:Railway track legend|Legend]]}}|0|Route map|Track layout}}</div>}}
| data2 = {{{route_map}}}
| data2 = {{{route_map}}}
}}}}
}}}}


| data77 = {{#if:{{{map_type|}}}{{{mapframe|}}}{{{map_image|}}}|
| data78 =
{{#if:{{{map_frame|}}}|
{{ infobox
{{ infobox
| bodystyle = {{Subinfobox bodystyle}}
| bodystyle = {{Subinfobox bodystyle}}
| bodyclass = collapsible {{{map_frame|}}}
| bodyclass = collapsible {{{location_state|}}}
| headerstyle = {{#invoke:Adjacent stations|style|subheader|{{{style|}}}|{{{style2|}}}}}
| headerstyle = {{#invoke:Adjacent stations/sandbox|style|subheader|{{{style|}}}|{{{style2|}}}}}
| headerclass = notheme
| header1 = {{#if:{{{map_frame|}}}|<div style="margin:0 3.5em">{{{map_frame}}}</div>|<div style="margin:0 3.5em">{{#ifeq:{{#invoke:String|find|{{{map_frame}}}|[[Template:Railway track legend|Legend]]}}|0|Location|Track layout}}</div>}}
| header1 = <div style="margin:0 3.5em">Location</div>
| data2 =
| data2 =
{{#if:{{{coordinates|}}}{{#switch:{{#property:P625}}|unknown value|=|#default=1}}
{{#if:{{{map_type|}}}
|{{#if:{{{coordinates|}}}{{#switch:{{#property:P625}}|unknown value|=|#default=1}}
|{{Location map|{{{map_type}}}
|{{Location map|{{{map_type}}}
| AlternativeMap = {{{AlternativeMap|}}}
| AlternativeMap = {{{AlternativeMap|}}}
Line 205: Line 209:
}}
}}
| {{#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_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}}
| data3 = {{#invoke:Infobox mapframe|auto|mapframe-marker={{#switch:{{#invoke:wd|property|P31}}
|{{label|Q494829}}=bus
|{{label|Q494829}}=bus
|{{label|Q55488}}=rail
|{{label|Q55488}}=rail
Line 212: Line 216:
|{{label|Q2175765}}=rail-light
|{{label|Q2175765}}=rail-light
}}}}
}}}}
| data80 = {{#invoke:Infobox mapframe|autocaption}}
| data4 = {{#invoke:Infobox mapframe|autocaption}}
}}
}}


| data79 = {{#if:{{{footnotes|}}}|
| header81 = Notes
{{ infobox
| data82 = {{#if:{{{footnotes|}}}|<div style="text-align: left;">{{{footnotes}}}</div>}}
| bodystyle = {{Subinfobox bodystyle}}
| bodyclass = collapsible {{{footnotes_state|}}}
| headerstyle = {{#invoke:Adjacent stations/sandbox|style|subheader|{{{style|}}}|{{{style2|}}}}}
| headerclass = notheme
| header1 = {{#if:{{{footnotes|}}}|<div style="margin:0 3.5em">Notes</div>}}
| data2 = <div style="text-align: left;">{{{footnotes}}}</div>}}}}
}}{{Main other|
}}{{Main other|
{{#if:{{{local_authority|}}}|[[Category:Articles using Infobox station with local_authority]]}}<!--
{{#if:{{{local_authority|}}}|[[Category:Articles using Infobox station with local_authority]]}}<!--
Line 222: Line 234:
-->{{#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/sandbox|validateparams|module_options = Module:Parameter validation/default config/sandbox}}{{#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 | footnotes_state | former | grid_name | grid_position | iata | image | image_caption | image_upright | levels | line | lines | local_authority | location_state | 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: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 10:25, 29 September 2024

Infobox station/sandbox