Jump to content

Template:Infobox song/doc

From Wikibooks, open books for an open world


{{Infobox person}} may be used to summarize information about a particular person, usually at the top of an article.

The infobox may be added by pasting the template as shown below into an article and then filling in the desired fields. Any parameters left blank or omitted will not be displayed.

Blank template with basic parameters

[edit source]
{{Infobox song
| title        = 
| artists      =
| image       = <!-- just the filename, without the File: or Image: prefix or enclosing [[brackets]] -->
| alt         = 
| caption     = 
| release_date  = 
| recorded = 
| studio = 
| genre = 
| length   = 
| label  = 
}}

Blank template with all parameters

[edit source]
{{Infobox song
| title                      = 
| artists               = 
| image                     = <!-- just the name, without the File: or Image: prefix or enclosing [[brackets]] -->
| image_size                = 
| alt                       = 
| caption                   = 
| release_date                = <!-- {{Start date|YYYY|MM|DD}} -->
| record_date                = <!-- {{Start date|YYYY|MM|DD}} -->
| studio                     =
| genre                      =
| length                     =
| label                      =

}}

Parameters

[edit source]

Do not use all these parameters for any one person. The list is long to cover a wide range of people. Only use those parameters that convey essential or notable information about the subject. Any parameters left blank or omitted will not be displayed. If a data field has more than one parameter name which can be used, the preferred name is listed first in bold print.

Parameter Explanation
honorific_prefix To appear on the line above the person's name
name Common name of person (defaults to article name if left blank; provide birth_name (below) if different from name).
honorific_suffix To appear on the line below the person's name
native_name The person's name in their own language, if different.
native_name_lang ISO 639-2 code e.g. "fre" or "fra" for French. If more than one, use {{lang}} in |native_name= instead.
image Image name: abc.jpg, xpz.png, 123.gif, etc. If an image is desired but not available, one may add "yes" to the "needs-photo" section of a WikiProject banner. If no image is available yet, do not use an image placeholder.
image_size
(imagesize)
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 Alt text for image, for visually impaired readers.
caption Caption for image, if needed. Try to include date of photo and the photographer.
birth_name Name at birth; only use if different from name.
birth_date Date of birth: {{birth date and age}} (if living) or {{birth date}} (if dead). See Template:Birth date and age/doc for details on usage. If only a year of birth is known, or age as of a certain date, consider using {{birth year and age}} or {{birth based on age as of date}}.
birth_place Place of birth: city, administrative region, sovereign state. Use the name of the birthplace at the time of birth, e.g.: Saigon (prior to 1976), Ho Chi Minh City (post 1976). Do not use a flag icon.
disappeared_date (For missing people) Date of disappearance: {{disappeared date and age}} (if birth date is known) or {{disappeared date}} (if birth date unknown).
disappeared_place (For missing people) Place of disappearance: city, administrative region, sovereign state. Do not use a flag icon.
disappeared_status (For missing people) Current status for the person, e.g. if the person is still regarded as missing (using {{missing for}} to calculate the time since disappearance), or if the person has been declared dead in absentia, with a date for such a ruling.
death_date Date of death: {{death date and age}} (if birth date is known) or {{death date}} (if birth date unknown). See Template:Death date/doc for details on usage. If exact dates are unknown, consider using {{death year and age}}.
death_place Place of death: city, administrative region, sovereign state. Note: Do not use a flag icon. Use the name of the deathplace at the time of death, e.g.: Saigon (prior to 1976), Ho Chi Minh City (post 1976)
death_cause Cause of death.
body_discovered Place where the body was discovered (if different from place of death). Do not use a flag icon.
resting_place Place of burial, ash-scattering, etc. Do not use a flag icon.
resting_place_coordinates Coordinates for place of burial, ash-scattering etc. Use {{coord}} template.
monuments Significant monuments erected, buildings named, etc., in honor of the subject. If many, link to an appropriate section of the article instead.
residence Location(s) where the person notably resides/resided, if different from birthplace. Do not use a flag icon.
nationality Nationality. May be used instead of citizenship (below) or vice versa in cases where any confusion could result. Should only be used with citizenship when they somehow differ. Should only be used if nationality cannot be inferred from the birthplace. Do not use a flag icon.
other_names Other notable names for the person, if different from name and birth_name.
ethnicity Ethnicity. Please be sure to support with a citation from a reliable source.
citizenship Country of legal citizenship, if different from nationality. Rarely needed. See usage notes for nationality above. Should only be used if citizenship cannot be inferred from the birthplace. Do not use a flag icon.
education Education, e.g. degree, institution and graduation year, if relevant. If very little information is available o relevant, the |alma_mater= parameter may be more appropriate.
alma_mater Alma mater. This parameter is a more concise alternative to |education=, and will most often simply consist of the linked name of the last-attended higher education institution. It is usually not relevant to include either parameter for non-graduates, but discussion page consensus may conclude otherwise.
occupation Occupation(s) as given in the lead.
years_active Date range in years during which the subject was active in their principal occupation(s) and/or other activity for which they are notable. Use the format 1950–2000, or 1970–present if still active (note the use of an en dash, not hyphen). If no dates of birth and/or death are known for the subject, only a floruit date range, as is common with ancient subjects, this parameter can be used for it. If approximate (circa) dates are known for either or both, put them in the birth_date and death_date parameters.
employer Employer(s), if relevant.
organization Non-employing organization(s), if relevant.
agent The subject's agent (individual and/or agency), if relevant.
known_for
(known)
A brief description of why the person is notable.
notable_works Title(s) of notable work(s) (publications, compositions, sculptures, films, etc.) by the subject, if any.
style The style in which the subject works, if applicable.
influences People who were influences of the subject. Clear and notable examples only. Can also be used to indicate groups, schools of thought, etc. (but beware supposition).
influenced People who were influenced by the subject. Clear and notable examples only. Can also be used to indicate groups, schools of thought, etc. (but beware grandiose claims and supposition).
home_town The place where the person was raised and matured, if different from birthplace and residence.
salary Annual salary or compensation, if relevant.
net_worth Current estimated net worth, if relevant. Please be sure to support with a citation from a reliable source.
height If person was notable for their height, or if height is relevant. If used, this should also include the year of the measurement if the person had not reached full adulthood when this stat was published.
weight If person was notable for their weight, or if weight is relevant. If used, this should also include the year of the measurement.
television Television programmes presented by or closely associated with the subject.
title Multiple uses:
  • Formal title, such as First Lady of Japan for Akie Abe.
  • Awarded title, such as Mr. Olympia for Arnold Schwarzenegger.
  • Job title, such as President of Calvin College for Anthony Diekema.
  • A combination of the above, such as Professor of Mathematics and Fellow of the Royal Society for Bill Parry

