Difference between revisions of "Template:Infobox person/doc"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Zyxw
(moved documentation from template to subpage & sorted usage parameters to match order displayed in infobox)
 
imported>Zyxw
(Add <div> wrapper around usage section, same as Infobox Biography, Actor, etc. Also updated intro.)
Line 2: Line 2:
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
'''Infobox Person''' may be used to summarize information about a person.
 
'''Infobox Person''' may be used to summarize information about a person.
 +
 +
Also consider using one of the more specific templates such as {{tl|Infobox actor}}, {{tl|Infobox Officeholder}}, {{tl|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 ==
 
== Usage ==
This infobox may be added by pasting the template as shown below into 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.
<pre>
+
<div style="width:250px; background:#dddddd; border:1px solid black; padding:0.5em 1em 0.5em 1em;">
{{Infobox Person
+
<pre>{{Infobox Person
 
| name        =  
 
| name        =  
 
| image      =  
 
| image      =  
Line 24: Line 26:
 
| title      =  
 
| title      =  
 
| salary      =  
 
| salary      =  
 +
| networth    =
 +
| height      =
 
| weight      =  
 
| weight      =  
| height      =
 
 
| term        =  
 
| term        =  
 
| predecessor =  
 
| predecessor =  
Line 39: Line 42:
 
| website    =  
 
| website    =  
 
| footnotes  =  
 
| footnotes  =  
}}
+
}}</pre>
</pre>
+
</div>
  
 
==Microformats==
 
==Microformats==

Revision as of 12:30, 12 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       = 
| employer    = 
| occupation  = 
| title       = 
| salary      = 
| networth    = 
| height      = 
| weight      = 
| term        = 
| predecessor = 
| successor   = 
| party       = 
| boards      = 
| religion    = 
| spouse      = 
| partner     = 
| children    = 
| parents     = 
| relations   = 
| website     = 
| footnotes   = 
}}

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.