Template:Infobox person/doc: Difference between revisions
Add <div> wrapper around usage section, same as Infobox Biography, Actor, etc. Also updated intro. |
add parameter section to describe usage |
||
Line 21: | Line 21: | ||
| residence = |
| residence = |
||
| other_names = |
| other_names = |
||
| |
| known_for = |
||
| employer = |
| employer = |
||
| occupation = |
| occupation = |
||
Line 39: | Line 39: | ||
| children = |
| children = |
||
| parents = |
| parents = |
||
| |
| relatives = |
||
| signature = |
|||
| website = |
| website = |
||
| footnotes = |
| footnotes = |
||
}}</pre> |
}}</pre> |
||
</div> |
</div> |
||
==Parameters== |
|||
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 describe why the person is notable. Any parameters left blank or omitted will not be displayed. |
|||
{| class="wikitable" |
|||
! style="text-align: left" | Parameter |
|||
! style="text-align: left" | Explanation |
|||
|- |
|||
| '''name''' |
|||
| Name of person (defaults to article name if left blank). |
|||
|- |
|||
| '''image''' |
|||
| Image name: abc.jpg, xpz.png, 123.gif, etc. |
|||
|- |
|||
| '''imagesize''' |
|||
| Image width (defaults to 225px if empty or omitted). |
|||
|- |
|||
| '''caption''' |
|||
| Caption for image, if needed. Try to include date of photo and the photographer. |
|||
|- |
|||
| '''birth_name''' |
|||
| Name at birth, if different from '''name'''. |
|||
|- |
|||
| '''birth_date''' |
|||
| Date of birth: <nowiki>[[April 15]], [[1930]] or {{birth date and age|1930|1|15}} (if living) or {{birth date|1930|1|15}} (if dead).</nowiki> |
|||
|- |
|||
| '''birth_place''' |
|||
| Place of birth: city, state, country (or other location info, depending on local usage). |
|||
|- |
|||
| '''death_date''' |
|||
| Date of death: <nowiki>[[October 9]], [[1995]] or {{death date and age|1995|10|9|1930|1|15}} (assuming birth_date in prior example).</nowiki> |
|||
|- |
|||
| '''death_place''' |
|||
| Place of death: city, state, country (or other location info, depending on local usage). |
|||
|- |
|||
| '''death_cause''' |
|||
| Cause of death. |
|||
|- |
|||
| '''residence''' |
|||
| Location where the person resides, if notable. |
|||
|- |
|||
| '''other_names''' |
|||
| Other notable names for the person, if different from '''name''' and '''birth_name'''. |
|||
|- |
|||
| '''known_for'''</br>(or '''known''') |
|||
| Field labeled "Known for:", a brief description of why the person is notable. |
|||
|- |
|||
| '''employer''' |
|||
| Employer. |
|||
|- |
|||
| '''occupation''' |
|||
| Occupation. |
|||
|- |
|||
| '''title''' |
|||
| Multiple uses: |
|||
* Formal title, such as ''First Lady of Japan'' for [[Akie Abe]]. |
|||
* Awarded title, such at ''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 (mathematician)|Bill Parry]] |
|||
|- |
|||
| '''salary''' |
|||
| Annual salary or compensation. |
|||
|- |
|||
| '''networth''' |
|||
| Current estimated net worth. |
|||
|- |
|||
| '''height''' |
|||
| If person was notable for their height. |
|||
|- |
|||
| '''weight''' |
|||
| If used, this should also include the date. |
|||
|- |
|||
| '''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''' |
|||
| Field labeled '''Political party'''. |
|||
|- |
|||
| '''boards''' |
|||
| Field labeled '''Boards on'''. (No infoboxes using this parameter as of June 14, 2007.) |
|||
|- |
|||
| '''religion''' |
|||
| Field labeled '''Religious belief'''. |
|||
|- |
|||
| '''spouse''' |
|||
| Name of the spouse(s), followed by years of marriage. Use the format ''Name (1950-present)'' for current spouse and ''Name (1970-1999)'' for former spouse(s). Separate entries with a line break (<nowiki><br/></nowiki>). |
|||
|- |
|||
| '''partner''' |
|||
| Use same format as '''spouse'''. |
|||
|- |
|||
| '''children''' |
|||
| Number of children (i.e. 3), or list of names if notable. Separate entries with a line break (<nowiki><br/></nowiki>). |
|||
|- |
|||
| '''parents''' |
|||
| Names of parents, if notable. Separate entries with a line break (<nowiki><br/></nowiki>). |
|||
|- |
|||
| '''relatives'''<br/>(or '''relations''') |
|||
| Names of siblings or other relatives, if notable. Include the relationship in parentheses after the name (sister, uncle, etc). Separate entries with a line break (<nowiki><br/></nowiki>). |
|||
|- |
|||
| '''signature''' |
|||
| An image of the person's signature. Image is displayed at a width of 128px, same format as {{tl|Infobox Writer}}, {{tl|Infobox Officeholder}} and {{tl|Infobox Philosopher}}. |
|||
|- |
|||
| '''website''' |
|||
| Official website only. Unofficial websites should be placed under <nowiki>==External links==</nowiki> in the body of the article. |
|||
|- |
|||
| '''footnotes''' |
|||
| Notes about any of the infobox data. |
|||
|} |
|||
==Microformats== |
==Microformats== |
Revision as of 06:21, 14 June 2007
Template:Template doc page viewed directly Infobox Person may be used to summarize information about a person.
Also consider using one of the more specific templates such as {{Infobox actor}}, {{Infobox Officeholder}}, {{Infobox Military Person}}, etc. A list of some of these is available at Wikipedia:WikiProject Biography/Infoboxes; others not listed there can be found in Category:People infobox templates.
Usage
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.
{{Infobox Person | name = | image = | imagesize = | caption = | birth_name = | birth_date = | birth_place = | death_date = | death_place = | death_cause = | residence = | other_names = | known_for = | employer = | occupation = | title = | salary = | networth = | height = | weight = | term = | predecessor = | successor = | party = | boards = | religion = | spouse = | partner = | children = | parents = | relatives = | signature = | website = | footnotes = }}
Parameters
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 describe why the person is notable. Any parameters left blank or omitted will not be displayed.
Parameter | Explanation |
---|---|
name | Name of person (defaults to article name if left blank). |
image | Image name: abc.jpg, xpz.png, 123.gif, etc. |
imagesize | Image width (defaults to 225px if empty or omitted). |
caption | Caption for image, if needed. Try to include date of photo and the photographer. |
birth_name | Name at birth, if different from name. |
birth_date | Date of birth: [[April 15]], [[1930]] or {{birth date and age|1930|1|15}} (if living) or {{birth date|1930|1|15}} (if dead). |
birth_place | Place of birth: city, state, country (or other location info, depending on local usage). |
death_date | Date of death: [[October 9]], [[1995]] or {{death date and age|1995|10|9|1930|1|15}} (assuming birth_date in prior example). |
death_place | Place of death: city, state, country (or other location info, depending on local usage). |
death_cause | Cause of death. |
residence | Location where the person resides, if notable. |
other_names | Other notable names for the person, if different from name and birth_name. |
known_for (or known) |
Field labeled "Known for:", a brief description of why the person is notable. |
employer | Employer. |
occupation | Occupation. |
title | Multiple uses:
|
salary | Annual salary or compensation. |
networth | Current estimated net worth. |
height | If person was notable for their height. |
weight | If used, this should also include the date. |
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 | Field labeled Political party. |
boards | Field labeled Boards on. (No infoboxes using this parameter as of June 14, 2007.) |
religion | Field labeled Religious belief. |
spouse | Name of the spouse(s), followed by years of marriage. Use the format Name (1950-present) for current spouse and Name (1970-1999) for former spouse(s). Separate entries with a line break (<br/>). |
partner | Use same format as spouse. |
children | Number of children (i.e. 3), or list of names if notable. Separate entries with a line break (<br/>). |
parents | Names of parents, if notable. Separate entries with a line break (<br/>). |
relatives (or relations) |
Names of siblings or other relatives, if notable. Include the relationship in parentheses after the name (sister, uncle, etc). Separate entries with a line break (<br/>). |
signature | An image of the person's signature. Image is displayed at a width of 128px, same format as {{Infobox Writer}}, {{Infobox Officeholder}} and {{Infobox Philosopher}}. |
website | Official website only. Unofficial websites should be placed under ==External links== in the body of the article. |
footnotes | Notes about any of the infobox data. |
Microformats
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
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
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.