Template:Infobox museum/doc: Difference between revisions
en>Ɱ (add, not in cat) |
Sharkdonia (talk | contribs) (Created page with "<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> ==Usage== Copy a blank version to use. All fields '''''must''''' be lowercase. {| class="wikitable" |- width="50%" s...") |
||
Line 1: | Line 1: | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
==Usage== | |||
== Usage == | |||
Copy a blank version to use. All fields '''''must''''' be [[lowercase]]. | Copy a blank version to use. All fields '''''must''''' be [[lowercase]]. | ||
{ | {| class="wikitable" | ||
|- width="50%" style="vertical-align:top;" | |||
! Vertical list !! | |||
|- width="50%" style="vertical-align:top;" | |||
| style="vertical-align:top; padding:1ex;" |<pre>{{Infobox museum | |||
| name = | | name = | ||
| native_name = | | native_name = | ||
| native_name_lang = | | native_name_lang = | ||
| image = | | image = | ||
| | | imagesize = | ||
| caption = | |||
| alt = | | alt = | ||
| map_type = | | map_type = | ||
| map_relief = | | map_relief = | ||
| map_size = | | map_size = | ||
| map_caption = | | map_caption = | ||
| coordinates = | | map_dot_label = | ||
| latitude = | |||
| longitude = | |||
| lat_deg = | |||
| lat_min = | |||
| lat_sec = | |||
| lat_dir = | |||
| lon_deg = | |||
| lon_min = | |||
| lon_sec = | |||
| lon_dir = | |||
| coordinates_type = | |||
| coordinates_region = | |||
| coordinates_format = | |||
| coordinates_display = | |||
| coordinates = | |||
| former_name = | | former_name = | ||
| established = <!-- {{Start date|YYYY|MM|DD|df=y}} --> | | established = <!-- {{Start date|YYYY|MM|DD|df=y}} --> | ||
Line 37: | Line 46: | ||
| visitors = | | visitors = | ||
| founder = | | founder = | ||
| director = | | director = | ||
| president = | | president = | ||
| chairperson = | |||
| chairperson = | |||
| curator = | | curator = | ||
| historian = | |||
| historian = | |||
| owner = | | owner = | ||
| publictransit = | | publictransit = | ||
Line 55: | Line 59: | ||
| embedded = | | embedded = | ||
}}</pre> | }}</pre> | ||
|} | |||
== | ==Description of fields== | ||
Note that the examples below are presented in wikicode and do not necessarily reflect actual statistics. | Note that the examples below are presented in wikicode and do not necessarily reflect actual statistics. | ||
; name : Name of the museum <br /> Example: Foo Museum of Art | ; name : Name of the museum <br /> Example: Foo Museum of Art | ||
; native_name : Name of the museum in the local language, if different | ; native_name : Name of the museum in the local language, if different | ||
; native_name_lang : [[List of ISO 639-2 codes|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 {{tl|lang}}, instead. | ; native_name_lang : [[List of ISO 639-2 codes|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 {{tl|lang}}, instead. | ||
; | ; image : Logo or graphic by which the museum is identified, omitting the [[Help:Link|wikilink brackets]] and the "file:" or "image:" [[Help:Namespace|namespace]] <br />Example: Louvre.jpg | ||
; | ; imagesize : Size of the logo or graphic; the default size is 200px | ||
; | |||
; caption : Image caption | ; caption : Image caption | ||
; alt : [[WP:ALT|Alt text]] for image, for people who can't see the image | ; alt : [[WP:ALT|Alt text]] for image, for people who can't see the image | ||
; 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 | ; map_size : Specify a pixel width for the map image. The default is 250. <br /> Example: <code>map_size=220</code> (not <code>map_size=220px</code>). | ||
; map_caption : Text displayed below the map image | ; map_caption : Text displayed below the map image, if latitude and longitude are used <br /> Example: FooTown | ||
; coordinates : | ; map_dot_label : Text displayed next to the dot on the map | ||
; latitude : The [[latitude]] coordinate of the museum <br /> Example: 51.45 <br /> For DMS coordinates, use '''lat_deg''', '''lat_min''', '''lat_sec''', and '''lat_dir'''. | |||
; longitude : The [[longitude]] coordinate of the museum <br /> Example: -2.5813 <br /> For DMS coordinates, use '''lon_deg''', '''lon_min''', '''lon_sec''', and '''lon_dir'''. | |||
; coordinates_type : A list of coordinate parameters passed to {{tl|coord}}, such as ''region:GB_type:landmark_dim:100_source:enwiki-osgb36(NM423315)''. In most cases this list should at least include ''type:landmark''. The default is simply ''type:landmark''. | |||
; coordinates_region : The [[ISO 3166-1 alpha-2]] or [[ISO 3166-2]] code, e.g. {{para|coordinates_region|GB}} or {{para|coordinates_region|US-NY}} | |||
; coordinates_format : | |||
; coordinates_display : Usually <code>inline,title</code>, otherwise <code>inline</code> | |||
; coordinates : An alternative, taking {{Tl|Coord}} as a single value | |||
; former_name : Previous name(s) | ; former_name : Previous name(s) | ||
; established : Date of the museum's [[wikt:establish|establishment]]. Use {{Tl|Start date}}. <br /> Example: <nowiki>{{Start date|1997|03|31}}</nowiki> | ; established : Date of the museum's [[wikt:establish|establishment]]. Use {{Tl|Start date}}. <br /> Example: <nowiki>{{Start date|1997|03|31}}</nowiki> | ||
; dissolved : If [[wikt:defunct|defunct]], date the museum was dissolved. Use {{Tl|End date}}. <br /> Example: <nowiki>{{ | ; dissolved : If [[wikt:defunct|defunct]], date the museum was dissolved. Use {{Tl|End date}}. <br /> Example: <nowiki>{{Start date|2007|12|31}}</nowiki> | ||
; location : Location of the museum <br /> Example: <nowiki>[[National Mall]], [[Washington D.C.]], [[United States|US]]</nowiki> <br /> Example: <nowiki>[[Moncton]], [[New Brunswick]], [[Canada]]</nowiki> | ; location : Location of the museum <br /> Example: <nowiki>[[National Mall]], [[Washington D.C.]], [[United States|US]]</nowiki> <br /> Example: <nowiki>[[Moncton]], [[New Brunswick]], [[Canada]]</nowiki> | ||
; type : [[:Category:Types of museum|Type of museum]], most likely ''Art museum'', ''Science museum'', ''Children's museum | ; type : [[:Category:Types of museum|Type of museum]], most likely ''Art museum'', ''Science museum'', ''Children's museum'' 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 <br /> Example: <nowiki>[[Flaming June]]</nowiki> <br /> | ; key_holdings : Key holdings <br /> Example: <nowiki>[[Flaming June]]</nowiki> <br /> | ||
Line 100: | Line 93: | ||
; visitors : Number of visitors <br /> Example: 417,096 (2005) | ; visitors : Number of visitors <br /> Example: 417,096 (2005) | ||
; founder : The museum's founder <br /> <nowiki> Example: [[Harold Saxon]]</nowiki> | ; founder : The museum's founder <br /> <nowiki> Example: [[Harold Saxon]]</nowiki> | ||
; director : The museum's director <br /> <nowiki> Example: [[Harold Saxon]]</nowiki> | ; director : The museum's director <br /> <nowiki> Example: [[Harold Saxon]]</nowiki> | ||
; president : Alternative to "director" above | ; president : Alternative to "director" above | ||
; curator : The [[curator]] of the museum <br /> <nowiki> Example: [[John Smith]]</nowiki> | ; curator : The [[curator]] of the museum <br /> <nowiki> Example: [[John Smith]]</nowiki> | ||
; | ; assistant curator : The [[assistant curator]] 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> | ||
; 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 | ||
; 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 [http://en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=Infobox+museum&namespace=10 network templates]. | ||
; website : Official or primary website operated by the museum. Use the template {{tl|URL}}. <br /> Example: <nowiki>{{URL|example.org}}</nowiki> | ; website : Official or primary website operated by the museum. Use the template {{tl|URL}}. <br /> Example: <nowiki>{{URL|example.org}}</nowiki> | ||
; | ; embedded : Enter <code>yes</code> if this template is used as a module (sub-template) of another infobox. | ||
==Microformat== | ==Microformat== | ||
{{UF-hcard-geo}} | {{UF-hcard-geo}} | ||
== | == See also == | ||
{{Organization infoboxes}} | {{Organization infoboxes}} | ||
{{Buildings and structures infobox templates}} | {{Buildings and structures infobox templates}} | ||
Line 448: | Line 117: | ||
[[Category:Buildings and structures infobox templates|Museum]] | [[Category:Buildings and structures infobox templates|Museum]] | ||
[[Category:Organization infobox templates|Museum]] | [[Category:Organization infobox templates|Museum]] | ||
[[Category:WikiProject Museums templates]] | [[Category:WikiProject Museums templates]] | ||
}}</includeonly> | }}</includeonly> |
Revision as of 20:42, 29 January 2020
Usage
Copy a blank version to use. All fields must be lowercase.
Vertical list | |
---|---|
{{Infobox museum | name = | native_name = | native_name_lang = | image = | imagesize = | caption = | alt = | map_type = | map_relief = | map_size = | map_caption = | map_dot_label = | latitude = | longitude = | lat_deg = | lat_min = | lat_sec = | lat_dir = | lon_deg = | lon_min = | lon_sec = | lon_dir = | coordinates_type = | coordinates_region = | coordinates_format = | coordinates_display = | coordinates = | former_name = | 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 = | director = | president = | chairperson = | curator = | historian = | owner = | publictransit = | car_park = | parking = | network = | website = <!-- {{URL|example.com}} --> | embedded = }} |
Description of fields
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.
- image
- Logo or graphic by which the museum is identified, omitting the wikilink brackets and the "file:" or "image:" namespace
Example: Louvre.jpg - imagesize
- Size of the logo or graphic; the default size is 200px
- caption
- Image caption
- alt
- Alt text for image, for people who can't see the image
- 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
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 250.
Example:map_size=220
(notmap_size=220px
). - map_caption
- Text displayed below the map image, if latitude and longitude are used
Example: FooTown - map_dot_label
- Text displayed next to the dot on the map
- latitude
- The latitude coordinate of the museum
Example: 51.45
For DMS coordinates, use lat_deg, lat_min, lat_sec, and lat_dir. - longitude
- The longitude coordinate of the museum
Example: -2.5813
For DMS coordinates, use lon_deg, lon_min, lon_sec, and lon_dir. - coordinates_type
- A list of coordinate parameters passed to {{coord}}, such as region:GB_type:landmark_dim:100_source:enwiki-osgb36(NM423315). In most cases this list should at least include type:landmark. The default is simply type:landmark.
- coordinates_region
- The ISO 3166-1 alpha-2 or ISO 3166-2 code, e.g.
|coordinates_region=GB
or|coordinates_region=US-NY
- coordinates_format
- coordinates_display
- Usually
inline,title
, otherwiseinline
- coordinates
- An alternative, taking {{Coord}} as a single value
- 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: {{Start 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 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]] - director
- The museum's director
Example: [[Harold Saxon]] - president
- Alternative to "director" above
- curator
- The curator of the museum
Example: [[John Smith]] - assistant curator
- The assistant curator of the museum
Example: [[John Smith]] - owner
- The owner of the museum
Example: [[Government of the City of Miami]] - 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
- network
- If the museum is part of a museum network, specify the network name to invoke one of the network templates.
- website
- Official or primary website operated by the museum. Use the template {{URL}}.
Example: {{URL|example.org}} - embedded
- Enter
yes
if this template is used as a module (sub-template) of another infobox.
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.
See also