Template:Infobox museum: Difference between revisions
(add executive director parameter) |
Vivaporius (talk | contribs) m (1 revision imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#invoke:Type in location|main|{{{type|}}}|{{{location|}}}|check-patterns = [Mm]useum;[Hh]all;[Gg]allery;[Cc]enter}}{{Infobox |
|||
{{Infobox |
|||
⚫ | |||
| bodyclass = vcard |
| bodyclass = vcard |
||
Line 5: | Line 6: | ||
| titleclass = fn org |
| titleclass = fn org |
||
| title = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}} |
| title = {{#if:{{{name|}}}|{{{name}}}|{{#ifeq:{{{embed|}}}|yes||{{PAGENAMEBASE}}}}}} |
||
| subheader = {{#if:{{{native_name|}}}|< |
| subheader = {{#if:{{{native_name|}}}|<div class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</div>}} |
||
| image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|sizedefault=frameless|maxsize=300|upright={{{logo_upright|1}}}|alt={{{logo_alt|}}}}} |
| image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|sizedefault=frameless|maxsize=300|size={{{logo_size|}}}|upright={{{logo_upright|1}}}|alt={{{logo_alt|}}}}} |
||
| caption1 = {{{logo_caption|}}} |
| caption1 = {{{logo_caption|}}} |
||
Line 16: | Line 17: | ||
| image3 = {{#if:{{{pushpin_map|{{{map_type|}}}}}}|{{Location map|{{{pushpin_map|{{{map_type}}}}}} |
| image3 = {{#if:{{{pushpin_map|{{{map_type|}}}}}}|{{Location map|{{{pushpin_map|{{{map_type}}}}}} |
||
| border = infobox |
| border = infobox |
||
| caption = {{# |
| caption = {{#switch:{{{map_caption|}}}|#default={{{map_caption}}}|none=|=Location within {{#invoke:Location map|data|{{{pushpin_map|{{{map_type}}}}}}|name}}}} |
||
| float = center |
| float = center |
||
| alt = {{{map_alt|}}} |
| alt = {{{map_alt|}}} |
||
Line 25: | Line 26: | ||
}}}} |
}}}} |
||
| image4 = {{#invoke:Infobox mapframe|auto|onByDefault={{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}|no|yes}}|mapframe-marker=museum}} |
|||
| label1 = Former name |
|||
| caption4 = {{#invoke:Infobox mapframe|autocaption|onByDefault={{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}|no|yes}}}} |
|||
⚫ | |||
⚫ | |||
| label1 = {{longitem|Former name{{#if:{{{former_names|}}}|s}}}} |
|||
| label2 = Established |
|||
| |
| class1 = nickname |
||
| data1 = {{if empty|{{{former_names|}}}|{{{former_name|}}}}} |
|||
| label3 = |
| label3 = Established |
||
| data3 = {{{ |
| data3 = {{{established|}}} |
||
| |
| label6 = Dissolved |
||
| |
| data6 = {{{dissolved|}}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
| |
| label9 = Type |
||
| |
| data9 = {{{type|}}} |
||
| |
| label10 = Accreditation |
||
| |
| data10 = {{{accreditation|}}} |
||
| |
| label11 = Key holdings |
||
| |
| data11 = {{{key_holdings|}}} |
||
| label12 = {{#if:{{{collections_type|}}}|{{{collections_type}}}|Collections}} |
|||
| label10 = Collection size |
|||
| |
| data12 = {{{collections|}}} |
||
| |
| label13 = Collection size |
||
| data13 = {{if empty|{{{collection|}}}|{{{collection_size|}}}|{{{collection size|}}}}} |
|||
⚫ | |||
| |
| label14 = Visitors |
||
| |
| data14 = {{{visitors|}}} |
||
⚫ | |||
| |
| label15 = Founder |
||
| |
| data15 = {{{founder|}}} |
||
⚫ | |||
| label14 = Director |
|||
⚫ | |||
⚫ | |||
| label15 = President |
|||
⚫ | |||
| class15 = agent |
| class15 = agent |
||
| label16 = |
| label16 = Executive director |
||
| data16 = {{{ |
| data16 = {{{executive_director|{{{executive director|}}}}}} |
||
| class16 = agent |
| class16 = agent |
||
| label17 = |
| label17 = {{#if:{{{leader_type|}}}|{{{leader_type}}}|Manager}} |
||
| data17 = {{{ |
| data17 = {{{leader|}}} |
||
| class17 = agent |
| class17 = agent |
||
| label18 = |
| label18 = Director |
||
| data18 = {{{ |
| data18 = {{{director|}}} |
||
| class18 = agent |
| class18 = agent |
||
| label19 = |
| label19 = President |
||
| data19 = {{{ |
| data19 = {{{president|}}} |
||
| class19 = agent |
| class19 = agent |
||
| label20 = |
| label20 = CEO |
||
| data20 = {{{ |
| data20 = {{{ceo|}}} |
||
| class20 = agent |
| class20 = agent |
||
| label21 = |
| label21 = Chairperson |
||
| data21 = {{{ |
| data21 = {{{chairperson|}}} |
||
| class21 = agent |
| class21 = agent |
||
| label22 = |
| label22 = Curator |
||
| data22 = {{{ |
| data22 = {{{curator|}}} |
||
⚫ | |||
| label23 = {{#if:{{{architects|}}}|Architects|Architect}} |
|||
| data23 = {{{architects|{{{architect|}}}}}} |
|||
⚫ | |||
| label24 = Historian |
|||
⚫ | |||
⚫ | |||
| label25 = Owner |
|||
⚫ | |||
⚫ | |||
| label26 = Employees |
|||
⚫ | |||
| |
| label27 = Public transit access |
||
| |
| data27 = {{{publictransit|}}} |
||
| |
| label28 = Nearest {{#if:{{{parking|}}}|parking|car park}} |
||
| |
| data28 = {{#if:{{{parking|}}}|{{{parking}}}|{{{car_park|}}}}} |
||
| |
| label29 = Website |
||
| |
| data29 = {{{website|}}} |
||
| |
| header30 = {{#if:{{{network|}}}|{{Infobox museum/{{{network}}} network|header}} }} |
||
| |
| data31 = {{#if:{{{network|}}}|{{Infobox museum/{{{network}}} network|data}} }} |
||
| |
| header32 = {{{nrhp|{{{embedded|}}}}}} |
||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox museum with unsupported parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox museum]] with unknown parameter "_VALUE_"|ignoreblank=y| accreditation | alt | architect | caption | car_park | ceo | chairperson | collection | collection size | collection_size | collections | coordinates | curator | director | dissolved | embedded | employees | established | executive director | executive_director | former_name | founder | historian | image | image_size | imagesize | image_upright | key_holdings | location | logo | logo_alt | logo_caption | logo_upright | map dot label | map_dot_label | map_alt | map_caption | map_relief | map_size | map_type | name | native_name | native_name_lang | network | nrhp | owner | parking | president | publictransit | pushpin_map | pushpin_relief | type | visitors | website }}<noinclude> |
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox museum with unsupported parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox museum]] with unknown parameter "_VALUE_"|ignoreblank=y| accreditation | alt | architect | architects | caption | car_park | ceo | chairperson | leader | leader_type | collection | collection size | collection_size | collections | collections_type | coordinates | curator | director | dissolved | embed | embedded | employees | established | executive director | executive_director | former_name | former_names | founder | historian | image | image_size | imagesize | image_upright | key_holdings | location | logo | logo_size | logo_alt | logo_caption | logo_upright | map dot label | map_dot_label | map_alt | map_caption | map_relief | map_size | map_type | name | native_name | native_name_lang | network | nrhp | owner | parking | president | publictransit | pushpin_map | pushpin_relief | type | visitors | website | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-width | mapframe-frame-height | mapframe-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 }}<noinclude> |
||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
</noinclude> |
Latest revision as of 01:56, 10 May 2022
This template adds an automatically generated short description. |
This template uses Lua: |
Usage[edit]
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}}}|{{{image_size}}}|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}}} |
{{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[edit]
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[edit]
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
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[edit]
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: Template:Infobox mapframe/doc/parameters
Microformat[edit]
TemplateData[edit]
TemplateData for Infobox museum
<templatedata>
{
"params": {
"name": {
"label": "Name",
"description": "Name of the museum",
"example": "Foo Museum of Art",
"type": "line",
"suggested": true
},
"native_name": {
"label": "Native name",
"description": "Name of the museum in the local language, if different",
"type": "line"
},
"native_name_lang": {
"label": "Native name language",
"description": "The language of the native name",
"type": "line"
},
"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 map templates",
"example": "USA Alabama",
"type": "line",
"suggested": true
},
"map_caption": {
"label": "Map caption",
"description": "Text displayed below the map image, if latitude and longitude are used",
"example": "FooTown",
"type": "line"
},
"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)",
"type": "line",
"suggested": true,
"aliases": [
"former_names"
]
},
"established": {
"label": "Established",
"description": "Date of establishment, using ",
"example": "March 31, 1997 ",
"type": "wiki-template-name",
"suggested": true
},
"dissolved": {
"label": "Dissolved",
"description": "If defunct, date the museum was dissolved. Use ",
"example": "December 31, 2007 ",
"type": "wiki-template-name"
},
"location": {
"label": "Location",
"description": "Location of the museum",
"example": "National Mall, Washington D.C., US",
"type": "line",
"suggested": true
},
"coordinates": {
"label": "Coordinates",
"description": "Alternative to other coordinates parameters, taking as a single value",
"example": "Coordinates: ",
"type": "wiki-template-name"
},
"type": {
"label": "Type",
"description": "Type of museum, most likely Art museum, Science museum, Children's museum or similar",
"example": "Art museum",
"type": "line",
"suggested": true
},
"accreditation": {
"label": "Accreditation",
"example": "American Alliance of Museums",
"type": "line"
},
"key_holdings": {
"label": "Key holdings",
"description": "Important holdings",
"example": "Flaming June",
"type": "line"
},
"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)",
"type": "line"
},
"founder": {
"label": "Founder",
"description": "The museum's founder",
"example": "Harold Saxon",
"type": "line"
},
"director": {
"label": "Director",
"description": "The museum's director",
"type": "line"
},
"executive_director": {
"label": "Executive director",
"description": "The museum's executive director",
"type": "line",
"aliases": [
"executive director"
]
},
"president": {
"label": "President",
"description": "The museum's president",
"type": "line"
},
"ceo": {
"label": "CEO",
"description": "The museum's chief executive officer",
"type": "line"
},
"chairperson": {
"label": "Chairperson",
"description": "The museum's chair",
"type": "line"
},
"curator": {
"label": "Curator",
"description": "The curator of the museum",
"type": "line"
},
"architect": {
"label": "Architect",
"description": "The architect of the museum",
"type": "line"
},
"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",
"type": "line"
},
"employees": {
"label": "employees",
"type": "string"
},
"publictransit": {
"label": "Public transport",
"description": "The nearest public transport stop",
"example": "Roosevelt Station, Chicago Transit Authority",
"type": "line"
},
"parking": {
"label": "Parking",
"description": "The nearest parking",
"example": "On site (no charge)",
"type": "line"
},
"car_park": {
"label": "Car park",
"description": "Same as parking, but instead renders the label as \"car park\" for WP:ENGVAR purposes",
"type": "line"
},
"website": {
"label": "Website",
"description": "Official or primary website operated by the museum. Use the template {{URL|example.com|optional display text}}
.",
"example": "example