Template:Infobox artist

From Our Best Story Bible Notes
Jump to navigation Jump to search

Template:Infobox person{{#if:|}}

50px Template documentation[view] [edit] [history] [purge]

{{#ifeq:infobox artist |doc

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Infobox artist
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

{{#ifeq:Template|Template

| {{#if: |
     }}{{#ifeq:Infobox artist|Infobox artist |}}}}
{{#switch:Infobox artist
 |sandbox |testcases |doc= 
 |#default = {{#switch:
 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Template
   | template
   | other
   }}
 }}

| template =

| other | #default = {{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Module
   | module
   | other
   }}
 }}

| module =

| other | #default = Template:Category other

}}

}}

 }}

{{Infobox artist}} may be used in an article about a person who is an artist.

Usage[edit source]

The infobox may be added by pasting the template as shown below into an article.

Template:Infobox person{{#if:|}}{{#switch:

 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default = }}{{#switch:

 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default = }}{{#switch:

 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default = }}

{{Infobox artist
| honorific_prefix = 
| name             = <!-- include middle initial, if not specified in birth_name -->
| honorific_suffix = 
| image            = <!-- use the image's pagename; do not include the "File:" or "Image:" prefix, and do not use brackets-->
| image_size       = 
| alt              = 
| caption          = 
| native_name      = 
| native_name_lang = 
| birth_name       = <!-- only use if different from name -->
| birth_date       = <!-- {{Birth date and age|YYYY|MM|DD}} for living artists, {{Birth date|YYYY|MM|DD}} for dead. For living people supply only the year unless the exact date is already WIDELY published, as per [[WP:DOB]]. Treat such cases as if only the year is known, so use {{birth year and age|YYYY}} or a similar option. -->
| birth_place      = 
| baptised         = <!-- will not display if birth_date is entered -->
| death_date       = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} --> 
| death_place      = 
| resting_place    = 
| resting_place_coordinates = <!-- {{Coord|LAT|LONG|type:landmark|display=inline}} -->
| nationality      = 
| education        = 
| alma_mater       = 
| known_for        = 
| notable_works    = 
| style            = 
| movement         = 
| spouse           = 
| partner          = 
| children         =
| parents          = 
| father           = 
| mother           = 
| relatives        = 
| family           = 
| awards           = <!-- {{awd|award|year|title|role|name}} (optional) -->
| elected          = 
| patrons          = 
| memorials        = 
| website          = <!-- {{URL|Example.com}} -->
| module           = 
}}

Parameters[edit source]

Parameter Description
honorific_prefix Displayed on the line above the person's name (title, e.g. "Sir", "Lord")
name Commonly-known name of person (defaults to article name, without disambiguation)
honorific_suffix Displayed on the line below the person's name (initials like "OBE", "FRSA")
image * A picture of or including the person. Use file name only, without the brackets and File: or Image: prefix (abc.jpg, xyz.png, etc.)
image_size * Size to display image: 200px (set width), x300px (set height), or 200x300px (max width & max height). This defaults to frameless (default is 220px, but logged in users can change this by clicking on "my preferences" and adjusting thumbnail size) if empty or omitted. This parameter should not normally need to be set.
alt * Alternative text for image, for visually impaired readers (see WP:ALT)
caption * Caption to accompany image. If a (portrait) photograph of the person, try to include date of photo and photographer's name.
native_name Name in the person's native language. If more than one, separate using {{plainlist}}.
native_name_lang ISO 639-1 two-letter code for person's native language (e.g. "fr" for French). If more than one, use {{lang}} in |{{SAFESUBST:#if:native_name|native_name=}} instead.
birth_name Name at birth, if different from name
birth_date Date of birth. If the person is living, use {{Birth date and age}}, {{Birth-date and age}}, or {{Birth year and age}}. If deceased, use {{Birth date}} or {{Birth-date}}. Use plain text for partial dates.
Example: {{Birth date and age|1950|8|26}} if born August 26, 1950
Example: {{Birth date and age|df=yes|1950|8|26}} to display birth date as 26 August 1950
birth_place Place of birth (town/city, state/province, country)
death_date Date of death. If the date of birth is known, use {{Death date and age}}, {{Death-date and age}}, or {{Death year and age}}. Otherwise, use {{Death date}} or {{Death-date}}. Use plain text for partial dates.
Example: {{Death date and age|1993|2|24|1950|8|26}} if died February 24, 1993 and born August 26, 1950
Example: {{Death date and age|df=yes|1993|2|24|1941|4|12}} to display death date as 24 February 1993
death_place Place of death (town/city, state/province, country)
death_cause Cause of death. Should be clearly defined and sourced, and should only be included when the cause of death has significance for the subject's notability, e.g. James Dean, John Lennon.
resting_place Place of burial, ash-scattering, etc.
resting_place_coordinates Precise coordinates for place of burial, ash-scattering etc. Use {{coord}} template.
nationality Nationality of the person. Do not use a flag template.
education Where or with whom the artist trained
alma_mater The linked name of attended higher education institution(s). See Alma mater
known_for Main fields in which the artist works (i.e. photography, painting, sculpture, drawing, ceramics, graphic design)
notable_works Famous/significant/representative works. Works with their own articles should take priority (please limit to 5 at most)
style Artistic style which the artist employs
movement Artistic movement or school with which artist is associated.
spouse Name of spouse, if notable
partner Name of unmarried domestic partner, if notable
children Name of children, if any
awards Any awards the artist has won. Consider using the template: {{awd|award|year|title|role|name}}
elected Bodies to which the artist has been elected member
patrons Patrons of the artist
memorials Monuments, plaques, entities named after the subject, etc.
website Official website only. Unofficial websites should be placed under ==External links== in the body of the article. Use {{URL}} as in {{URL|Example.com}}. Do not include the www. part unless the server requires it. Use camel case capitalization to make multiword domain names easier to read.
module Used for embedding other templates into this infobox (see below for more details).

