Difference between revisions of "Template:Infobox police officer"

From blackwiki
Jump to navigation Jump to search
imported>Jay D. Easy
m
imported>Jonesey95
(rm unsupported parameter (not supported by infobox person))
 
(One intermediate revision by one other user not shown)
Line 39: Line 39:
 
| notable_works      = {{{works|{{{notable_works|}}}}}}
 
| notable_works      = {{{works|{{{notable_works|}}}}}}
 
| style              =  
 
| style              =  
| home_town          =
 
| salary            =
 
 
| net_worth          =  
 
| net_worth          =  
 
| height            =  
 
| height            =  
| weight            =
 
 
| television        =  
 
| television        =  
 
| title              =  
 
| title              =  
Line 63: Line 60:
 
| callsign          =  
 
| callsign          =  
 
| awards            =  
 
| awards            =  
| module            = {{#if:{{{status|{{{currentstatus|}}}}}}{{{department|}}}{{{branch|}}}{{{badge|{{{badgenumber|}}}}}}{{{shield|{{{shieldnumber|}}}}}}{{{allegiance|}}}{{{service_label|}}}{{{country|{{{service|}}}}}}{{{years|{{{serviceyears|}}}}}}{{{rank|}}}{{{memorials|}}}{{{batch|}}}{{{cadre|}}}|{{Infobox|child=yes|decat=yes
+
| module            = {{#if:{{{status|{{{currentstatus|}}}}}}{{{department|}}}{{{branch|{{{branch_label|}}}}}}{{{badge|{{{badgenumber|}}}}}}{{{shield|{{{shieldnumber|}}}}}}{{{allegiance|}}}{{{service_label|}}}{{{country|{{{service|}}}}}}{{{years|{{{serviceyears|}}}}}}{{{rank|}}}{{{memorials|}}}{{{batch|}}}{{{cadre|}}}|{{Infobox|child=yes|decat=yes
 
| title              = {{#if:{{{embed_title|}}}|'''{{{embed_title|}}}'''|'''Police career'''}}
 
| title              = {{#if:{{{embed_title|}}}|'''{{{embed_title|}}}'''|'''Police career'''}}
 
| label1            = {{#if:{{{service_label|}}}|{{{service_label|}}}|Country}}
 
| label1            = {{#if:{{{service_label|}}}|{{{service_label|}}}|Country}}
Line 72: Line 69:
 
| label3            = Department
 
| label3            = Department
 
|  data3            = {{{department|}}}
 
|  data3            = {{{department|}}}
| label4            = Branch
+
| label4            = {{#if:{{{branch_label|}}}|{{{branch_label|}}}|Branch}}
 
|  data4            = {{{branch|}}}
 
|  data4            = {{{branch|}}}
 
| label5            = Service years
 
| label5            = Service years
Line 106: Line 103:
 
| footnotes          =  
 
| footnotes          =  
 
| nocat_wdimage      = {{{nocat_wdimage|}}}
 
| nocat_wdimage      = {{{nocat_wdimage|}}}
}}{{#invoke:Check for unknown parameters | check | ignoreblank = y | unknown = {{Main other|[[Category:Pages using infobox police officer with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview = Page using [[Template:Infobox police officer]] with unknown parameter "_VALUE_" | embed | embed_title | child | honorific prefix | honorific_prefix | name | honorific suffix | honorific_suffix | image | upright | image_upright | image_size | alt | caption | native_name | native_name_lang | birth_date | birth_name | birth_place | death_date | death_place | death_cause | resting_place | rest_coord | resting_place_coordinates | nationality | nickname | other_names | education | almamater | alma_mater | known | known_for | works | notable_works | spouse | relations | relatives | awards | status | currentstatus | branch | department | badge | badgenumber | allegiance | service_label | country | service | years | serviceyears | rank | memorials | shield | shieldnumber | otherwork | laterwork | batch | cadre | module | url | website | nocat_wdimage
+
}}{{#invoke:Check for unknown parameters | check | ignoreblank = y | unknown = {{Main other|[[Category:Pages using infobox police officer with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview = Page using [[Template:Infobox police officer]] with unknown parameter "_VALUE_" | embed | embed_title | child | honorific prefix | honorific_prefix | name | honorific suffix | honorific_suffix | image | upright | image_upright | image_size | alt | caption | native_name | native_name_lang | birth_date | birth_name | birth_place | death_date | death_place | death_cause | resting_place | rest_coord | resting_place_coordinates | nationality | nickname | other_names | education | almamater | alma_mater | known | known_for | works | notable_works | spouse | relations | relatives | awards | status | currentstatus | branch | branch_label | department | badge | badgenumber | allegiance | service_label | country | service | years | serviceyears | rank | memorials | shield | shieldnumber | otherwork | laterwork | batch | cadre | module | url | website | nocat_wdimage
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}<!-- Add categories to the /doc subpage, not here! -->
 
{{documentation}}<!-- Add categories to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 03:29, 1 February 2021

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Template:Person infobox header Template:Uses Infobox person

Template:Tracks Wikidata

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 module= parameter in the parent infobox and child=yes in this infobox.

Usage

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

Template: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 89)
Brooklyn, New York City, U.S.
Other namesPaco, SerpicoPolice careerDepartmentNew York Police DepartmentService years1959–1972StatusRetiredRankDetectiveBadge no.5566Shield no.761AwardsNYPD Medal of HonorOther workLecturer [[Category:Infobox templates|Template:Remove first word]][[Category:Infobox templates|Template:Remove first word]]
{{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

Template:UF-hcard-person

Tracking categories