See also "awards" parameter, below, for awarded honors that are not really titles. A single award should not use both parameters.

term Years the person held the title listed above.
predecessor Person who previously held the title listed above.
successor Person who subsequently held the title listed above.
party If relevant. Field labelled Political party.
movement If relevant; non party-political.
opponents Notable relevant opponents (e.g. for major political office).
boards For board of directors membership(s), if relevant. Field labeled Board member of.
religion If relevant. Please be sure to support with a citation from a reliable source.
denomination Denomination of religion, if relevant. Please be sure to support with a citation from a reliable source.
criminal_charge
criminal_penalty
criminal_status
For convicted criminals only. Please be certain to support these parameters with citations from reliable sources.
spouse Name of spouse, followed by years of marriage. Use the format Name (1950–present) for current spouse and Name (1970–1999) for former spouse(s); for convenience, consider using {{marriage}}. Separate entries using {{Plainlist}} or {{Unbulleted list}}. For deceased persons still married at time of death, close the date range with death year.
partner For unmarried life partners (of any gender or sexual preference), not business partners. Use the format Name (1950–present) for current partner and Name (1970–1999) for former partner(s).
children Number of children (i.e. 3), or list of names if notable, in which case, separate entries using {{Plainlist}} or {{Unbulleted list}}.
parents Names of parents, if notable. Separate entries using {{Plainlist}} or {{Unbulleted list}}.
relatives
(relations)
Names of siblings or other relatives, if notable. Include the relationship in parentheses after the name (sister, uncle, etc.). Separate entries using {{Plainlist}} or {{Unbulleted list}}.
callsign Amateur radio call sign, if relevant.
awards Notable awards. If many, link to an appropriate section of the article instead. See also "title" parameter, above, for awarded titles. A single award should not use both parameters.
signature An image of the person's signature.
signature_alt Alt text for the signature image. For example, for File:Thomas Jefferson Signature.svg, the alt text might be |signature_alt="Th: Jefferson", spelling out the signature exactly as it appears in the image.
signature_size Default is 150px. If necessary, a signature can be resized manually as per the "image_size" parameter.
module
module2
module3
module4
module5
module6
Used for embedding other infoboxes into this one.
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 is misconfigured and requires it. Use camel case capitalization to make multiword domain names easier to read.
footnotes Notes about any of the infobox data.
box_width The infobox width, such as: box_width=220px (default: 22em). A space character between the number and the unit of measurement breaks the parameter. This parameter should not normally need to be set.

Examples

[edit source]
Bill Gates
Bill Gates at the World Economic Forum in Davos, 2007
BornOctober 28, 1955 (1955-10-28) (age 69)
Seattle, Washington, USA
ResidenceMedina, Washington
NationalityAmerican
Alma materHarvard University (dropped out in 1975)
OccupationChairman of Microsoft (non-executive)
Co-chair of Bill & Melinda Gates Foundation
Director of Berkshire Hathaway
CEO of Cascade Investment
Net worthincreaseUS$53 billion (2010)[1]
SpouseMelinda Gates (since 1994)
Children3
ParentsWilliam H. Gates, Sr.
Mary Maxwell Gates
Signature
Website
microsoft.com/presspass/exec/billg
{{Infobox person
| name              = Bill Gates
| image             = Bill Gates in WEF, 2007.jpg
| caption           = Bill Gates at the World Economic Forum in Davos, 2007
| birth_date        = {{birth date and age|1955|10|28}}
| birth_place       = Seattle, Washington, USA
| nationality       = American
| occupation        = Chairman of Microsoft (non-executive)<br />Co-chair of Bill & Melinda Gates Foundation<br />Director of Berkshire Hathaway<br />CEO of Cascade Investment
| networth          = {{increase}}US$53 billion (2010)<ref>[http://billionaires.forbes.com/topic/Bill_Gates Bill Gates topic page.] Forbes.com. Retrieved April 2010.</ref>
| spouse            = Melinda Gates (since 1994)
| children          = 3
| residence         = Medina, Washington
| alma_mater        = Harvard University (dropped out in 1975)
| website           = {{URL|microsoft.com/presspass/exec/billg}}
| signature         = BillGates Signature.svg
| parents           = William H. Gates, Sr.<br />Mary Maxwell Gates
}}

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 w:microformats on Wikimedia projects, 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. (but do not use these if the date is before 1583).

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.


  1. Bill Gates topic page. Forbes.com. Retrieved April 2010.