* Only used if the {{{image}}} parameter used.

Embedding other templates via module parameter[edit source]

The module parameter is used for embedding other templates into this infobox (see Wikipedia:Infobox modules and Category:Biographical templates usable as a module).

{{Infobox artist
| name = 
| <!-- etc. -->
| module = 
  {{Infobox football biography | embed = yes
  | <!-- etc. -->
  }}
}}

Example[edit source]

Template:Infobox person{{#if:|}}

{{Infobox artist
| name             = Salvador Dalí
| image            = Salvador Dalí 1939.jpg
| caption          = Dalí in 1939 (photo by [[Carl Van Vechten]])
| birth_name       = Salvador Domingo Felipe Jacinto Dalí i Domènech
| birth_date       = {{birth date|1904|5|11}}
| birth_place      = [[Figueres]], [[Catalonia]], Spain
| death_date       = {{death date and age|1989|01|23|1904|05|11}}
| death_place      = Figueres, Catalonia, Spain
| resting_place    = Crypt at [[Dalí Theatre and Museum]], Figueres, Spain
| nationality      = Spanish
| education        = [[Real Academia de Bellas Artes de San Fernando|San Fernando School of Fine Arts]], [[Madrid]], Spain
| known_for        = Painting, drawing, photography, sculpture, writing, film
| notable_works    = {{unbulleted list
  | ''[[The Persistence of Memory]]'' (1931)
  | ''[[Soft Construction with Boiled Beans (Premonition of Civil War)]]'' (1936)
  | ''[[Swans Reflecting Elephants]]'' (1937)
  | ''[[Dream Caused by the Flight of a Bee Around a Pomegranate a Second Before Awakening]]'' (1944)
  | ''[[The Temptation of St. Anthony (Dalí)|The Temptation of St. Anthony]]'' (1946)
  }}
| movement         = [[Cubism]], [[Dada]], [[Surrealism]]
| spouse           = [[Gala Dalí]] (Elena Ivanovna Diakonova)
}}

Microformat[edit source]

The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates[edit source]

Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.

To include a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes[edit source]

hCard uses HTML classes including:

  • adr
  • agent
  • bday
  • birthplace
  • category
  • country-name
  • deathdate
  • deathplace
  • extended-address
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • n
  • nickname
  • note
  • org
  • role
  • url
  • vcard

Please do not rename or remove these classes nor collapse nested elements which use them.{{#ifeq:Infobox artist|doc | |{{#ifeq:Infobox artist|sandbox | |}} }}

Tracking categories[edit source]

See also[edit source]

TemplateData[edit source]

style="background: #{{#switch:
 {{#if: 
{{{demospace}}} main other
   }} 
 }}
main = F0F2F5 other #default = CCFFCC }}; font-size:87%; padding:0.2em 0.3em; text-align:{{safesubst:#if:|left|{{safesubst:#if:|left|center}}}}; {{safesubst:#if:|color: {{{fc}}};|}}" |
TemplateData documentation used by VisualEditor and other tools

{{safesubst:#if:

- The following is a closed discussion. Template:Strongbad }}
{{#if:1|{{#switch:
=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CInfobox+artist%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|no|C|c}}lick here] to see a monthly parameter usage report for {{#if:|[[Template:]]|this template}}{{#ifeq:{{safesubst:#switch: {{{based}}}

no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|yes| based on {{#if:|its|this}} TemplateData}}.

none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CInfobox+artist%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: {{{based}}}

no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|yes| based on {{#if:|its|this}} TemplateData}}

For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CInfobox+artist%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|no|P|p}}arameter usage report] for {{#if:|[[Template:]]|Template:Infobox artist}}{{#ifeq:{{safesubst:#switch: {{{based}}}

no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|yes| based on {{#if:|its|this}} TemplateData}}.

#default=[1]{{#ifeq:{{safesubst:#switch: {{{based}}} no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|yes| based on {{#if:|its|this}} TemplateData}} }}|This is the {{#if:|TemplateData|TemplateData}} for this template used by TemplateWizard, VisualEditor and other tools. {{#switch:

=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CInfobox+artist%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|no|C|c}}lick here] to see a monthly parameter usage report for {{#if:|[[Template:]]|this template}}{{#ifeq:{{safesubst:#switch: y

no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|yes| based on {{#if:|its|this}} TemplateData}}.

none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CInfobox+artist%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y

no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|yes| based on {{#if:|its|this}} TemplateData}}

For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CInfobox+artist%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|no|P|p}}arameter usage report] for {{#if:|[[Template:]]|Template:Infobox artist}}{{#ifeq:{{safesubst:#switch: y

no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|yes| based on {{#if:|its|this}} TemplateData}}.

#default=[2]{{#ifeq:{{safesubst:#switch: y no n f false off 0 = no = no ¬ = no yes y t true on 1 = yes #default = no

}}|yes| based on {{#if:|its|this}} TemplateData}} }}}}

TemplateData for Infobox artist

{{#switch:
 {{#if:
{{{demospace}}} Template template other
   }}
 }}
sandbox|1}}{{#ifeq:Infobox artist|doc|1}}

}}

other #default =

}} <templatedata> { "description": "An infobox for artists", "format": "Template:\n\n", "params": { "honorific_prefix": { "label": "Honorific prefix", "description": "Title such as 'Sir', 'Lord'", "type": "wiki-page-name", "required": false }, "name": { "label": "Name", "description": "Commonly-known name of person (defaults to article name, without disambiguation)", "type": "string/line", "default": "PAGENAME", "required": false }, "honorific_suffix": { "label": "Honorific suffix", "description": "Initials such as 'OBE', 'FRSA'", "type": "wiki-page-name", "required": false }, "image": { "label": "Image", "description": "Filename for the image (e.g. 'Example.jpg').", "type": "wiki-file-name", "required": false }, "image_size": { "label": "Image size", "description": "Size of the image (e.g. '220px').", "type": "string/line", "default": "varies", "required": false, "aliases": [ "imagesize" ] }, "alt": { "label": "Alternative text", "description": "Alternative text for the image.", "type": "string/line", "required": false }, "caption": { "label": "Caption", "description": "Caption for the image.", "type": "string", "required": false }, "birth_name": { "label": "Birth name", "description": "Name at birth, if different from 'name'.", "type": "string", "required": false, "aliases": [ "birthname" ] }, "birth_date": { "label": "Birth date", "description": "Date of birth. Use Template:Birth date and age (for living artists) or ({{{year}}}-{{#if:{{{month}}}

{{#switch:{{{month}}} jan=1 feb=2 mar=3 april=4 may=5 jun=6 jul=7 aug=8 sep|sept=9 oct=10 nov=11 dec=12 {{#ifexpr:{{{month}}}<0 {{#ifexpr:(({{{month}}})round 0)!=({{{month}}}) {{#expr:12-(((0.5-({{{month}}}))round 0)mod 12)}} {{#expr:12-(((11.5-({{{month}}}))round 0)mod 12)}}
  }}
{{#expr:(((10.5+{{{month}}})round 0)mod 12)+1}}
 }}
}}
Missing required parameter 1=month!

}}-{{{day}}}){{#if:

{{#switch:{{#if:{{{month}}} {{#switch:{{{month}}} jan=1 feb=2 mar=3 april=4 may=5 jun=6 jul=7 aug=8 sep|sept=9 oct=10 nov=11 dec=12 {{#ifexpr:{{{month}}}<0 {{#ifexpr:(({{{month}}})round 0)!=({{{month}}}) {{#expr:12-(((0.5-({{{month}}}))round 0)mod 12)}} {{#expr:12-(((11.5-({{{month}}}))round 0)mod 12)}}
  }}
{{#expr:(((10.5+{{{month}}})round 0)mod 12)+1}}
 }}
}}
Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}}

{{#switch:{{#if:{{{month}}} {{#switch:{{{month}}} jan=1 feb=2 mar=3 april=4 may=5 jun=6 jul=7 aug=8 sep|sept=9 oct=10 nov=11 dec=12 {{#ifexpr:{{{month}}}<0 {{#ifexpr:(({{{month}}})round 0)!=({{{month}}}) {{#expr:12-(((0.5-({{{month}}}))round 0)mod 12)}} {{#expr:12-(((11.5-({{{month}}}))round 0)mod 12)}}
  }}
{{#expr:(((10.5+{{{month}}})round 0)mod 12)+1}}
 }}
}}
Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} {{#expr:{{{day}}}}}, }} {{#expr:{{{year}}}}}{{#ifexpr: ( {{{year}}} > 2023 )

Template:Error{{#switch:
 {{#if: 
{{{demospace}}} main other
   }} 
 }}
main = other #default =

}} }}{{#if:|{{#ifexpr: ( {{{month}}} > 12 ) OR ( {{{month}}} < 1 )

Template:Error{{#switch:
 {{#if: 
{{{demospace}}} main other
   }} 
 }}
main = other #default =

}}|}} }}{{#if:|{{#ifexpr: ( {{{day}}} > 31 ) OR ( {{{day}}} < 1 )

Template:Error{{#switch:
 {{#if: 
{{{demospace}}} main other
   }} 
 }}
main = other #default =

}}|}} }}{{#ifeq: 10 | 0

{{#if: Script error: No such module "wd". {{#if: {{#if: Script error: No such module "wd".
     }}
   }}
 }}

}} for the deceased.", "type": "string/line", "required": false }, "birth_place": { "label": "Birth place", "description": "Place of birth.", "type": "string/line", "required": false }, "baptised": { "label": "Baptised", "description": "| Date of baptism, will not display if birth_date is entered.", "type": "string/line", "required": false }, "death_date": { "label": "Death date", "description": "Date of death. Use Error: Need valid death date (first date): year, month, day. Use Template:Death date if birth date unknown or incomplete.", "type": "string/line", "required": false }, "death_place": { "label": "Death place", "description": "Place of death.", "type": "string/line", "required": false }, "resting_place": { "label": "Resting place", "description": "Artist's grave, etc.", "type": "string/line", "required": false }, "resting_place_coordinates": { "label": "Resting place", "description": "Coordinates of grave, etc. Use Template:Coord", "type": "string/line", "required": false }, "nationality": { "label": "Nationality", "description": "Nationality.", "type": "string/line", "required": false }, "education": { "label": "Education", "description": "Where or with whom the artist trained.", "type": "string/line", "required": false }, "alma_mater": { "label": "Alma mater", "description": "The linked name of attended higher education institution(s).", "type": "string/line", "required": false }, "known_for": { "label": "Known for", "description": "Main field(s) in which the artist works or worked (e.g. photography, painting, drawing, etc.).", "type": "string/line", "required": false }, "notable_works": { "label": "Notable work(s)", "description": "Famous/significant/representative works. Please limit to five works.", "type": "string/line", "required": false }, "style": { "label": "Style", "description": "Artistic style which the artist employs.", "type": "string/line", "required": false }, "movement": { "label": "Movement", "description": "Artistic movement or school with which artist is associated.", "type": "string/line", "required": false }, "spouse": { "label": "Spouse(s)", "description": "Spouse(s), if notable.", "type": "string/line", "required": false }, "partner": { "label": "Partner(s)", "description": "Domestic partner(s), if notable.", "type": "string/line", "required": false },

       "children": {

"label": "Children", "description": "Children, if any.", "type": "string/line", "required": false }, "awards": { "label": "Awards", "description": "Awards won by the artist. Consider using Template:Awd.", "type": "string/line", "required": false }, "elected": { "label": "Elected bodies", "description": "Bodies to which the artist has been elected.", "type": "string/line", "required": false }, "patrons": { "label": "Patron(s)", "description": "Patrons of the artist.", "type": "string/line", "required": false }, "memorials": { "label": "Memorial(s)", "description": "Monuments, plaques, entities named after the subject, etc.", "type": "string/line", "required": false }, "website": { "label": "Official website", "description": "Artist's official website. Consider using Template:URL.", "type": "string/line", "required": false } } } </templatedata>

{{#if:{{#ifeq:Infobox|sandbox|1}}{{#ifeq:Infobox artist|doc|1}}||

{{#switch:

 {{#if:
 | {{#if:{{#titleparts:{{{page}}}|0|3}}
   | subsubpage    
   | {{#if:{{#titleparts:{{{page}}}|0|2}}
     | subpage
     | basepage
     }}
   }}
 | {{#if:{{#titleparts:Template:Infobox artist|0|3}}
   | subsubpage    
   | {{#if:{{#titleparts:Template:Infobox artist|0|2}}
     | subpage
     | basepage
     }}
   }}
 }}

| basepage = Warning: Default sort key "Artist" overrides earlier default sort key "Infobox artist".

| subpage = | subsubpage = }} }}