Template:Infobox Gunfighter/doc

From Wikipedia, the free encyclopedia

This is a documentation subpage for Template:Infobox Gunfighter (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

An Infobox Gunfighter may be used to summarize information about a gunfighter. Gunfighters include those who are considered historically notable, such as Wyatt Earp and Doc Holliday.

[edit] Usage

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

{{Infobox Gunfighter
| name              = 
| image             = 
| imagesize         = 
| caption           = 
| birth_date        = 
| birth_place       = 
| death_date        = 
| death_place       = 
| occupation        = 
| years_active      = 
| notable_opponents = 
| spouse            = 
| children          = 
}}

[edit] Parameters

Note: * denotes required fields.

Parameter Explanation
name * Insert name of gunfighter.
image Insert *.jpg image.
imagesize Insert image width (defaults to 220px if empty).
caption Insert photograph caption. Try to include date of photo and the photographer.
birth_date * Insert date of birth: month, day, year.
birth_place Insert place of birth: town, city, country.
death_date Insert date of death: month, day, year.
death_place Insert place of death: town, city, country.
occupation * Insert the gunfighter's occupation.
years_active Insert the gunfighter's active years.
notable_opponents Insert the gunfighter's notable opponents.
spouse Insert the names of the celebrity's spouses, followed by the years of marriage. Use the format: Name (Year[hyphen]Year) [or] (Year-present). Separate entries with a line break (<br />).
children Insert the names of the celebrity's children. Separate entries with a line break (<br />).

[edit] Microformat

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. For more information about the use of microformats on Wikipedia, please see the microformat project.

Date-of-birth ("bday") parameters will only be included in the microformat if {{Birth date}} or {{Birth date and age}} are used in the infobox.

hCard uses HTML classes including:

  • adr
  • bday
  • county-name
  • fn (required)
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • nickname
  • note
  • org
  • role
  • vcard

Please do not rename or remove these classes.