Template:Infobox bridge/doc: Difference between revisions
m →Parameters: + mapframe |
document Special:Diff/979706844 |
||
(28 intermediate revisions by 13 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!-- |
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> |
||
{{Uses Wikidata|P177|P127|P1435|P2505|P276|P138|P126|P1435|P3676|P856|P2673|P2674|P186|P2043|P2049|P2048|P2787|P1314|P2793|P2386|P1064|P84|P287|P193|P2130|P1619|P576|P3999|P1365|P1366|P2555|P613|P1448}} |
|||
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Location map|Module:Check for unknown parameters|Module:Infobox mapframe}} |
|||
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Location map|Module:Check for unknown parameters|Module:Infobox mapframe|Module:WikidataIB}} |
|||
{{high-use}} |
|||
{{auto short description}} |
|||
== Usage == |
== Usage == |
||
{{Parameter names example | built| destroyed| alt | architect | begin | builder | caption | carries | child | clearance_above | clearance_below | closed | collapsed | complete | contracted_designer | coordinates | cost | crosses | depth | design | designer | electrification | embed | engineering | extra | fabricator | followed | height | heritage | id | id_type | image | image_size | image_upright | inaugurated | lanes | length | life | load | locale | mainspan | maint |
{{Parameter names example | built| destroyed| alt | architect | begin | builder |built | caption | carries | child | clearance_above | clearance_below | closed | collapsed | complete | contracted_designer | coordinates | cost | crosses |demolished | depth | design | designer |destroyed |diameter | electrification | embed | engineering | extra | fabricator | fetchwikidata | followed | height | heritage | id | id_type | image | image_size | image_upright | inaugurated | lanes | length | life | load | locale | mainspan | maint | material | material1 | material2 | name | named_for | native_name | native_name_lang | num_track | number_spans | official_name |onlysourced | opened | os_grid_reference | other_name | owner | piers_in_water | preceded | rebuilt | replaces | replaced_by |qid | structure_gauge | toll | towpath | track_gauge | traffic | traversable | website | width | winner | official_name | starts | ends | coordinates={{coord|0|0|type:landmark|display=inline}} | diameter | first_length | first_diameter | second_length | second_diameter | third_length | third_diameter | capacity | closed | references | extra}} |
||
{{Parameter names example | name=Using location map | coordinates={{coord|0|0|type:landmark|display=inline}} | extra |
{{Parameter names example | name=Using location map | coordinates={{coord|0|0|type:landmark|display=inline}} | extra}} |
||
Copy and paste the template below: |
Copy and paste the template below: |
||
< |
<syntaxhighlight lang="wikitext" style="overflow:auto"> |
||
{{Infobox bridge |
{{Infobox bridge |
||
| name = |
| name = |
||
Line 14: | Line 16: | ||
| native_name_lang = |
| native_name_lang = |
||
| image = |
| image = |
||
| image_size = |
|||
| image_upright = |
| image_upright = |
||
| alt = |
| alt = |
||
Line 20: | Line 23: | ||
| os_grid_reference = |
| os_grid_reference = |
||
| qid = |
| qid = |
||
| |
| fetchwikidata = |
||
| onlysourced = |
|||
| carries = |
| carries = |
||
| crosses = |
| crosses = |
||
| locale = |
| locale = |
||
| starts = |
|||
| ends = |
|||
| official_name = |
| official_name = |
||
| other_name = |
| other_name = |
||
Line 33: | Line 39: | ||
| id_type = |
| id_type = |
||
| website = |
| website = |
||
| preceded = |
| preceded = <!-- or |upstream= --> |
||
| followed = |
| followed = <!-- or |downstream= --> |
||
| design = |
| design = |
||
| material = |
| material = |
||
Line 53: | Line 59: | ||
| lanes = |
| lanes = |
||
| life = |
| life = |
||
| diameter = |
|||
| first_length = |
|||
| first_diameter = |
|||
| second_length = |
|||
| second_diameter = |
|||
| third_length = |
|||
| third_diameter = |
|||
| capacity = |
|||
| num_track = |
| num_track = |
||
| track_gauge = |
| track_gauge = |
||
Line 64: | Line 78: | ||
| builder = |
| builder = |
||
| fabricator = |
| fabricator = |
||
| built = |
|||
| begin = |
| begin = |
||
| complete = |
| complete = |
||
| cost = |
| cost = |
||
| |
| opened = <!-- or |opening= |open= --> |
||
| inaugurated = |
| inaugurated = <!-- or |dedicated= --> |
||
| rebuilt = |
| rebuilt = |
||
| collapsed = |
| collapsed = |
||
| destroyed = |
|||
| closed = |
| closed = |
||
| demolished = |
|||
| replaces = |
| replaces = |
||
| replaced_by = |
| replaced_by = |
||
| traffic = |
| traffic = |
||
| toll = |
| toll = |
||
| map_type = |
|||
| map_relief = |
|||
| map_dot_label = |
|||
| map_image = |
|||
| map_size = |
|||
| map_alt = |
|||
| mapframe = |
|||
| mapframe_zoom = |
|||
| mapframe_width = |
|||
| mapframe_height = |
|||
| mapframe_marker = |
|||
| mapframe_marker_color = |
|||
| mapframe_lat = |
|||
| mapframe_long = |
|||
| map_caption = |
|||
| extra = <!-- extra = module = embed = --> |
| extra = <!-- extra = module = embed = --> |
||
| references = |
|||
}} |
}} |
||
</syntaxhighlight> |
|||
</pre> |
|||
== Parameters == |
== Parameters == |
||
Line 108: | Line 111: | ||
; crosses : Body of water or geographic feature that is being crossed |
; crosses : Body of water or geographic feature that is being crossed |
||
; locale : General area where located (e.g. San Francisco, Indiana-Kentucky State Line) |
; locale : General area where located (e.g. San Francisco, Indiana-Kentucky State Line) |
||
; starts : Where the aqueduct starts |
|||
; ends : Where the aqueduct ends |
|||
; official_name : Official name |
; official_name : Official name |
||
; other_name : Also known as name |
; other_name : Also known as name |
||
Line 127: | Line 132: | ||
; height : Height of bridge, w/ conversions |
; height : Height of bridge, w/ conversions |
||
; depth : Depth of aqueduct channel, w/ conversions |
; depth : Depth of aqueduct channel, w/ conversions |
||
; diameter : (if it's pipe) |
|||
; first_length : length of first section, if segmented |
|||
; first_diameter : diameter of first section, if segmented |
|||
; second_length : length of second section, if segmented |
|||
; second_diameter : diameter of second section, if segmented |
|||
; third_length : length of third section, if segmented |
|||
; third_diameter : diameter of third section, if segmented |
|||
; capacity : rate-of-flow |
|||
; traversable : Can standard craft (for that navigation) pass on the aqueduct? Yes/No |
; traversable : Can standard craft (for that navigation) pass on the aqueduct? Yes/No |
||
; towpath : Side of towpath (None, N, S, E, W, NE, NW, SE, SW, Both) |
; towpath : Side of towpath (None, N, S, E, W, NE, NW, SE, SW, Both) |
||
Line 155: | Line 168: | ||
; traffic : Average Daily Traffic value |
; traffic : Average Daily Traffic value |
||
; toll : Price of the toll (if a toll bridge) |
; toll : Price of the toll (if a toll bridge) |
||
; map_type : The name of a locator map; see [[Template:Location_map#Available maps]] for a complete listing of options. This parameter is mutually exclusive with {{para|map_image}}. |
|||
; map_relief : Whether to display a relief map with {{para|map_type}}; defaults to <code>yes</code>. |
|||
; map_image : Filename of map image of bridge |
|||
; map_dot_mark : Alternative marker (see [[template:location map]]) |
|||
; map_alt : Alt text for map image (see [[WP:ALT]]) |
|||
; mapframe : If "no", disables dynamic Kartographer-based map |
|||
; mapframe_zoom : Map zoom level (from 0 to 19); default is 13 |
|||
; mapframe_width : Width of the map |
|||
; mapframe_height : Height of the map |
|||
; mapframe_marker : Marker type (see [[:mw:Help:Extension:Kartographer/Icons]]) |
|||
; mapframe_marker_color : Marker color (parameter can also be spelled {{kbd|mapframe_marker_colour}}) |
|||
; mapframe_lat : Latitude of the centre of the mapframe, in positive (north) or negative (south) decimal degrees |
|||
; mapframe_long : Longitude of the centre of the mapframe, in positive (east) or negative (west) decimal degrees |
|||
; map_caption : Caption for the locator or image map |
|||
; extra : Spare field for modules, e.g. {{tl|Infobox designation list}} |
; extra : Spare field for modules, e.g. {{tl|Infobox designation list}} |
||
=== |
===Coordinates=== |
||
Use the <code>coordinates=</code> parameter with {{tl|Coord}} to specify latitude and longitude. See the documentation for the Coord template for details on usage. |
Use the <code>coordinates=</code> parameter with {{tl|Coord}} to specify latitude and longitude. See the documentation for the Coord template for details on usage. |
||
If there is no location map or map image specified, then a dynamic map will be displayed in its place if the article's Wikidata item or the Wikidata item indicated in {{para|qid}} has a {{Q|P625}}. |
If there is no location map or map image specified, then a dynamic map will be displayed in its place if the article's Wikidata item or the Wikidata item indicated in {{para|qid}} has a {{Q|P625}}. |
||
=== Map=== |
|||
<pre style="overflow:auto"> |
|||
{{Infobox |
{{Infobox mapframe/doc/parameters}} |
||
... |
|||
| coordinates = <!-- {{Coord}} --> |
|||
| map_type = <!-- Location name used for Template:Location map --> |
|||
| map_relief = yes<!-- Use the relief map, if it exists --> |
|||
| map_alt = <!-- Alternative text for map image, see WP:ALT for details --> |
|||
| map_caption = <!-- Text to be displayed below map; for no caption enter "map_caption="; if the parameter is omitted then the caption will be "Marker text (location map name)" --> |
|||
... |
|||
}} |
|||
</pre> |
|||
==Example== |
==Example== |
||
Line 200: | Line 190: | ||
| height = {{Convert|134|m|ft|0|abbr=on}} |
| height = {{Convert|134|m|ft|0|abbr=on}} |
||
| mainspan = {{Convert|503|m|ft|0|abbr=on}} |
| mainspan = {{Convert|503|m|ft|0|abbr=on}} |
||
| clearance_above = |
| clearance_above = |
||
| below = {{Convert|49|m|ft|0|abbr=on}} at mid-span |
| below = {{Convert|49|m|ft|0|abbr=on}} at mid-span |
||
| begin = 28 July 1923 |
| begin = 28 July 1923 |
||
Line 206: | Line 196: | ||
| open = {{Start-date|19 March 1932}} |
| open = {{Start-date|19 March 1932}} |
||
| coordinates = {{coord|33|51|8|S|151|12|38|E|region:AU-NSW_type:landmark|display = inline}} |
| coordinates = {{coord|33|51|8|S|151|12|38|E|region:AU-NSW_type:landmark|display = inline}} |
||
| mapframe_zoom = 13 |
|||
}} |
}} |
||
< |
<syntaxhighlight lang="wikitext" style="overflow: auto;"> |
||
{{Infobox bridge |
{{Infobox bridge |
||
| name = Sydney Harbour Bridge |
| name = Sydney Harbour Bridge |
||
Line 226: | Line 215: | ||
| open = {{Start-date|19 March 1932}} |
| open = {{Start-date|19 March 1932}} |
||
| coordinates = {{coord|33|51|8|S|151|12|38|E|region:AU-NSW_type:landmark|display = inline}} |
| coordinates = {{coord|33|51|8|S|151|12|38|E|region:AU-NSW_type:landmark|display = inline}} |
||
| mapframe_zoom = 13 |
|||
}} |
}} |
||
</syntaxhighlight> |
|||
</pre> |
|||
{{-}} |
{{-}} |
||
Line 235: | Line 223: | ||
== Tracking categories == |
== Tracking categories == |
||
* {{clc|Pages using infobox bridge with unknown parameters}} |
|||
* {{clc|Pages using infobox bridge with clearance}} |
* {{clc|Pages using infobox bridge with clearance}} |
||
* {{clc|Pages using infobox bridge with empty coordinates parameter}} |
|||
* {{clc|Pages using infobox bridge with extra}} |
* {{clc|Pages using infobox bridge with extra}} |
||
* {{clc|Pages using infobox bridge with extra embedded div}} |
|||
* {{clc|Pages using infobox bridge with extra embedded table}} |
|||
* {{clc|Pages using infobox bridge with id}} |
|||
* {{clc|Pages using infobox bridge with unknown parameters}} |
|||
{{cot|TemplateData}} |
{{cot|TemplateData}} |
||
Line 251: | Line 243: | ||
"native_name": {}, |
"native_name": {}, |
||
"native_name_lang": {}, |
"native_name_lang": {}, |
||
"image": { |
"image": { |
||
"type": "wiki-file-name" |
|||
}, |
|||
"image_size": {}, |
"image_size": {}, |
||
"image_upright": {}, |
"image_upright": {}, |
||
Line 330: | Line 324: | ||
"toll": {}, |
"toll": {}, |
||
"extra": {}, |
"extra": {}, |
||
"map_type": {}, |
|||
"map_dot_label": {}, |
|||
"map_dot_mark": {}, |
|||
"map_relief": {}, |
|||
"map_size": {}, |
|||
"map_image": {}, |
|||
"map_width": {}, |
|||
"map_upright": {}, |
|||
"map_alt": {}, |
|||
"references": {}, |
"references": {}, |
||
"qid": {}, |
"qid": {}, |
||
Line 344: | Line 329: | ||
"built": {}, |
"built": {}, |
||
"destroyed": {}, |
"destroyed": {}, |
||
"mapframe": { |
"mapframe": { |
||
"label": "Show mapframe map", |
|||
"mapframe_zoom": {}, |
|||
"description": "Specify yes or no to show or hide the map, overriding the default", |
|||
"mapframe_width": {}, |
|||
" |
"example": "yes", |
||
" |
"type": "string", |
||
"default": "no", |
|||
"mapframe_marker_color": { |
|||
"suggested": true |
|||
}, |
|||
"mapframe-caption": { |
|||
"label": "Mapframe caption", |
|||
"description": "Caption for the map. If mapframe-geomask is set, then the default is \"Location in <<geomask's label>>\"", |
|||
"type": "string" |
|||
}, |
|||
"mapframe-custom": { |
|||
"label": "Custom mapframe", |
|||
"description": "Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, other mapframe parameters will be ignored.", |
|||
"type": "wiki-template-name" |
|||
}, |
|||
"mapframe-id": { |
|||
"aliases": [ |
"aliases": [ |
||
" |
"id", |
||
"qid" |
|||
], |
|||
"label": "Mapframe Wikidata item", |
|||
"description": "Id (Q-number) of Wikidata item to use.", |
|||
"type": "string", |
|||
"default": "(item for current page)" |
|||
}, |
}, |
||
" |
"mapframe-wikidata": { |
||
"label": "Mapframe shapes from Wikidata", |
|||
"mapframe_latitude": {}, |
|||
"description": "et to yes to show shape/line features from the wikidata item, if any, when coordinates are specified by parameter", |
|||
"mapframe_long": {}, |
|||
" |
"example": "yes", |
||
" |
"type": "string" |
||
}, |
|||
"mapframe-point": { |
|||
"label": "Mapframe point feature", |
|||
"description": "Override display of mapframe point feature. Turn off display of point feature by setting to \"none\". Force point marker to be displayed by setting to \"on\"", |
|||
"type": "string" |
|||
}, |
|||
"mapframe-shape": { |
|||
"label": "Mapframe shape feature", |
|||
"description": "Override display of mapframe shape feature. Turn off by setting to \"none\". Use an inverse shape (geomask) instead of a regular shape by setting to \"inverse\"", |
|||
"type": "string" |
|||
}, |
|||
"mapframe-frame-width": { |
|||
"aliases": [ |
"aliases": [ |
||
" |
"mapframe-width" |
||
] |
], |
||
"label": "Mapframe width", |
|||
} |
|||
"description": "Frame width in pixels", |
|||
"type": "number", |
|||
"default": "270" |
|||
}, |
|||
"mapframe-frame-height": { |
|||
"aliases": [ |
|||
"mapframe-height" |
|||
], |
|||
"label": "Mapframe height", |
|||
"description": "Frame height in pixels", |
|||
"type": "number", |
|||
"default": "200" |
|||
}, |
|||
"mapframe-shape-fill": { |
|||
"label": "Mapframe shape fill", |
|||
"description": "Color used to fill shape features", |
|||
"type": "string", |
|||
"default": "#606060" |
|||
}, |
|||
"mapframe-shape-fill-opacity": { |
|||
"label": "Mapframe shape fill opacity", |
|||
"description": "Opacity level of shape fill, a number between 0 and 1", |
|||
"type": "number", |
|||
"default": "0.5" |
|||
}, |
|||
"mapframe-stroke-color": { |
|||
"aliases": [ |
|||
"mapframe-stroke-colour" |
|||
], |
|||
"label": "Mapframe stroke color", |
|||
"description": "Color of line features, and outlines of shape features", |
|||
"type": "string", |
|||
"default": "#ff0000" |
|||
}, |
|||
"mapframe-stroke-width": { |
|||
"label": "Mapframe stroke width", |
|||
"description": "Width of line features, and outlines of shape features", |
|||
"type": "number", |
|||
"default": "5" |
|||
}, |
|||
"mapframe-marker": { |
|||
"label": "Mapframe marker", |
|||
"description": "Marker symbol to use for coordinates; see [[mw:Help:Extension:Kartographer/Icons]] for options", |
|||
"example": "museum", |
|||
"type": "string" |
|||
}, |
|||
"mapframe-marker-color": { |
|||
"aliases": [ |
|||
"mapframe-marker-colour" |
|||
], |
|||
"label": "Mapframe marker color", |
|||
"description": "Background color for the marker", |
|||
"type": "string", |
|||
"default": "#5E74F3" |
|||
}, |
|||
"mapframe-geomask": { |
|||
"label": "Mapframe geomask", |
|||
"description": "Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for country, or P131 for located in the administrative territorial entity)", |
|||
"example": "Q100", |
|||
"type": "wiki-page-name" |
|||
}, |
|||
"mapframe-geomask-stroke-color": { |
|||
"aliases": [ |
|||
"mapframe-geomask-stroke-colour" |
|||
], |
|||
"label": "Mapframe geomask stroke color", |
|||
"description": "Color of outline of geomask shape", |
|||
"type": "string", |
|||
"default": "#555555" |
|||
}, |
|||
"mapframe-geomask-stroke-width": { |
|||
"label": "Mapframe geomask stroke width", |
|||
"description": "Width of outline of geomask shape", |
|||
"type": "number", |
|||
"default": "2" |
|||
}, |
|||
"mapframe-geomask-fill": { |
|||
"label": "Mapframe geomask fill", |
|||
"description": "Color used to fill outside geomask features", |
|||
"type": "string", |
|||
"default": "#606060" |
|||
}, |
|||
"mapframe-geomask-fill-opacity": { |
|||
"label": "Mapframe geomask fill opacity", |
|||
"description": "Opacity level of fill outside geomask features, a number between 0 and 1", |
|||
"type": "number", |
|||
"default": "0.5" |
|||
}, |
|||
"mapframe-zoom": { |
|||
"label": "Mapframe zoom", |
|||
"description": "Set the zoom level, from \"1\" to \"18\", used if the zoom level cannot be determined automatically from object length or area", |
|||
"example": "12", |
|||
"type": "number", |
|||
"default": "10" |
|||
}, |
|||
"mapframe-length_km": { |
|||
"label": "Mapframe length (km)", |
|||
"description": "Object length in kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area", |
|||
"type": "number" |
|||
}, |
|||
"mapframe-length_mi": { |
|||
"label": "Mapframe length (mi)", |
|||
"description": "Object length in miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area", |
|||
"type": "number" |
|||
}, |
|||
"mapframe-area_km2": { |
|||
"label": "Mapframe area (km^2)", |
|||
"description": "Object arean square kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area", |
|||
"type": "number" |
|||
}, |
|||
"mapframe-area_mi2": { |
|||
"label": "Mapframe area (mi^2)", |
|||
"description": "Object area in square miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area", |
|||
"type": "number" |
|||
}, |
|||
"mapframe-frame-coordinates": { |
|||
"aliases": [ |
|||
"mapframe-frame-coord" |
|||
], |
|||
"label": "Mapframe frame coordinates", |
|||
"description": "Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}", |
|||
"example": "{{Coord|12.35|N|56.71|E}}", |
|||
"type": "wiki-template-name" |
|||
}, |
|||
"mapframe-switcher": { |
|||
"label": "Mapframe switcher", |
|||
"description": "Set to \"auto\" or \"geomasks\" or \"zooms\" to enable Template:Switcher-style switching between multiple mapframes. IF SET TO auto – switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country. IF SET TO geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter. IF SET TO zooms – switch between \"zoomed in\"/\"zoomed midway\"/\"zoomed out\", where \"zoomed in\" is the default zoom (with a minimum of 3), \"zoomed out\" is 1, and \"zoomed midway\" is the average.", |
|||
"type": "string" |
|||
}, |
|||
"mapframe-coordinates": { |
|||
"aliases": [ |
|||
"mapframe-coord", |
|||
"coordinates. coord" |
|||
], |
|||
"label": "Mapframe coordinates ", |
|||
"description": "Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template.", |
|||
"example": "{{Coord|12.34|N|56.78|E}}", |
|||
"type": "wiki-template-name", |
|||
"default": "(coordinates from Wikidata)" |
|||
}, |
|||
"fetchwikidata": {}, |
|||
"onlysourced": {}, |
|||
"coord_format": {}, |
|||
"starts": {}, |
|||
"ends": {}, |
|||
"diameter": {}, |
|||
"first_length": {}, |
|||
"first_diameter": {}, |
|||
"second_length": {}, |
|||
"second_diameter": {}, |
|||
"third_length": {}, |
|||
"third_diameter": {}, |
|||
"capacity": {}, |
|||
"demolished": {}, |
|||
"embedded": {} |
|||
}, |
}, |
||
"paramOrder": [ |
"paramOrder": [ |
||
Line 455: | Line 625: | ||
"refs", |
"refs", |
||
"extra", |
"extra", |
||
" |
"references", |
||
"map_dot_label", |
|||
"map_dot_mark", |
|||
"map_relief", |
|||
"map_size", |
|||
"map_image", |
|||
"map_width", |
|||
"map_upright", |
|||
"map_alt", |
|||
"mapframe", |
"mapframe", |
||
" |
"mapframe-caption", |
||
" |
"mapframe-custom", |
||
" |
"mapframe-id", |
||
"mapframe-coordinates", |
|||
"map_caption", |
|||
" |
"mapframe-wikidata", |
||
"mapframe-point", |
|||
"mapframe_marker_color", |
|||
" |
"mapframe-shape", |
||
"mapframe-frame-width", |
|||
"mapframe_latitude", |
|||
"mapframe-frame-height", |
|||
"mapframe_long", |
|||
" |
"mapframe-shape-fill", |
||
"mapframe-shape-fill-opacity", |
|||
"references" |
|||
"mapframe-stroke-color", |
|||
] |
|||
"mapframe-stroke-width", |
|||
"mapframe-marker", |
|||
"mapframe-marker-color", |
|||
"mapframe-geomask", |
|||
"mapframe-geomask-stroke-color", |
|||
"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-switcher", |
|||
"fetchwikidata", |
|||
"onlysourced", |
|||
"coord_format", |
|||
"starts", |
|||
"ends", |
|||
"diameter", |
|||
"first_length", |
|||
"first_diameter", |
|||
"second_length", |
|||
"second_diameter", |
|||
"third_length", |
|||
"third_diameter", |
|||
"capacity", |
|||
"demolished", |
|||
"embedded" |
|||
], |
|||
"format": "block" |
|||
} |
} |
||
</templatedata> |
</templatedata> |
||
Line 483: | Line 677: | ||
{{Buildings and structures infobox templates}} |
{{Buildings and structures infobox templates}} |
||
<includeonly>{{ |
<includeonly>{{sandbox other|| |
||
<!--Categories below this line |
<!-- Categories below this line; interwikis at Wikidata --> |
||
[[Category:Bridge templates]] |
[[Category:Bridge templates]] |
||
[[Category:Buildings and structures infobox templates|Bridge]] |
[[Category:Buildings and structures infobox templates|Bridge]] |
||
[[Category:Transport infobox templates|Bridge]] |
|||
[[Category:Templates generating hCards]] |
|||
[[Category:Embeddable templates]] |
[[Category:Embeddable templates]] |
||
[[Category:Templates generating hCards]] |
|||
[[Category:Templates that add a tracking category]] |
[[Category:Templates that add a tracking category]] |
||
[[Category:Templates with coordinates fields]] |
|||
[[Category:Transport infobox templates|Bridge]] |
|||
[[Category:Water transport infobox templates|Bridge]] |
|||
}}</includeonly> |
}}</includeonly> |
Latest revision as of 12:05, 30 March 2024
This is a documentation subpage for Template:Infobox bridge. It may contain usage information, categories and other content that is not part of the original template page. |
- crosses (P177) (see uses)
- owned by (P127) (see uses)
- heritage designation (P1435) (see uses)
- carries (P2505) (see uses)
- location (P276) (see uses)
- named after (P138) (see uses)
- maintained by (P126) (see uses)
- heritage designation (P1435) (see uses)
- National Bridge Inventory Number (P3676) (see uses)
- official website (P856) (see uses)
- next crossing upstream (P2673) (see uses)
- next crossing downstream (P2674) (see uses)
- made from material (P186) (see uses)
- length (P2043) (see uses)
- width (P2049) (see uses)
- height (P2048) (see uses)
- longest span (P2787) (see uses)
- number of spans (P1314) (see uses)
- clearance (P2793) (see uses)
- diameter (P2386) (see uses)
- track gauge (P1064) (see uses)
- architect (P84) (see uses)
- designed by (P287) (see uses)
- main building contractor (P193) (see uses)
- capital cost (P2130) (see uses)
- date of official opening (P1619) (see uses)
- dissolved, abolished or demolished date (P576) (see uses)
- date of official closure (P3999) (see uses)
- replaces (P1365) (see uses)
- replaced by (P1366) (see uses)
- fee (P2555) (see uses)
- OS grid reference (P613) (see uses)
- official name (P1448) (see uses)
This template uses Lua: |
This template is used on approximately 6,300 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template adds an automatically generated short description. If the automatic short description is not optimal, replace it by adding {{Short description}} at the top of the article. |
Usage
[edit]{{{name}}} {{{native_name}}} | |
---|---|
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright={{{image_upright}}}]] | |
Coordinates | 0°N 0°E / 0°N 0°E |
OS grid reference | {{{os_grid_reference}}} |
Carried | {{{carries}}} |
Crossed | {{{crosses}}} |
Locale | {{{locale}}} |
Began | {{{starts}}} |
Ended | {{{ends}}} |
Official name | {{{official_name}}} |
Other name(s) | {{{other_name}}} |
Named for | {{{named_for}}} |
Owner | {{{owner}}} |
Maintained by | {{{maint}}} |
Heritage status | {{{heritage}}} |
{{{id_type}}} | {{{id}}} |
Website | & |
Preceded by | {{{preceded}}} |
Followed by | {{{followed}}} |
Characteristics | |
Design | {{{design}}} |
Material | {{{Material}}} |
Trough construction | {{{material1}}} |
Pier construction | {{{material2}}} |
Total length | {{{length}}} |
Width | {{{width}}} |
Height | {{{height}}} |
Water depth | {{{depth}}} |
Traversable? | {{{traversable}}} |
Towpaths | {{{towpath}}} |
Longest span | {{{mainspan}}} |
No. of spans | {{{number_spans}}} |
Piers in water | {{{piers_in_water}}} |
Load limit | {{{load}}} |
Clearance above | {{{clearance_above}}} |
Clearance below | {{{clearance_below}}} |
No. of lanes | {{{lanes}}} |
Design life | {{{life}}} |
Diameter | {{{diameter}}} |
First section length | {{{first_length}}} |
First section diameter | {{{first_diameter}}} |
Second section length | {{{second_length}}} |
Second section diameter | {{{second_diameter}}} |
Third section length | {{{third_length}}} |
Third section diameter | {{{third_diameter}}} |
Capacity | {{{capacity}}} |
Rail characteristics | |
No. of tracks | {{{num_track}}} |
Track gauge | {{{track_gauge}}} |
Structure gauge | {{{structure_gauge}}} |
Electrified | {{{electrification}}} |
History | |
Architect | {{{architect}}} |
Designer | {{{designer}}} |
Contracted lead designer | {{{contracted_designer}}} |
Successful competition design | {{{winner}}} |
Engineering design by | {{{engineering}}} |
Constructed by | {{{builder}}} |
Fabrication by | {{{fabricator}}} |
Built | {{{built}}} |
Construction start | {{{begin}}} |
Construction end | {{{complete}}} |
Construction cost | {{{cost}}} |
Opened | {{{opened}}} |
Inaugurated | {{{inaugurated}}} |
Rebuilt | {{{rebuilt}}} |
Collapsed | {{{collapsed}}} |
Destroyed | {{{destroyed}}} |
Closed | {{{closed}}} |
Demolished | {{{demolished}}} |
Replaced | {{{replaces}}} |
Replaced by | {{{replaced_by}}} |
Statistics | |
Daily traffic | {{{traffic}}} |
Toll | {{{toll}}} |
Location | |
References | |
{{{references}}} |
Using location map | |
---|---|
Coordinates | 0°N 0°E / 0°N 0°E |
Location | |
Copy and paste the template below:
{{Infobox bridge
| name =
| native_name =
| native_name_lang =
| image =
| image_size =
| image_upright =
| alt =
| caption =
| coordinates = <!-- {{Coord}} -->
| os_grid_reference =
| qid =
| fetchwikidata =
| onlysourced =
| carries =
| crosses =
| locale =
| starts =
| ends =
| official_name =
| other_name =
| named_for =
| owner =
| maint =
| heritage =
| id =
| id_type =
| website =
| preceded = <!-- or |upstream= -->
| followed = <!-- or |downstream= -->
| design =
| material =
| material1 =
| material2 =
| length =
| width =
| height =
| depth =
| traversable =
| towpath =
| mainspan =
| number_spans =
| piers_in_water =
| load =
| clearance_above =
| clearance_below =
| lanes =
| life =
| diameter =
| first_length =
| first_diameter =
| second_length =
| second_diameter =
| third_length =
| third_diameter =
| capacity =
| num_track =
| track_gauge =
| structure_gauge =
| electrification =
| architect =
| designer =
| contracted_designer =
| winner =
| engineering =
| builder =
| fabricator =
| built =
| begin =
| complete =
| cost =
| opened = <!-- or |opening= |open= -->
| inaugurated = <!-- or |dedicated= -->
| rebuilt =
| collapsed =
| destroyed =
| closed =
| demolished =
| replaces =
| replaced_by =
| traffic =
| toll =
| extra = <!-- extra = module = embed = -->
| references =
}}
Parameters
[edit]- name
- Name of bridge
- native_name
- Name of the bridge in the local language, if different
- native_name_lang
- ISO code for the local language (e.g. "fr" for French). If more than one, enter the native names using {{Lang}} instead.
- image
- Filename of image of the bridge
- image_upright
- Scaling value, where the default size is 1
- alt
- Alt text for bridge image (see WP:ALT)
- caption
- Text for caption beneath image
- coordinates
- Latitude and longitude. Use {{Coord}}. A typical four-lane bridge (25 m or 82.02 ft wide) requires 0.1 second or 0.0001° of precision.
- os_grid_reference
- OS grid reference
- carries
- Type of vehicles bridge carries
- crosses
- Body of water or geographic feature that is being crossed
- locale
- General area where located (e.g. San Francisco, Indiana-Kentucky State Line)
- starts
- Where the aqueduct starts
- ends
- Where the aqueduct ends
- official_name
- Official name
- other_name
- Also known as name
- named_for
- namesake
- owner
- Persons or body that owns the bridge
- maint
- Maintaining entity (e.g. California Department of Transportation)
- heritage
- Heritage status (e.g. UK listed building)
- id
- ID number, if available
- id_type
- Label for the ID field. The default, if this parameter is not specified, is ID number (for the United States National Bridge Inventory)
- website
- URL to the bridge's website; enclose within {{URL}}
- preceded
- Name of bridge upstream
- followed
- Name of bridge downstream
- design
- Type of bridge (cantilever, truss, suspension)
- material
- Construction material (concrete, steel, iron, stone, brick, wood)
- material1
- Construction material for trough
- material2
- Construction material for piers
- length
- Length of bridge, w/ conversions
- width
- Width of bridge, w/ conversions
- height
- Height of bridge, w/ conversions
- depth
- Depth of aqueduct channel, w/ conversions
- diameter
- (if it's pipe)
- first_length
- length of first section, if segmented
- first_diameter
- diameter of first section, if segmented
- second_length
- length of second section, if segmented
- second_diameter
- diameter of second section, if segmented
- third_length
- length of third section, if segmented
- third_diameter
- diameter of third section, if segmented
- capacity
- rate-of-flow
- traversable
- Can standard craft (for that navigation) pass on the aqueduct? Yes/No
- towpath
- Side of towpath (None, N, S, E, W, NE, NW, SE, SW, Both)
- mainspan
- Length of main span, w/ conversions
- number_spans
- Number of spans or arches
- piers_in_water
- Number of piers standing in a river or other water in normal conditions
- load
- Load limit of the bridge, w/ conversions
- clearance_above
- Clearance from the bridge deck to any part of the structure across the deck, if low enough to be problematic. Some bridges are clear above the deck.
- clearance_below
- Clearance beneath the bridge
- life
- Design life of the bridge in years
- architect
- Those responsible for the conceptual design of the bridge – to be used when engineering/construction design was done by another party
- designer
- Bridge designer/architect (e.g. Isambard Kingdom Brunel)
- contracted_designer
- The lead designer at the contract/post competition phase
- winner
- The winner/s of the design competition phase
- engineering
- The person or organization that did the engineering/construction design, where that differs from 'designer' above
- builder
- Construction company or bridge builder
- fabricator
- Steel fabricator
- begin
- Construction start date
- complete
- Construction end date
- cost
- Total project cost
- open
- Opening date, use {{Start date}}; If the bridge has yet not opened, use
|opening=
- inaugurated
- the date the bridge is ceremonially opened
- rebuilt
- Date of major rebuild
- collapsed
- If collapsed, then date of collapse, don't use
closed
– closure is assumed - closed
- Closing date
- replaces
- The bridge or ferry services that this bridge made redundant
- replaced_by
- The bridge or structure that replaced this bridge
- traffic
- Average Daily Traffic value
- toll
- Price of the toll (if a toll bridge)
- extra
- Spare field for modules, e.g. {{Infobox designation list}}
Coordinates
[edit]Use the coordinates=
parameter with {{Coord}} to specify latitude and longitude. See the documentation for the Coord template for details on usage.
If there is no location map or map image specified, then a dynamic map will be displayed in its place if the article's Wikidata item or the Wikidata item indicated in |qid=
has a coordinate location (P625).
Map
[edit]- Basic parameters:
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
- mapframe-caption – Caption for the map. Default: blank (or if
|mapframe-geomask=
is set, "Location in geomask's label") - mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a
{{maplink}}
template, or another template that generates a mapframe map, or an image name. If used, the subsequent mapframe parameters will be ignored. Default: not specified - mapframe-id or id or qid – Id (Q-number) of Wikidata item to use. Default: item for current page
- mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g.
|coord=
. Default: coordinates from Wikidata{{Coord|12.34|N|56.78|E}}
- mapframe-wikidata – Set to
yes
to show shape/line features from the wikidata item, if any, when|coord=
is set. Default: not specified
- Customise which features are displayed:
- mapframe-shape – Turn off display of shape feature by setting to
none
. Use an inverse shape (geomask) instead of a regular shape by setting toinverse
. Default: not specified - mapframe-point – Turn off display of point feature by setting to
none
. Force point marker to be displayed by setting toon
. Default: not specified - mapframe-line – Turn off display of line feature by setting to
none
. Default: not specified - mapframe-geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g.
P17
for country (P17),P131
for located in the administrative territorial entity (P131)). Default: not specified - mapframe-switcher – set to
auto
orgeomasks
orzooms
to enable Template:Switcher-style switching between multiple mapframes. Default: not specifiedauto
– switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.geomasks
– switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameterzooms
– switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of3
), "zoomed out" is1
, and "zoomed midway" is the average
- mapframe-shape – Turn off display of shape feature by setting to
- Other optional parameters:
- mapframe-frame-width or mapframe-width – Frame width. Default: 270
- mapframe-frame-height or mapframe-height – Frame height. Default: 200
- mapframe-shape-fill – Color used to fill shape features. Default: #606060
- mapframe-shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.5
- mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
- mapframe-stroke-width – Width of line features, and outlines of shape features; default is "5". Default: 5
- mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: not specified (i.e. blank)
- Can also be set to
blank
to override any default marker symbol
- Can also be set to
- mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #5E74F3
- mapframe-geomask-stroke-color or mapframe-geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
- mapframe-geomask-stroke-width – Width of outline of geomask shape. Default: 2
- mapframe-geomask-fill – Color used to fill outside geomask features. Default: #606060
- mapframe-geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.5
- mapframe-zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 10
- mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified
- mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
Example
[edit]Sydney Harbour Bridge | |
---|---|
Coordinates | 33°51′8″S 151°12′38″E / 33.85222°S 151.21056°E |
Carries | Trains, Motor vehicles, pedestrians and bicycles |
Crosses | Port Jackson |
Locale | Sydney, New South Wales, Australia |
Characteristics | |
Design | Through arch bridge |
Total length | 1,149 m (3,770 ft) |
Width | 49 m (161 ft) |
Height | 134 m (440 ft) |
Longest span | 503 m (1,650 ft) |
Clearance below | 49 m (161 ft) at mid-span |
History | |
Construction start | 28 July 1923 |
Construction end | 19 January 1932 |
Opened | 19 March 1932 |
Location | |
{{Infobox bridge
| name = Sydney Harbour Bridge
| image = Sydney Harbour Bridge from Circular Quay.jpg
| carries = Trains, Motor vehicles, pedestrians and bicycles
| crosses = [[Port Jackson]]
| locale = [[Sydney]], [[New South Wales]], Australia
| design = [[Through arch bridge]]
| length = {{Convert|1149|m|ft|0|abbr=on}}
| width = {{Convert|49|m|ft|0|abbr=on}}
| height = {{Convert|134|m|ft|0|abbr=on}}
| mainspan = {{Convert|503|m|ft|0|abbr=on}}
| above = (?)
| below = {{Convert|49|m|ft|0|abbr=on}} at mid-span
| begin = 28 July 1923
| complete = 19 January 1932
| open = {{Start-date|19 March 1932}}
| coordinates = {{coord|33|51|8|S|151|12|38|E|region:AU-NSW_type:landmark|display = inline}}
}}
Microformat
[edit]The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
[edit]If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.
If it has a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
[edit]hCard uses HTML classes including:
- adr
- agent
- category
- county-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- region
- street-address
- uid
- url
- vcard
Geo is produced by calling {{coord}}, and uses HTML classes:
- geo
- latitude
- longitude
Please do not rename or remove these classes nor collapse nested elements which use them.
Precision
[edit]When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name=
parameter. A typical four-lane bridge (25 m or 82.02 ft wide) requires 0.1 second or 0.0001° of precision.
Tracking categories
[edit]- Category:Pages using infobox bridge with clearance (388)
- Category:Pages using infobox bridge with empty coordinates parameter (1,247)
- Category:Pages using infobox bridge with extra (9)
- Category:Pages using infobox bridge with extra embedded div (7)
- Category:Pages using infobox bridge with extra embedded table (421)
- Category:Pages using infobox bridge with id (566)
- Category:Pages using infobox bridge with unknown parameters (0)
TemplateData
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox bridge in articles based on its TemplateData.
TemplateData for Infobox bridge No description.
|