Difference between revisions of "Template:Infobox museum/doc"
imported>GhostInTheMachine (Short description depends on the value in the Type parameter) |
imported>Funandtrvl (sync w/template) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | + | <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --><!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> |
{{Auto short description|conditions=when '''Type''' includes one of: Museum / Hall / Gallery / Center}} | {{Auto short description|conditions=when '''Type''' includes one of: Museum / Hall / Gallery / Center}} | ||
{{Lua|Module:Check for unknown parameters|Module:Infobox|Module:InfoboxImage|Module:Location map|Module:Type in location}} | {{Lua|Module:Check for unknown parameters|Module:Infobox|Module:InfoboxImage|Module:Location map|Module:Type in location}} | ||
| Line 7: | Line 7: | ||
Copy a blank version to use. All fields '''''must''''' be [[lowercase]]. | Copy a blank version to use. All fields '''''must''''' be [[lowercase]]. | ||
| − | {{Parameter names example | name | native_name | native_name_lang | logo | logo_upright | logo_alt | logo_caption | image | image_upright | alt | caption | | + | {{Parameter names example | name | native_name | native_name_lang | logo | logo_upright | logo_alt | logo_caption | image | image_upright |image_size | alt | caption | |map_type= | map_caption | map_size | map_relief | map_dot_label | coordinates | former_name | established | dissolved | location | type | accreditation | key_holdings | collections | collection_size | visitors | founder |executive_director |leader_type | leader | director | president | ceo | chairperson | curator | architect | historian | owner |employees | publictransit |parking | website | network | embedded | mapframe=no}} |
| − | <pre style="overflow: auto;">{{Infobox museum | + | <pre style="overflow: auto;"> |
| + | {{Infobox museum | ||
| name = | | name = | ||
| native_name = | | native_name = | ||
| Line 18: | Line 19: | ||
| logo_caption = | | logo_caption = | ||
| image = | | image = | ||
| + | | image_size = | ||
| image_upright = | | image_upright = | ||
| alt = | | alt = | ||
| Line 25: | Line 27: | ||
| map_size = | | map_size = | ||
| map_caption = | | map_caption = | ||
| − | | coordinates = <!-- {{ | + | | map_dot_label = |
| − | | former_name = | + | | coordinates = <!-- {{coord|LAT|LON|display=inline,title}} --> |
| − | | established = <!-- {{ | + | | former_name = <!-- or |former_names= --> |
| − | | dissolved = <!-- {{ | + | | established = <!-- {{start date|YYYY|MM|DD|df=y}} --> |
| + | | dissolved = <!-- {{end date|YYYY|MM|DD|df=y}} --> | ||
| location = | | location = | ||
| type = | | type = | ||
| Line 48: | Line 51: | ||
| historian = | | historian = | ||
| owner = | | owner = | ||
| + | | employees = | ||
| publictransit = | | publictransit = | ||
| − | | car_park | + | | parking = <!-- or |car_park= --> |
| − | | | + | | website = <!-- {{URL|example.com}} --> |
| network = | | network = | ||
| − | | | + | | embedded = <!-- or |nrhp= --> |
| − | + | }} | |
| − | }}</pre> | + | </pre> |
=== Embedding other templates === | === Embedding other templates === | ||
| Line 82: | Line 86: | ||
; image : Image of the museum, omitting the [[Help:Link|wikilink brackets]] and the "file:" or "image:" [[Help:Namespace|namespace]] <br />Example: Louvre.jpg | ; image : Image of the museum, omitting the [[Help:Link|wikilink brackets]] and the "file:" or "image:" [[Help:Namespace|namespace]] <br />Example: Louvre.jpg | ||
; image_upright : Image scaling factor | ; image_upright : Image scaling factor | ||
| + | ; alt : [[WP:ALT|Alt text]] for image, for people who can't see the image | ||
; caption : Image caption | ; caption : Image caption | ||
| − | |||
; map_type : The name of the map template used to construct location map, see [[Template:Location map#Available map templates]] <br /> Example: [[Module:Location map/data/USA Alabama|USA Alabama]]. | ; map_type : The name of the map template used to construct location map, see [[Template:Location map#Available map templates]] <br /> Example: [[Module:Location map/data/USA Alabama|USA Alabama]]. | ||
; map_relief : Set this to <code>y</code> or any non-blank value to use a [[relief mapping (computer graphics)|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_relief : Set this to <code>y</code> or any non-blank value to use a [[relief mapping (computer graphics)|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. <br /> Example: <code>map_size=230</code> (not <code>map_size=230px</code>). | ; map_size : Specify a pixel width for the map image. The default is 220. <br /> Example: <code>map_size=230</code> (not <code>map_size=230px</code>). | ||
; map_caption : Text displayed below the map image. <br /> Example: FooTown | ; map_caption : Text displayed below the map image. <br /> Example: FooTown | ||
| + | ; map_dot_label : Text displayed on the map dot. | ||
; coordinates : Latitude and longitude. Use {{Tl|Coord}}; see that template's documentation for usage information. | ; coordinates : Latitude and longitude. Use {{Tl|Coord}}; see that template's documentation for usage information. | ||
; former_name : Previous name(s) | ; former_name : Previous name(s) | ||
| Line 95: | Line 100: | ||
; type : [[:Category:Types of museum|Type of museum]], most likely ''Art museum'', ''Science museum'', ''Children's museum'', ''General interest'' or similar <br /> Example: <nowiki>[[Art museum]]</nowiki> <br /> Example: <nowiki>[[Science museum]]</nowiki> <br /> Example: <nowiki>[[Children's museum]]</nowiki> | ; type : [[:Category:Types of museum|Type of museum]], most likely ''Art museum'', ''Science museum'', ''Children's museum'', ''General interest'' or similar <br /> Example: <nowiki>[[Art museum]]</nowiki> <br /> Example: <nowiki>[[Science museum]]</nowiki> <br /> Example: <nowiki>[[Children's museum]]</nowiki> | ||
; accreditation : Accreditation <br /> Example: <nowiki>[[American Alliance of Museums]]</nowiki> <br /> | ; accreditation : Accreditation <br /> Example: <nowiki>[[American Alliance of Museums]]</nowiki> <br /> | ||
| − | ; key_holdings : Key holdings | + | ; key_holdings : Key holdings<br /> Example: <nowiki>[[Flaming June]]</nowiki> <br /> |
| − | ; collections : Collections | + | ; collections : Collections<br /> Example: <nowiki>[[Baroque]]</nowiki> <br /> Example: <nowiki>[[Pre-Raphaelite]]</nowiki> <br /> Example: <nowiki>[[Golden Age]]</nowiki> |
; collection_size : Number of objects | ; collection_size : Number of objects | ||
; visitors : Number of visitors <br /> Example: 417,096 (2005) | ; visitors : Number of visitors <br /> Example: 417,096 (2005) | ||
| Line 109: | Line 114: | ||
; historian : The [[historian]] of the museum <br /> <nowiki> Example: [[John Smith]]</nowiki> | ; historian : The [[historian]] of the museum <br /> <nowiki> Example: [[John Smith]]</nowiki> | ||
; owner : The [[owner]] of the museum <br /> <nowiki> Example: [[Government of the City of Miami]]</nowiki> | ; owner : The [[owner]] of the museum <br /> <nowiki> Example: [[Government of the City of Miami]]</nowiki> | ||
| + | ; employees : The number of employees. | ||
; publictransit : The nearest [[public transport]] stop <br /> <nowiki> Example: [[Roosevelt/State (CTA)|Roosevelt Station]], [[Chicago Transit Authority]]</nowiki> | ; publictransit : The nearest [[public transport]] stop <br /> <nowiki> Example: [[Roosevelt/State (CTA)|Roosevelt Station]], [[Chicago Transit Authority]]</nowiki> | ||
; car_park : The nearest car park <br /> <nowiki> Example: On site (no charge)</nowiki> | ; car_park : The nearest car park <br /> <nowiki> Example: On site (no charge)</nowiki> | ||
; parking : Same as car park, but instead renders the label as "parking" for [[WP:ENGVAR]] purposes | ; parking : Same as car park, but instead renders the label as "parking" for [[WP:ENGVAR]] purposes | ||
| + | ; website : Official or primary website operated by the museum. Use the template {{tl|URL}}. <br /> Example: <nowiki>{{URL|example.org}}</nowiki> | ||
; network : If the museum is part of a museum network, specify the network name to invoke one of the [//en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=Infobox+museum&namespace=10 network templates]. | ; network : If the museum is part of a museum network, specify the network name to invoke one of the [//en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=Infobox+museum&namespace=10 network templates]. | ||
| − | ; | + | ; embedded : Enter <code>yes</code> if this template is used as a module (sub-template) of another infobox. |
| − | |||
===Mapframe map=== | ===Mapframe map=== | ||
| Line 442: | Line 448: | ||
{{Buildings and structures infobox templates}} | {{Buildings and structures infobox templates}} | ||
| − | <includeonly>{{ | + | <includeonly>{{sandbox other|| |
| − | + | <!-- Categories below this line; interwikis at Wikidata --> | |
[[Category:Buildings and structures infobox templates|Museum]] | [[Category:Buildings and structures infobox templates|Museum]] | ||
[[Category:Organization infobox templates|Museum]] | [[Category:Organization infobox templates|Museum]] | ||
Revision as of 23:04, 20 September 2020
| This is a documentation subpage for Template:Infobox museum. It contains usage information, categories and other content that is not part of the original template page. |
| This template adds an automatically generated short descriptionTemplate:Spacewhen Type includes one of: Museum / Hall / Gallery / Center. |
| This template uses Lua: |
Contents
Usage
Copy a blank version to use. All fields must be lowercase.
Template:Parameter names example
{{Infobox museum
| name =
| native_name =
| native_name_lang =
| logo =
| logo_upright =
| logo_alt =
| logo_caption =
| image =
| image_size =
| image_upright =
| alt =
| caption =
| map_type =
| map_relief =
| map_size =
| map_caption =
| map_dot_label =
| coordinates = <!-- {{coord|LAT|LON|display=inline,title}} -->
| former_name = <!-- or |former_names= -->
| established = <!-- {{start date|YYYY|MM|DD|df=y}} -->
| dissolved = <!-- {{end date|YYYY|MM|DD|df=y}} -->
| location =
| type =
| accreditation =
| key_holdings =
| collections =
| collection_size =
| visitors =
| founder =
| executive_director =
| leader_type =
| leader =
| director =
| president =
| ceo =
| chairperson =
| curator =
| architect =
| historian =
| owner =
| employees =
| publictransit =
| parking = <!-- or |car_park= -->
| website = <!-- {{URL|example.com}} -->
| network =
| embedded = <!-- or |nrhp= -->
}}
Embedding other templates
The embedded parameter is used for embedding other templates into this infobox (see Wikipedia:Infobox modules).
{{Infobox museum
| name =
| <!-- etc. -->
| embedded =
{{Infobox NRHP
| embed = yes <!-- or child=yes or subbox=yes-->
| <!-- etc. -->
}}
}}
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 map templates
Example: USA Alabama. - map_relief
- Set this to
yor 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]] - car_park
- The nearest car park
Example: On site (no charge) - parking
- Same as car park, but instead renders the label as "parking" 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
yesif 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 be turned off by setting
|mapframe=no - Either another type of map has not been set, or
|mapframe=yesis 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
- 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
yesto 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.
P17for Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P17),P131for Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P131)). Default: museum - mapframe-switcher – set to
autoorgeomasksorzoomsto enable Template:Switcher-style switching between multiple mapframes. Default: not specifiedauto– switch geomasks found in Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P276) and Lua error in Module:Wd at line 196: 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: museum
- Can also be set to
blankto 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" to "18", to 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
Microformat
TemplateData
TemplateData for Infobox museum
An infobox for museums
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the museum
| Line | suggested |
| Native name | native_name | Name of the museum in the local language, if different | Line | optional |
| Native name language | native_name_lang | The language of the native name | Line | optional |
| Logo | logo | Logo or graphic by which the museum is identified
| File | suggested |
| Logo upright | logo_upright | Logo scaling factor | Number | optional |
| Logo alt text | logo_alt | Alt text for the logo, for people who can't see the image | Unknown | optional |
| Logo caption | logo_caption | The caption for the logo | String | optional |
| Image | image | An image of the museum
| File | suggested |
| Image upright | image_upright | Scaling factor for the image | Number | optional |
| Image caption | caption | A caption for the image | String | optional |
| Image alt text | alt | Alt text for image, for people who can't see the image | String | optional |
| Map type | map_type pushpin_map | The name of the map template used to construct location map, see [[Template:Location map#Available map templates]]
| Line | suggested |
| Map caption | map_caption | Text displayed below the map image, if latitude and longitude are used
| Line | optional |
| Map size | map_size | Specify a pixel width for the map image
| Number | optional |
| Show map relief | map_relief pushpin_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]] | Boolean | optional |
| Former name | former_name | Previous name(s) | Line | suggested |
| Established | established | Date of establishment, using {{Start date}}
| Template | suggested |
| Dissolved | dissolved | If defunct, date the museum was dissolved. Use {{End date}}
| Template | optional |
| Location | location | Location of the museum
| Line | suggested |
| Coordinates | coordinates | Alternative to other coordinates parameters, taking {{Coord}} as a single value
| Template | optional |
| Type | type | Type of museum, most likely Art museum, Science museum, Children's museum or similar
| Line | suggested |
| Accreditation | accreditation | no description
| Line | optional |
| Key holdings | key_holdings | Important holdings
| Line | optional |
| Collections | collections | The types of collections held by the museum
| String | optional |
| Collection size | collection_size collection size collection | Number of objects
| Number | optional |
| Visitors | visitors | Number of visitors
| Line | optional |
| Founder | founder | The museum's founder
| Line | optional |
| Executive director | executive_director executive director | The museum's executive director | Line | optional |
| Director | director | The museum's director | Line | optional |
| President | president | The museum's president | Line | optional |
| CEO | ceo | The museum's chief executive officer | Line | optional |
| Chairperson | chairperson | The museum's chair | Line | optional |
| Curator | curator | The curator of the museum | Line | optional |
| Architect | architect | The architect of the museum | Line | optional |
| Historian | historian | The historian of the museum | Unknown | optional |
| Owner | owner | The owner of the museum
| Line | optional |
| Employees | employees | no description | Unknown | optional |
| Public transport | publictransit | The nearest public transport stop
| Line | optional |
| Parking | parking | The nearest car park
| Line | optional |
| Car park | car_park | Same as car park, but instead renders the label as "parking" for [[WP:ENGVAR]] purposes | Line | optional |
| Website | website | Official or primary website operated by the museum. Use the template {{URL}}.
| Template | suggested |
| Network | network | If the museum is part of a museum network, specify the network name to invoke one of the [https://en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=Infobox+museum&namespace=10 network templates] | Line | optional |
| Nrhp | nrhp | no description | Unknown | optional |
| Embedded | embedded | no description | Unknown | optional |
Tracking category
Template:Organization infoboxes