Template:Infobox museum/doc
![]() | This is a documentation subpage for Template:Infobox museum. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 11,000 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 when Type includes one of: Museum / Hall / Gallery / Center. If the automatic short description is not optimal, replace it by adding {{Short description}} at the top of the article. |
![]() | This template uses Lua: |
Usage
Copy a blank version to use. All parameter names must be lowercase.
{{{native_name}}} | |
[[File:{{{logo}}}|frameless|alt={{{logo_alt}}}|upright={{{logo_upright}}}]] {{{logo_caption}}} | |
[[File:{{{image}}}|frameless|alt={{{alt}}}|upright={{{image_upright}}}]] {{{caption}}} | |
Former name | {{{former_name}}} |
---|---|
Established | {{{established}}} |
Dissolved | {{{dissolved}}} |
Location | {{{location}}} |
Coordinates | {{{coordinates}}} |
Type | {{{type}}} |
Accreditation | {{{accreditation}}} |
Key holdings | {{{key_holdings}}} |
Collections | {{{collections}}} |
Collection size | {{{collection_size}}} |
Visitors | {{{visitors}}} |
Founder | {{{founder}}} |
Executive director | {{{executive_director}}} |
{{{leader_type}}} | {{{leader}}} |
Director | {{{director}}} |
President | {{{president}}} |
CEO | {{{ceo}}} |
Chairperson | {{{chairperson}}} |
Curator | {{{curator}}} |
Architect | {{{architect}}} |
Historian | {{{historian}}} |
Owner | {{{owner}}} |
Employees | {{{employees}}} |
Public transit access | {{{publictransit}}} |
Nearest parking | {{{parking}}} |
Website | {{{website}}} |
{{Infobox museum/{{{network}}} network|header}} | |
{{Infobox museum/{{{network}}} network|data}} | |
{{{embedded}}} |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
</syntaxhighlight>
Embedding other templates
The embedded parameter is used for embedding other templates into this infobox (see Wikipedia:Infobox modules).
<syntaxhighlight lang="wikitext" style="overflow: auto;">
Infobox museum/doc | |
Template:Cat handler |
</syntaxhighlight>
Parameters
Note that the examples below are presented in wikicode and do not necessarily reflect actual statistics.
- name
- Name of the museum
Example: Foo Museum of Art - native_name
- Name of the museum in the local language, if different
- native_name_lang
- ISO 639-2 code for the local language, e.g. "fr" for French. If there is more than one native name, in different languages, enter those names using {{lang}}, instead.
- logo
- Logo or graphic by which the museum is identified, omitting the wikilink brackets and the "file:" or "image:" namespace
Example: Louvre.jpg - logo_upright
- Logo scaling factor
- logo_alt
- Alt text for the logo, for people who can't see the image
- logo_caption
- Caption for the logo
- image
- Image of the museum, omitting the wikilink brackets and the "file:" or "image:" namespace
Example: Louvre.jpg - image_upright
- Image scaling factor
- alt
- Alt text for image, for people who can't see the image
- caption
- Image caption
- map_type
- The name of the map template used to construct location map, see Template:Location map#Available maps
Example: USA Alabama. - map_relief
- Set this to
y
or any non-blank value to use a relief map image provided by the selected location map template (if a relief map is available). For additional information, see Template:Location map#Relief parameter. - map_size
- Specify a pixel width for the map image. The default is 220.
Example:map_size=230
(notmap_size=230px
). - map_caption
- Text displayed below the map image.
Example: FooTown - map_dot_label
- Text displayed on the map dot.
- coordinates
- Latitude and longitude. Use {{Coord}}; see that template's documentation for usage information.
- former_name
- Previous name(s)
- established
- Date of the museum's establishment. Use {{Start date}}.
Example: {{Start date|1997|03|31}} - dissolved
- If defunct, date the museum was dissolved. Use {{End date}}.
Example: {{End date|2007|12|31}} - location
- Location of the museum
Example: [[National Mall]], [[Washington D.C.]], [[United States|US]]
Example: [[Moncton]], [[New Brunswick]], [[Canada]] - type
- Type of museum, most likely Art museum, Science museum, Children's museum, General interest or similar
Example: [[Art museum]]
Example: [[Science museum]]
Example: [[Children's museum]] - accreditation
- Accreditation
Example: [[American Alliance of Museums]] - key_holdings
- Key holdings
Example: [[Flaming June]] - collections
- Collections
Example: [[Baroque]]
Example: [[Pre-Raphaelite]]
Example: [[Golden Age]] - collection_size
- Number of objects
- visitors
- Number of visitors
Example: 417,096 (2005) - founder
- The museum's founder
Example: [[Harold Saxon]] - executive_director
- The museum's executive director
Example: [[Harold Saxon]]
Alias:executive director
- director
- The museum's director
Example: [[Harold Saxon]] - president
- Alternative to "director" above
- ceo
- Alternative to "ceo" above
- chairperson
- The museum's chair
Example: [[Harold Saxon]] - curator
- The curator of the museum
Example: [[John Smith]] - architect
- The architect of the museum
Example: [[John Smith]] - historian
- The historian of the museum
Example: [[John Smith]] - owner
- The owner of the museum
Example: [[Government of the City of Miami]] - employees
- The number of employees.
- publictransit
- The nearest public transport stop
Example: [[Roosevelt/State (CTA)|Roosevelt Station]], [[Chicago Transit Authority]] - parking
- The nearest parking
Example: On site (no charge) - car_park
- Same as parking, but instead renders the label as "car park" for WP:ENGVAR purposes
- website
- Official or primary website operated by the museum. Use the template {{URL}}.
Example: {{URL|example.org}} - network
- If the museum is part of a museum network, specify the network name to invoke one of the network templates.
- embedded
- Enter
yes
if this template is used as a module (sub-template) of another infobox.
Mapframe map
A Mapframe map is automatically included if:
- There are coordinates specified on the page's Wikidata item
- It has not been turned off by setting
|mapframe=no
- Either another type of map has not been set, or
|mapframe=yes
is set
The following parameters are available for adjusting the mapframe map:
- Basic parameters:
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no if a pushpin map or map image is specified, yes otherwise
- The default value of the mapframe parameter is also modified by the internal onByDefault parameter. Default: not specified
- 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 <syntaxhighlight lang="text" class="" style="" inline="1">yes</syntaxhighlight> to show shape/line features from the wikidata item, if any, when
|coord=
is set. Default: not specified
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no if a pushpin map or map image is specified, yes otherwise
- Customise which features are displayed:
- mapframe-shape – Turn off display of shape feature by setting to <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. Use an inverse shape (geomask) instead of a regular shape by setting to <syntaxhighlight lang="text" class="" style="" inline="1">inverse</syntaxhighlight>. Default: not specified
- mapframe-point – Turn off display of point feature by setting to <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. Force point marker to be displayed by setting to <syntaxhighlight lang="text" class="" style="" inline="1">on</syntaxhighlight>. Default: not specified
- mapframe-line – Turn off display of line feature by setting to <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. 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 (P17),P131
for (P131)). Default: not specified - mapframe-switcher – set to <syntaxhighlight lang="text" class="" style="" inline="1">auto</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">geomasks</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">zooms</syntaxhighlight> to enable Template:Switcher-style switching between multiple mapframes. Default: not specified
- <syntaxhighlight lang="text" class="" style="" inline="1">auto</syntaxhighlight> – switch geomasks found in (P276) and (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.
- <syntaxhighlight lang="text" class="" style="" inline="1">geomasks</syntaxhighlight> – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter
- <syntaxhighlight lang="text" class="" style="" inline="1">zooms</syntaxhighlight> – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of <syntaxhighlight lang="text" class="" style="" inline="1">3</syntaxhighlight>), "zoomed out" is <syntaxhighlight lang="text" class="" style="" inline="1">1</syntaxhighlight>, and "zoomed midway" is the average
- 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: museum
- Can also be set to <syntaxhighlight lang="text" class="" style="" inline="1">blank</syntaxhighlight> to override any default marker symbol
- 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
- mapframe-type – Set the type of the object, with the same usage as {{coord}}. Default: not specified
- mapframe-population – Set the population, useful with type="city", for {{Infobox dim}}. Default: not specified
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
TemplateData for Infobox museum
<templatedata>
{
"description": "An infobox for museums",
"format": "Template:\n\n",
"params": {
"name": {
"label": "Name",
"description": "Name of the museum",
"example": "Foo Museum of Art",
"suggested": true
},
"native_name": {
"label": "Native name",
"description": "Name of the museum in the local language, if different"
},
"native_name_lang": {
"label": "Native name language",
"description": "The language of the native name"
},
"logo": {
"label": "Logo",
"description": "Logo or graphic by which the museum is identified",
"example": "Louvre.jpg",
"type": "wiki-file-name",
"suggested": true
},
"logo_upright": {
"label": "Logo upright",
"description": "Logo scaling factor",
"type": "number"
},
"logo_alt": {
"label": "Logo alt text",
"description": "Alt text for the logo, for people who can't see the image"
},
"logo_caption": {
"label": "Logo caption",
"description": "The caption for the logo",
"type": "string"
},
"image": {
"label": "Image",
"description": "An image of the museum",
"example": "Louvre.jpg",
"type": "wiki-file-name",
"suggested": true
},
"image_upright": {
"label": "Image upright",
"description": "Scaling factor for the image",
"type": "number"
},
"alt": {
"label": "Image alt text",
"description": "Alt text for image, for people who can't see the image",
"type": "string"
},
"caption": {
"label": "Image caption",
"description": "A caption for the image",
"type": "string"
},
"map_type": {
"aliases": [
"pushpin_map",
"image_map"
],
"label": "Map type",
"description": "The name of the map template used to construct location map, see Template:Location map#Available maps",
"example": "USA Alabama",
"suggested": true
},
"map_caption": {
"label": "Map caption",
"description": "Text displayed below the map image, if latitude and longitude are used",
"example": "FooTown"
},
"map_size": {
"label": "Map size",
"description": "Specify a pixel width for the map image",
"example": "250",
"type": "number",
"default": "250"
},
"map_relief": {
"aliases": [
"pushpin_relief"
],
"label": "Show map relief",
"description": "Set this to y or any non-blank value to use a relief map image provided by the selected location map template (if a relief map is available). For additional information, see Template:Location map#Relief parameter",
"type": "boolean"
},
"former_name": {
"label": "Former name",
"description": "Previous name(s)",
"suggested": true,
"aliases": [
"former_names"
]
},
"established": {
"label": "Established",
"description": "Date of establishment, using Error: Year value is required (help)",
"example": "March 31, 1997 ",
"suggested": true
},
"dissolved": {
"label": "Dissolved",
"description": "If defunct, date the museum was dissolved. Use Error: Year value is required (help)",
"example": "December 31, 2007 "
},
"location": {
"label": "Location",
"description": "Location of the museum",
"example": "National Mall, Washington D.C., US",
"suggested": true
},
"coordinates": {
"label": "Coordinates",
"description": "Alternative to other coordinates parameters, taking Coordinates: Missing latitude
Invalid arguments have been passed to the {{#coordinates:}} function as a single value",
"example": "44°06′43″N 87°54′47″W / 44.112°N 87.913°W"
},
"type": {
"label": "Type",
"description": "Type of museum, most likely Art museum, Science museum, Children's museum or similar",
"example": "Art museum",
"suggested": true
},
"accreditation": {
"label": "Accreditation",
"example": "American Alliance of Museums"
},
"key_holdings": {
"label": "Key holdings",
"description": "Important holdings",
"example": "Flaming June"
},
"collections": {
"label": "Collections",
"description": "The types of collections held by the museum",
"example": "Baroque",
"type": "string",
"aliases": [
"collections_type"
]
},
"collection_size": {
"aliases": [
"collection size",
"collection"
],
"label": "Collection size",
"description": "Number of objects",
"example": "20,000",
"type": "number"
},
"visitors": {
"label": "Visitors",
"description": "Number of visitors",
"example": "417,096 (2005)"
},
"founder": {
"label": "Founder",
"description": "The museum's founder",
"example": "Harold Saxon"
},
"director": {
"label": "Director",
"description": "The museum's director"
},
"executive_director": {
"label": "Executive director",
"description": "The museum's executive director",
"aliases": [
"executive director"
]
},
"president": {
"label": "President",
"description": "The museum's president"
},
"ceo": {
"label": "CEO",
"description": "The museum's chief executive officer"
},
"chairperson": {
"label": "Chairperson",
"description": "The museum's chair"
},
"curator": {
"label": "Curator",
"description": "The curator of the museum"
},
"architect": {
"label": "Architect",
"description": "The architect of the museum"
},
"historian": {
"label": "Historian",
"description": "The historian of the museum"
},
"owner": {
"label": "Owner",
"description": "The owner of the museum",
"example": "Government of the City of Miami"
},
"employees": {
"label": "employees",
"type": "string"
},
"publictransit": {
"label": "Public transport",
"description": "The nearest public transport stop",
"example": "Roosevelt Station, Chicago Transit Authority"
},
"parking": {
"label": "Parking",
"description": "The nearest parking",
"example": "On site (no charge)"
},
"car_park": {
"label": "Car park",
"description": "Same as parking, but instead renders the label as \"car park\" for WP:ENGVAR purposes"
},
"website": {
"label": "Website",
"description": "Official or primary website operated by the museum. Use the template {{URL|example.com|optional display text}}
.",
"example": "example
Examples
![]() | |
![]() Aerial shot of the British Museum | |
Established | 7 June 1753 |
---|---|
Location | Great Russell Street, London WC1B 3DG, England, United Kingdom |
Collection size | approx. 8 million objects[1] |
Visitors | 4,097,253 (2022)[2] (up 209 per cent from 2021) |
Chair | George Osborne |
Director | Hartwig Fischer |
Public transit access | ![]() |
Area | 807,000 sq ft (75,000 m2) in 94 galleries |
<syntaxhighlight lang="wikitext" style="overflow:auto;">
![]() | |
![]() Aerial shot of the British Museum | |
Established | 7 June 1753 |
---|---|
Location | Great Russell Street, London WC1B 3DG, England, United Kingdom |
Collection size | approx. 8 million objects[3] |
Visitors | 4,097,253 (2022)[4] (up 209 per cent from 2021) |
Chair | George Osborne |
Director | Hartwig Fischer |
Public transit access | ![]() |
Area | 807,000 sq ft (75,000 m2) in 94 galleries |
</syntaxhighlight>
![]() Main facade | |
<mapframe zoom="13" frameless="1" align="center" longitude="-77.0259" latitude="38.8913" height="200" width="250">{"type":"Feature","geometry":{"coordinates":[-77.0259,38.8913],"type":"Point"},"properties":{"marker-color":"#5E74F3","title":"Infobox museum/doc","marker-symbol":"museum"}}</mapframe> | |
Established | 1910 |
---|---|
Location | National Mall in Washington, D.C., United States |
Coordinates | 38°53′29″N 77°01′33″W / 38.8913°N 77.0259°W |
Type | Natural history |
Collection size | 146,000,000 specimens [5] |
Visitors | |
Director | Kirk Johnson |
Employees | 427 [5] |
Public transit access | ![]() ![]() ![]() ![]() |
Website | naturalhistory |
<syntaxhighlight lang="wikitext" style="overflow:auto;">
![]() Main facade | |
<mapframe zoom="13" frameless="1" align="center" longitude="-77.0259" latitude="38.8913" height="200" width="250">{"type":"Feature","geometry":{"coordinates":[-77.0259,38.8913],"type":"Point"},"properties":{"marker-color":"#5E74F3","title":"Infobox museum/doc","marker-symbol":"museum"}}</mapframe> | |
Established | 1910 |
---|---|
Location | National Mall in Washington, D.C., United States |
Coordinates | 38°53′29″N 77°01′33″W / 38.8913°N 77.0259°W |
Type | Natural history |
Collection size | 146,000,000 specimens [5] |
Visitors | |
Director | Kirk Johnson |
Employees | 427 [5] |
Public transit access | ![]() ![]() ![]() ![]() |
Website | naturalhistory |
</syntaxhighlight>
- ↑ "Collection size". British Museum. Archived from the original on 12 August 2017. Retrieved 22 July 2016.
- ↑ Association of Leading Visitor Attractions (ALVA), 22 March 2022
- ↑ "Collection size". British Museum. Archived from the original on 12 August 2017. Retrieved 22 July 2016.
- ↑ Association of Leading Visitor Attractions (ALVA), 22 March 2022
- ↑ 5.0 5.1 5.2 5.3 "Media Fact Sheet". February 14, 2019. Retrieved May 30, 2020.
- ↑ TEA/AECOM (September 2021). TEA/AECOM 2020 Theme Index and Museum Index: The Global Attractions Attendance Report (PDF) (Report). Themed Entertainment Association (TEA). p. 87.
- ↑ TEA/AECOM (July 2020). TEA/AECOM 2019 Theme Index and Museum Index: The Global Attractions Attendance Report (PDF) (Report). Themed Entertainment Association (TEA). p. 93.
- ↑ TEA/AECOM (May 2019). TEA/AECOM 2018 Theme Index and Museum Index: The Global Attractions Attendance Report (PDF) (Report). Themed Entertainment Association (TEA). p. 37.
- ↑ TEA/AECOM (September 2021). TEA/AECOM 2020 Theme Index and Museum Index: The Global Attractions Attendance Report (PDF) (Report). Themed Entertainment Association (TEA). p. 87.
- ↑ TEA/AECOM (July 2020). TEA/AECOM 2019 Theme Index and Museum Index: The Global Attractions Attendance Report (PDF) (Report). Themed Entertainment Association (TEA). p. 93.
- ↑ TEA/AECOM (May 2019). TEA/AECOM 2018 Theme Index and Museum Index: The Global Attractions Attendance Report (PDF) (Report). Themed Entertainment Association (TEA). p. 37.
Tracking category