Template:Infobox police officer/doc

From The Global Wiki
< Template:Infobox police officer
Revision as of 14:49, 19 October 2022 by en>Jonesey95 (rm link to deleted cat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Infobox police officer is an infobox for use in articles about notable police officers. If a notable subject is also a police officer, this template can be called from within other templates that are based on {{infobox person}} using the <syntaxhighlight lang="text" class="" id="" style="" inline="1">module=</syntaxhighlight> parameter in the parent infobox and <syntaxhighlight lang="text" class="" id="" style="" inline="1">child=yes</syntaxhighlight> in this infobox.

Usage

Separate multiple values using {{plainlist}} or {{ubl}}, or {{flatlist}} or {{hlist}}.

Script error: No such module "Parameter names example".

{{Infobox police officer
 |honorific_prefix = 
 |name             = 
 |honorific_suffix = <!--{{postnom|country=ISO|size=100%|abbr}}-->
 |image            = 
 |image_upright    = 
 |alt              = 
 |caption          = 
 |birth_name       = 
 |birth_date       = <!--{{birth date and age|YYYY|MM|DD|df=y}}-->
 |birth_place      = 
 |death_date       = <!--{{death date and age|YYYY|MM|DD|yyyy|mm|dd|df=y}}-->
 |death_place      = 
 |resting_place    = 
 |rest_coord       = <!--{{coord|LAT|LON|type:landmark|display=inline,title}}-->
 |other_names      = 
 |education        = 
 |alma_mater       = 
 |known_for        = 
 |notable_works    = 
 |spouse           = 
 |relatives        = 
 |service_label    = 
 |service          = 
 |allegiance       = 
 |department       = 
 |branch           = 
 |serviceyears     = 
 |status           = 
 |rank             = 
 |badge            = 
 |awards           = 
 |memorials        = 
 |otherwork        = 
 |website          = <!--{{URL|example.com}}-->
 |module           = 
}}

Example

Born

Francisco Vincent Serpico


(1936-04-14) April 14, 1936 (age 88)

Brooklyn, New York City, U.S.

Other namesPaco, SerpicoPolice careerDepartmentNew York Police DepartmentService years1959–1972StatusRetiredRankDetectiveBadge no.5566Shield no.761AwardsNYPD Medal of HonorOther workLecturer

{{Infobox police officer
 |name        = Frank Serpico
 |birth_name  = Francisco Vincent Serpico
 |birth_date  = {{birth date and age|1936|04|14}}
 |birth_place = Brooklyn, New York City, U.S.
 |other_names = Paco, Serpico
 |department  = [[New York Police Department]]
 |years       = 1959–1972
 |status      = Retired
 |rank        = Detective
 |badge       = 5566
 |shield      = 761
 |awards      = [[NYPD Medal of Honor]]
 |otherwork   = Lecturer
}}

Parameters

honorific_prefix Honorific prefix(es)
name Subject's name
honorific_suffix {{postnom|country=ISO|size=100%|abbr}}
image Image path
caption Image caption
native_name Use {{plainlist}} or {{ubl}} for multiple entries
native_name_lang ISO 639-2 code, e.g. fr for French
birth_date {{birth date and age}}, or {{birth date}} if deceased
birth_place Where the subject was born
death_date {{death date and age|YYYY|MM|DD|yyyy|mm|dd}}
death_place Where the subject died
resting_place Location of grave, ashes, etc.
rest_coord {{coord|LAT|LON|display=inline,title}}
other_names Other names the subject is known by
education Education
alma_mater College graduated
known_for What the subject is known for
notable_works Notable works authored by subject
spouse Spouse
relatives Family
country Country based in
department Department of subject
allegiance Country or other power the subject served
branch Branch of department
serviceyears Years in the service
status Subject's current status or position
rank Ranks held in the service with dates of promotion
badge Badge number
shield Shield number
awards Awards received
memorials Monument(s) and memorial(s)
otherwork Notable work after leaving the force
website {{URL|example.com}}
module Embedded template

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 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.

Tracking categories