Template:Infobox venue: Difference between revisions
m (1 revision imported) |
en>MSGJ (mapframe-wikidata defaults to yes) |
||
Line 10: | Line 10: | ||
| subheader2 = {{#if:{{{nickname|{{{othernames|}}}}}}|<div class="nickname">{{{nickname|{{{othernames|}}}}}}</div>}} | | subheader2 = {{#if:{{{nickname|{{{othernames|}}}}}}|<div class="nickname">{{{nickname|{{{othernames|}}}}}}</div>}} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo_image|}}}|size={{{logo_size|}}}|sizedefault=frameless|upright=1|alt={{{logo_alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo_image|}}}|size={{{logo_size|}}}|sizedefault=frameless|upright={{{logo_upright|1}}}|alt={{{logo_alt|}}}}} | ||
| caption = {{{logo_caption|}}} | | caption = {{{logo_caption|}}} | ||
Line 33: | Line 33: | ||
}}}} | }}}} | ||
| image5 = {{#invoke:Infobox mapframe|auto|onByDefault={{#if:{{{pushpin_map|}}}{{{image_map|}}}|no|yes}}|mapframe-frame-width={{{mapframe-frame-width|250}}}|mapframe-zoom={{{mapframe-zoom|13}}}}} | | image5 = {{#invoke:Infobox mapframe|auto|onByDefault={{#if:{{{pushpin_map|}}}{{{image_map|}}}|no|yes}}|mapframe-frame-width={{{mapframe-frame-width|250}}}|mapframe-wikidata={{{mapframe-wikidata|yes}}}|mapframe-zoom={{{mapframe-zoom|13}}}}} | ||
| caption5 = {{#invoke:Infobox mapframe|autocaption|onByDefault={{#if:{{{pushpin_map|}}}{{{image_map|}}}|no|yes}}}} | | caption5 = {{#invoke:Infobox mapframe|autocaption|onByDefault={{#if:{{{pushpin_map|}}}{{{image_map|}}}|no|yes}}}} | ||
Line 74: | Line 74: | ||
| label16 = [[Seating capacity|Capacity]] | | label16 = [[Seating capacity|Capacity]] | ||
| data16 = {{{capacity|{{{seating_capacity|}}}}}} | | data16 = {{{capacity|{{{seating_capacity|}}}}}} | ||
| label17 = Record | | label17 = Record attendance | ||
| data17 = {{{record_attendance|}}} | | data17 = {{{record_attendance|}}} | ||
| label18 = Field size | | label18 = Field size | ||
Line 139: | Line 139: | ||
| header49 = {{{nrhp|{{{embedded|}}}}}} | | header49 = {{{nrhp|{{{embedded|}}}}}} | ||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox venue with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox venue]] with unknown parameter "_VALUE_"|ignoreblank=y| Acreage | acreage | address | altitude | architect | broke ground | broke_ground | builder | built | capacity | caption | centre_name | city | closed | construction_cost | coordinates | cost | country | currentuse | demolished | designation | dimensions | elevation | embedded | expanded | field_shape | former names | former_names | formernames | fullname | general contractor | general_contractor | genre | homepage | image | image_alt | image_caption | image_map | image_size | image_upright | location | logo_alt | logo_caption | logo_image | logo_size | main contractors | main_contractors | map_alt | map_caption | map_size | name | native_name | native_name_lang | nickname | nrhp | opened | operator | othernames | owner | parking | production | project manager | project_manager | publictransit | pushpin_label | pushpin_label_position | pushpin_map | pushpin_map_caption | pushpin_mapsize | pushpin_relief | rebuilt | record_attendance | renovated | reopened | scoreboard | screens | seating_capacity | seating_type | services engineer | stadium_name | structural engineer | Suites | suites | surface | tenant | tenants | type | URL | website | Website | yearsactive | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox venue with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox venue]] with unknown parameter "_VALUE_"|ignoreblank=y| Acreage | acreage | address | altitude | architect | broke ground | broke_ground | builder | built | capacity | caption | centre_name | city | closed | construction_cost | coordinates | cost | country | currentuse | demolished | designation | dimensions | elevation | embedded | expanded | field_shape | former names | former_names | formernames | fullname | general contractor | general_contractor | genre | homepage | image | image_alt | image_caption | image_map | image_size | image_upright | location | logo_alt | logo_caption | logo_image | logo_size | logo_upright | main contractors | main_contractors | map_alt | map_caption | map_size | name | native_name | native_name_lang | nickname | nrhp | opened | operator | othernames | owner | parking | production | project manager | project_manager | publictransit | pushpin_label | pushpin_label_position | pushpin_map | pushpin_map_caption | pushpin_mapsize | pushpin_relief | rebuilt | record_attendance | renovated | reopened | scoreboard | screens | seating_capacity | seating_type | services engineer | stadium_name | structural engineer | Suites | suites | surface | tenant | tenants | type | URL | website | Website | yearsactive | ||
| 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 | | 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 | ||
}}{{main other|{{#if:{{both|{{{image_map|}}}|{{{pushpin_map|}}}}}|[[Category:Pages using infobox venue with both image_map and pushpin_map]]}}{{#if:{{both|{{{map_caption|}}}|{{{pushpin_map|}}}}}|[[Category:Pages using infobox venue with both map_caption and pushpin_map]]}}}}<noinclude> | }}{{main other|{{#if:{{both|{{{image_map|}}}|{{{pushpin_map|}}}}}|[[Category:Pages using infobox venue with both image_map and pushpin_map]]}}{{#if:{{both|{{{map_caption|}}}|{{{pushpin_map|}}}}}|[[Category:Pages using infobox venue with both map_caption and pushpin_map]]}}}}<noinclude> |
Revision as of 04:47, 11 July 2024
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value). |
This template uses Lua: |
This templates generates an infobox to summarize information about stadia, arenas, or other sporting venues, as well as theatres and cinemas.
Usage
{{{native_name}}} | |
{{{nickname}}} | |
[[File:{{{logo_image}}}|{{{logo_size}}}|alt={{{logo_alt}}}|upright=1]] | |
[[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}|upright={{{image_upright}}}]] | |
[[File:{{{image_map}}}|{{{map_size}}}|alt={{{map_alt}}}|upright=1]] | |
Full name | {{{fullname}}} |
---|---|
Former names | {{{former names}}} |
Address | {{{address}}} {{{city}}} {{{country}}} |
Location | {{{location}}} |
Coordinates | {{{coordinates}}} |
Elevation | {{{elevation}}} |
Public transit | {{{publictransit}}} |
Parking | {{{parking}}} |
Owner | {{{owner}}} |
Operator | {{{operator}}} |
Designation | {{{designation}}} |
Type | {{{type}}} |
Genre(s) | {{{genre}}} |
Seating type | {{{seating_type}}} |
Executive suites | {{{suites}}} |
Capacity | {{{capacity}}} |
Record attendance | {{{record_attendance}}} |
Field size | {{{dimensions}}} |
Field shape | {{{field_shape}}} |
Acreage | {{{acreage}}} |
Surface | {{{surface}}} |
Scoreboard | {{{scoreboard}}} |
Screens | {{{screens}}} |
Current use | {{{currentuse}}} |
Production | {{{production}}} |
Construction | |
Broke ground | {{{broke ground}}} |
Built | {{{built}}} |
Opened | {{{opened}}} |
Renovated | {{{renovated}}} |
Expanded | {{{expanded}}} |
Closed | {{{closed}}} |
Reopened | {{{reopened}}} |
Demolished | {{{demolished}}} |
Rebuilt | {{{rebuilt}}} |
Years active | {{{yearsactive}}} |
Construction cost | {{{cost}}} |
Architect | {{{architect}}} |
Builder | {{{builder}}} |
Project manager | {{{project manager}}} |
Structural engineer | {{{structural engineer}}} |
Services engineer | {{{services engineer}}} |
General contractor | {{{general contractor}}} |
Main contractors | {{{main contractors}}} |
Tenants | |
{{{tenants}}} | |
Website | |
{{{website}}} | |
{{{embedded}}} |
Full syntax
{{Infobox venue | name = | native_name = | native_name_lang = | nickname = | logo_image = | logo_size = | logo_alt = | logo_caption = | image = | image_size = | image_upright = | image_alt = | caption = | image_map = | map_size = | map_alt = | map_caption = | pushpin_map = | pushpin_mapsize = | pushpin_map_caption = | pushpin_label_position = | pushpin_relief = | fullname = | former names = | address = | city = | country = | location = | coordinates = <!-- {{Coord|LAT|LON|type:landmark|display=inline,title}} --> | elevation = <!-- {{cvt|...|ft|m}} or {{cvt|...|m|ft}} --> | publictransit = | parking = | owner = | operator = | designation = | type = | genre = | seating_type = | suites = | capacity = | record_attendance = | dimensions = | field_shape = | acreage = | surface = | scoreboard = | screens = | currentuse = | production = | broke_ground = | built = | opened = <!-- {{Start date|YYYY|MM|DD|df=y}} --> | renovated = | expanded = | closed = | demolished = | rebuilt = | yearsactive = | cost = | architect = | builder = | project_manager = | structural engineer = | services engineer = | general_contractor = | main_contractors = | tenants = | website = <!-- {{URL|example.com}} --> | embedded = }}
Parameters
All attributes are optional.
Parameter | Explanation |
---|---|
name | Name of the sporting venue. Defaults to {{PAGENAME}} |
stadium_name | |
centre_name | |
nickname | English nickname(s) of the venue |
native_name | Name of the venue in native language/script (e.g. दशरथ रंगशाला) |
native_name_lang | If |native_name= is present, ISO 639-1 code of language/script of value (e.g. ne)
|
fullname | Insert the official full name of the venue |
former names | Insert the venue's former name(s). Use the format:
|
logo_image | Insert an image link in the form: [[File:MyLogo.jpg|250px|alt=My alt text]] . For more on alt text, please see WP:ALT.
|
logo_caption | Insert a caption for the stadium logo |
image | Image name without "File:" or other formatting. e.g. MyImage.jpg |
image_size | Size of the image as a raw number (i.e. without "px"). If not specified, image width defaults to "frameless" (220px). |
image_alt | alt text for the image. |
caption | Insert a caption for the stadium image |
pushpin_map | The name of a location map as per Template:Location map |
pushpin_mapsize | The width to display the pushpin map, in pixels. Just the number, without "px". If omitted or left empty, defaults to 250. |
pushpin_map_caption | Caption to display below the pushpin map. If left blank or omitted, a caption will not be displayed. |
pushpin_label_position | The position of the label on the pushpin map relative to the pushpin mark. Valid values are left, right, top and bottom. This defaults to either left or right, depending on the coordinates of the marker and its position relative to the right border of the map image. |
location | Insert the venue's location. For "United States" and "United Kingdom", it is preferred that they be abbreviated "U.S." and "UK", but political subdivisions should never be (never "MA" for "Massachusetts", "ON" for "Ontario", etc.). See Notes[1] for details. |
coordinates | Insert the geographical coordinates; use {{Coord}} |
elevation | Elevation in meters or feet using {{convert}} |
type | Theatre, Stadium, ... |
genre | music, concerts, sporting events, theatre, dance |
broke_ground | Insert the date when ground was broken to build the venue |
built | Insert a date range of when the venue was under construction |
opened | Insert the date of when it opened |
renovated | Insert the date of when it was renovated |
expanded | Insert the date of when it was expanded |
closed | Insert the date of when it was closed |
demolished | Insert the date of when it was demolished |
owner | Insert the name(s) of the venue's owner(s) |
operator | Insert the name(s) of the venue's operator(s) |
surface | Enter the surface of the venue (e.g. grass, sand, artificial turf) |
scoreboard | Enter the details of any scoreboard at the venue. If specific details are not known, just enter "Yes" if the venue has a scoreboard or "No" if there is none. |
screens | Enter the number of theatre screens. |
currentuse | Enter the current use of the venue. |
production | Enter the theatrical production currently being housed at the venue. |
cost | Enter the construction cost, preferably in the currency that the venue is located in (see WP:DATE for details) Per its own documentation, the inflation template must not be used. |
architect | Insert the name(s) of the venue's architect(s) |
builder | Name(s) of the venue's builder(s) |
project_manager | Insert the name(s) of the project manager(s) who led the venue's construction |
structural engineer | Insert the name(s) of the venue's structural engineer(s) |
services engineer | Insert the name(s) of the venue's services engineer(s) |
general_contractor | Insert the name(s) of the venue's general contractor(s) |
main_contractors | Insert the name(s) of the venue's main contractor(s) |
seating_type | soft seat, reserved seating |
capacity | Insert the seating capacity of the venue. If it is a multi-purpose venue, use the format:
|
suites | Insert the number of suites |
record_attendance | Insert the all-time record attendance of the venue. (include the date and event if you wish) If it is a multi-purpose venue, use the format:
|
dimensions | Insert the dimensions of the venue:
|
field_shape | Oval rectangular or circular |
acreage | Insert the acreage. |
tenants | Insert the teams and any other parties who use the venue as their home stadium or arena. Use the format:
Alternatively, you can use the {{infobox venue/tenantlist}} sub-template to automatically line rows up. |
embedded | Embed another infobox with such capability like {{designation list}} and {{infobox NRHP}}. See their respective documentation for more information. |
website | Insert the website, preferably with {{URL}} |
publictransit | The nearest public transport stop. Example: [[Roosevelt/State (CTA)|Roosevelt Station]], [[Chicago Transit Authority]] |
Mapframe parameters
- 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={{Coord|12.34|N|56.78|E}}
. Default: coordinates from Wikidata - 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 Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P17),P131
for Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (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 Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (P276) and Lua error in Module:Wd at line 632: attempt to index field 'wikibase' (a nil value). (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
Notes
- ^ As per RfC "Naming countries in infoboxes": When identifying a location, city or region in the United States or United Kingdom, the preferred approach is to use the country abbreviations allowed by MOS:ACRO, such as "Portsmouth, New Hampshire, U.S." and "Cardiff, Wales, UK", rather than spelling out the full country name. Avoid using abbreviations for states or provinces in all nations. New Hampshire rather than NH, New South Wales rather than NSW, or British Columbia rather than BC (see MOS:POSTABBR). Cities such as New York City and London may be rendered as "New York City, U.S." and "London, UK" or simply "New York City" and "London". Also, these should not be linked when the context makes it clear (see MOS:OVERLINK). If only the country name is included, it may be written out in full.
Microformat
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
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
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
When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name=
parameter.
TemplateData
See a monthly parameter usage report for Template:Infobox venue in articles based on its TemplateData.
TemplateData for Infobox venue This templates generates an infobox to summarize information about stadia, arenas, or other sporting venues.
|