Jump to content

Template:Infobox bridge: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
problems with Module:WikidataIB's handling of website, revert for now
add mapframe, remove other maps, use {{URL2
Line 11: Line 11:
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB|getValue|P18|name=image|maxvals=1|noicon=true|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|no}}}|{{{image|}}}}}|size={{{image_size|}}}|upright={{{image_upright|1}}}|alt={{{alt|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB|getValue|P18|name=image|maxvals=1|noicon=true|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|no}}}|{{{image|}}}}}|size={{{image_size|}}}|upright={{{image_upright|1}}}|alt={{{alt|}}}}}
| caption = {{#if:{{{image|}}}|{{{caption|{{{image_caption|}}}}}}|{{#invoke:WikidataIB|getValue|P18|qual=P2096|qualsonly=y|lang=en|name=caption|maxvals=1|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|no}}}|{{{caption|{{{image_caption|}}}}}}}}}}
| caption = {{#if:{{{image|}}}|{{{caption|{{{image_caption|}}}}}}|{{#invoke:WikidataIB|getValue|P18|qual=P2096|qualsonly=y|lang=en|name=caption|maxvals=1|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|no}}}|{{{caption|{{{image_caption|}}}}}}}}}}

| image2 = {{#if:{{both|{{{pushpin_map|}}}|{{{coordinates|}}}{{#property:P625}}}}|
{{location map|{{{pushpin_map}}}
|border = infobox
|alt = {{{pushpin_map_alt|}}}
|float = center
|width = {{{pushpin_map_size|{{{pushpin_mapsize|}}}}}}
|coordinates={{{coordinates|}}}
|relief={{if empty|{{{pushpin_relief|}}}|1}}
|caption = {{{pushpin_map_caption|}}}}} }}


| label1 = [[Geographic coordinate system|Coordinates]]
| label1 = [[Geographic coordinate system|Coordinates]]
Line 68: Line 58:


| label15 = Website
| label15 = Website
| data15 = {{{website|}}}
| data15 = {{URL2|{{wdib|P856|name=website|fwd={{{fetchwikidata|}}}|osd={{{onlysourced|no}}}|{{{website|}}}}}}}


| label16 = {{#if:{{{preceded|}}}|Preceded by|Next upstream}}
| label16 = {{#if:{{{preceded|}}}|Preceded by|Next upstream}}
Line 242: Line 232:
| data84 = {{{embedded|{{{extra|}}}}}}
| data84 = {{{embedded|{{{extra|}}}}}}


| header85 = _BLANK_
| header85 = Location
| data86 = {{#if:{{{map_type|}}}|{{Location map|{{{map_type|}}}
| data86 = {{#invoke:Infobox mapframe|auto|onByDefault=yes}}
| data87 = {{#invoke:Infobox mapframe|autocaption}}
| coordinates = {{{coordinates|}}}
| float = center
| border = infobox
| label = {{#if:{{{map_dot_label|}}}|{{{map_dot_label}}}|{{{name|{{{bridge_name|{{{aqueduct_name|{{PAGENAMEBASE}}}}}}}}}}}}}
| mark = {{{map_dot_mark|}}}
| position = {{{map_dot_label_position|}}}
| relief = {{Yesno|{{{map_relief|1}}}|yes=1|no=}}
| width = {{{map_size|}}}
| caption = {{#if:{{{map_caption|}}}|{{{map_caption}}}|Location in {{#invoke:Location map|data|{{{map_type}}}|name}}}}
}}
| {{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|}}}|size={{{map_size|{{{map_width|}}}}}}|upright={{{map_upright|1}}}|alt={{{map_alt|}}}}}{{#if:{{Both|{{{map_image|}}}|{{{map_caption|}}}}}|<div>{{{map_caption}}}</div>}}
}}

| data87 = {{#if:{{{map_type|}}}{{{map_image|}}}||{{yesno|{{{mapframe|yes}}}|no=|yes={{Infobox mapframe
|id={{{qid|}}}
|zoom={{{mapframe_zoom|13}}}
|frame-width={{{mapframe_width|}}}
|frame-height={{{mapframe_height|}}}
|marker={{{mapframe_marker|}}}
|marker-color={{{mapframe_marker_color|{{{mapframe_marker_colour|}}}}}}
|frame-lat={{{mapframe_lat|{{{mapframe_latitude|}}}}}}
|frame-long={{{mapframe_long|{{{mapframe_longitude|}}}}}}
}}}}}}

| data88 = {{#if:{{{map_type|}}}{{{map_image|}}}||{{yesno|{{{mapframe|yes}}}|no=|yes={{{map_caption|{{{mapframe_caption|}}}}}}}}}}


| header91 = References
| header91 = References
| data92 = {{{references|}}}
| data92 = {{{references|}}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox bridge with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox bridge]] with unknown parameter "_VALUE_"|ignoreblank = 1| also_known_as | alt | aqueduct_name | architect | begin | below | bridge_name | builder | built | capacity | caption | carries | child | clearance | clearance_above | clearance_below | closed | collapsed | complete | contracted_designer | coordinates | cost | crosses | dedicated | depth | design | designer | destroyed | diameter | downstream | electrification | embed | embedded | ends | engineering | extra | fabricator | fetchwikidata |first_length | first_diameter | followed | gauge | height | heritage | id | id_type | image | image_caption | image_size | image_upright | inaugurated | lanes | length | life | load | locale | location | mainspan | maint | maintained | map_alt | map_caption | map_dot_label | map_dot_label_position | map_dot_mark | map_image | map_relief | map_size | map_type | map_upright | map_width | mapframe | mapframe_caption | mapframe_height | mapframe_lat | mapframe_latitude | mapframe_long | mapframe_longitude | mapframe_marker | mapframe_marker_color | mapframe_marker_colour | mapframe_width | mapframe_zoom | material | material1 | material2 | name | named_for | native_name | native_name_lang | notrack | num_track | number_spans | official_name | onlysourced | open | opened | opening | os_grid_reference | other_name | owner | passable | piers_in_water | pierswater | preceded | pushpin_map | pushpin_map_alt | pushpin_map_size | pushpin_mapsize | pushpin_relief | pushpin_map_caption | qid | rebuilt | references | refs | replaced_by | replaces | second_length | second_diameter | spans | starts | structure_gauge | third_length | third_diameter | toll | towpath | track_gauge | traffic | traversable | upstream | website | width | winner
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox bridge with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox bridge]] with unknown parameter "_VALUE_"|ignoreblank = 1| also_known_as | alt | aqueduct_name | architect | begin | below | bridge_name | builder | built | capacity | caption | carries | child | clearance | clearance_above | clearance_below | closed | collapsed | complete | contracted_designer | coordinates | cost | crosses | dedicated | depth | design | designer | destroyed | diameter | downstream | electrification | embed | embedded | ends | engineering | extra | fabricator | fetchwikidata |first_length | first_diameter | followed | gauge | height | heritage | id | id_type | image | image_caption | image_size | image_upright | inaugurated | lanes | length | life | load | locale | location | mainspan | maint | maintained | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | 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 | material | material1 | material2 | name | named_for | native_name | native_name_lang | notrack | num_track | number_spans | official_name | onlysourced | open | opened | opening | os_grid_reference | other_name | owner | passable | piers_in_water | pierswater | preceded | qid | rebuilt | references | refs | replaced_by | replaces | second_length | second_diameter | spans | starts | structure_gauge | third_length | third_diameter | toll | towpath | track_gauge | traffic | traversable | upstream | website | width | winner
}}{{Main other|
}}{{Main other|
{{#if:{{{id|}}}|[[Category:Pages using infobox bridge with id]]
{{#if:{{{id|}}}|[[Category:Pages using infobox bridge with id]]
Line 280: Line 246:
|<di=[[Category:Pages using infobox bridge with extra embedded div]]
|<di=[[Category:Pages using infobox bridge with extra embedded div]]
|#default=[[Category:Pages using infobox bridge with extra]]
|#default=[[Category:Pages using infobox bridge with extra]]
}}}}
}}
{{#if:{{{coordinates|}}}||{{#if:{{#property:P625}}|[[Category:Pages using infobox bridge with empty coordinates parameter]]|<!--no coordinates on Wikidata-->}}}}}}{{#if:{{{map_type|}}}{{{map_image|}}}||{{#if:{{#property:P625}}{{#property:P402}}|{{#if:{{{map_caption|}}}|[[Category:Pages using infobox bridge with map caption without map type or map image]]}}}}}}<noinclude>{{documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS -->
}}{{#if:{{{coordinates|}}}||{{#if:{{#property:P625}}|[[Category:Pages using infobox bridge with empty coordinates parameter]]|<!--no coordinates on Wikidata-->}}}}}}<noinclude>
{{documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS -->
</noinclude>
</noinclude>

Revision as of 20:34, 5 December 2020

Infobox bridge