Template:Infobox military person/doc: Difference between revisions

Remove imported Wikipedia TemplateData metadata
Remove unsupported imported template links from documentation
 
(2 intermediate revisions by the same user not shown)
Line 73: Line 73:
* '''name''' – the full name of the person.
* '''name''' – the full name of the person.
* '''honorific_suffix''' – post-nominal honours such as "OBE"
* '''honorific_suffix''' – post-nominal honours such as "OBE"
* '''image''' – ''optional'' – an image of the person. The image must be given in the form <code><nowiki>Example.jpg</nowiki></code>; an image of a nation's highest award, such as the [[Medal of Honor]] or [[Victoria Cross]], may be displayed for recipients of it, especially as a placeholder.
* '''image''' – ''optional'' – an image of the person. The image must be given in the form <code><nowiki>Example.jpg</nowiki></code>; an image of a nation's highest award, such as the Medal of Honor or Victoria Cross, may be displayed for recipients of it, especially as a placeholder.
* '''image_upright''' – ''optional'' – See WP:UPRIGHT
* '''image_upright''' – ''optional'' – Use a relative scaling factor.
* '''image_size''' – ''optional'' – the size of the image in px. Give the number without the px suffix (for example, ''220'' rather than ''220px''). {{para|image_upright}} is preferred.
* '''image_size''' – ''optional'' – the size of the image in px. Give the number without the px suffix (for example, ''220'' rather than ''220px''). {{para|image_upright}} is preferred.
* '''alt''' Alt text, if used, must be placed here.
* '''alt''' Alt text, if used, must be placed here.
* '''caption''' – ''optional'' – the text to be placed below the image.
* '''caption''' – ''optional'' – the text to be placed below the image.
* '''native_name''' – the person's name in their own language
* '''native_name''' – the person's name in their own language
* '''native_name_lang''' – [[List of ISO 639-2 codes|ISO 639-2 code]] e.g. "fre" or "fra" for French. If more than one, use {{Tl|lang}} for {{Para|native_name}} instead
* '''native_name_lang''' – ISO 639-2 code e.g. "fre" or "fra" for French. If more than one, use {{Tl|lang}} for {{Para|native_name}} instead
* '''birth_name''' – ''optional'' – the name the person was born with, if different from that used later in life.
* '''birth_name''' – ''optional'' – the name the person was born with, if different from that used later in life.
* '''other_name''' – ''optional'' – other names by which the person was known.
* '''other_name''' – ''optional'' – other names by which the person was known.
Line 100: Line 100:
* '''rank''' – ''optional'' – the highest rank achieved by the person. The rank being awarded posthumously, may be noted. In cases where the person held different ranks in different armies, multiple ranks should be specified with dates and country noted for each. Separate multiple entries using {{Tl|Plainlist}}.
* '''rank''' – ''optional'' – the highest rank achieved by the person. The rank being awarded posthumously, may be noted. In cases where the person held different ranks in different armies, multiple ranks should be specified with dates and country noted for each. Separate multiple entries using {{Tl|Plainlist}}.
* '''rank_label''' – ''optional'' – the label to use for the '''rank''' field (above); defaults to "Rank".  
* '''rank_label''' – ''optional'' – the label to use for the '''rank''' field (above); defaults to "Rank".  
* '''service number''' – ''optional'' – the [[service number]] held by the individual during military service. Do not supply for living persons unless published by secondary sources such as the ''[[London Gazette]]''.
* '''service number''' – ''optional'' – the service number held by the individual during military service. Do not supply for living persons unless published by secondary sources such as the ''London Gazette''.
* '''unit''' – ''optional'' – for persons who are not notable as commanding officers, the unit (company, battalion, regiment, etc.) in which they served. This should be omitted if the commands are specified (as below).
* '''unit''' – ''optional'' – for persons who are not notable as commanding officers, the unit (company, battalion, regiment, etc.) in which they served. This should be omitted if the commands are specified (as below).
* '''commands''' – ''optional'' – for persons who are notable as commanding officers, the units they commanded. Dates should be given if multiple notable commands were held. Separate multiple entries using {{Tl|Plainlist}}.
* '''commands''' – ''optional'' – for persons who are notable as commanding officers, the units they commanded. Dates should be given if multiple notable commands were held. Separate multiple entries using {{Tl|Plainlist}}.
* '''known_for''' or '''known''' – ''optional'' – for other areas of notability such as war crimes or notable orders.
* '''known_for''' or '''known''' – ''optional'' – for other areas of notability such as war crimes or notable orders.
* '''battles''' – ''optional'' – any notable battles or wars in which the person participated. This should be omitted if a {{tl|Campaignbox}} is used in conjunction with this template. Separate multiple entries using {{Tl|Plainlist}}.
* '''battles''' – ''optional'' – any notable battles or wars in which the person participated. This should be omitted if a <code>Template:Campaignbox</code> is used in conjunction with this template. Separate multiple entries using {{Tl|Plainlist}}.
* '''battles_label''' – ''optional'' – the label to use for the '''battles''' field (above); defaults to "Battles/wars".  
* '''battles_label''' – ''optional'' – the label to use for the '''battles''' field (above); defaults to "Battles/wars".  
* '''awards''' – ''optional'' – any ''notable'' awards or decorations the person received; exhaustive lists should be worked into the prose. Separate multiple entries using {{Tl|Plainlist}}.
* '''awards''' – ''optional'' – any ''notable'' awards or decorations the person received; exhaustive lists should be worked into the prose. Separate multiple entries using {{Tl|Plainlist}}.
Line 120: Line 120:


=== Lists ===
=== Lists ===
For parameters such as {{para|awards}}, {{para|unit}} or {{para|commands}}, which take lists of values, unbulleted or bulleted lists may be preferable. See [[MOS:VLIST]].
For parameters such as {{para|awards}}, {{para|unit}} or {{para|commands}}, which take lists of values, unbulleted or bulleted lists may be preferable.


'''Unbulleted lists''' can be created with {{tl|plainlist}} or {{tl|ublist}}. The use of {{tag|br|s}} is common but {{dcr|semantically incorrect.}} See [[MOS:NOBR]].
'''Unbulleted lists''' can be created with {{tl|plainlist}} or <code>Template:Ublist</code>. The use of {{tag|br|s}} is common but is not recommended for structured lists.


{{markup|<nowiki>awards = {{plainlist|
{{markup|<nowiki>awards = {{plainlist|
Line 169: Line 169:


=== Embedding ===
=== Embedding ===
Many military people and uniformed officers in other services are known primarily for something other than their military service (e.g. [[Douglas Fairbanks Jr.]], [[Vivek Murthy]], or [[James Stewart]]), and hence it may be desirable to merge this infobox with another one, like {{tl|Infobox person}}. By adding {{para|embed|yes}} to the first line of the infobox code, one can embed this infobox into another, displaying one continuous infobox.
Many military people and uniformed officers in other services are known primarily for something other than their military service (e.g. Douglas Fairbanks Jr., Vivek Murthy, or James Stewart), and hence it may be desirable to merge this infobox with another one, like {{tl|Infobox person}}. By adding {{para|embed|yes}} to the first line of the infobox code, one can embed this infobox into another, displaying one continuous infobox.


Though the process is a little complicated, it is possible to insert this infobox into most if not all other infoboxes. For {{tl|Infobox person}}, this infobox is passed as a "module" using the {{para|module}} syntax. The title for the embedded section can be changed using {{para|embed_title}}.
Though the process is a little complicated, it is possible to insert this infobox into most if not all other infoboxes. For {{tl|Infobox person}}, this infobox is passed as a "module" using the {{para|module}} syntax. The title for the embedded section can be changed using {{para|embed_title}}.
Line 215: Line 215:


=== Example ===
=== Example ===
'''Templates demonstrated:''' {{tl|birth date}}, {{tl|death date and age}}, {{tl|plainlist}}, {{tl|tree list}}, {{tl|tree list/end}}, and {{tl|ublist}}.
'''Templates demonstrated:''' {{tl|birth date}}, {{tl|death date and age}}, {{tl|plainlist}}, {{tl|tree list}}, {{tl|tree list/end}}, and <code>Template:Ublist</code>.
{{Infobox military person
{{Infobox military person
  |width_style        = person
  |width_style        = person
Line 224: Line 224:
  |nickname          = "Lip"
  |nickname          = "Lip"
  |birth_date        = {{birth date|1920|01|30}}
  |birth_date        = {{birth date|1920|01|30}}
  |birth_place        = [[Huntington, West Virginia]]
  |birth_place        = Huntington, West Virginia
  |death_date        = {{death date and age|2001|12|16|1920|01|30}}
  |death_date        = {{death date and age|2001|12|16|1920|01|30}}
  |death_place        = [[Pinehurst, North Carolina]]
  |death_place        = Pinehurst, North Carolina
  |allegiance        = United States
  |allegiance        = United States
  |branch_label      = Branch
  |branch_label      = Branch
Line 232: Line 232:
  |serviceyears_label = Service&nbsp;years
  |serviceyears_label = Service&nbsp;years
  |serviceyears      = 1942–1945
  |serviceyears      = 1942–1945
  |rank              = [[First lieutenant (United States)|First lieutenant]]
  |rank              = First lieutenant
  |unit              = {{plainlist|
  |unit              = {{plainlist|
* [[E Company, 506th Infantry Regiment (United States)|Easy Company]],
* Easy Company,
* [[506th Infantry Regiment (United States)|506th Infantry Regiment]],
* 506th Infantry Regiment,
* [[101st Airborne Division]]}}
* 101st Airborne Division}}
  |battles_label      = Conflict
  |battles_label      = Conflict
  |battles            = {{tree list}}
  |battles            = {{tree list}}
* World War II
* World War II
** [[American airborne landings in Normandy|Normandy landings]]
** Normandy landings
** [[Operation Market Garden|''Market Garden'']]
** ''Market Garden''
** [[Battle of the Bulge]]
** Battle of the Bulge
{{tree list/end}}
{{tree list/end}}
  |awards            = {{unbulleted list|[[Bronze Star]] (2)|[[Purple Heart]] (3)}}
  |awards            = {{unbulleted list|Bronze Star (2)|Purple Heart (3)}}
  |otherwork          = Glass executive
  |otherwork          = Glass executive
}}
}}
Line 257: Line 257:
  |nickname          = "Lip"
  |nickname          = "Lip"
  |birth_date        = {{birth date|1920|01|30}}
  |birth_date        = {{birth date|1920|01|30}}
  |birth_place        = [[Huntington, West Virginia]]
  |birth_place        = Huntington, West Virginia
  |death_date        = {{death date and age|2001|12|16|1920|01|30}}
  |death_date        = {{death date and age|2001|12|16|1920|01|30}}
  |death_place        = [[Pinehurst, North Carolina]]
  |death_place        = Pinehurst, North Carolina
  |allegiance        = United States
  |allegiance        = United States
  |branch_label      = Branch
  |branch_label      = Branch
Line 265: Line 265:
  |serviceyears_label = Service&nbsp;years
  |serviceyears_label = Service&nbsp;years
  |serviceyears      = 1942–1945
  |serviceyears      = 1942–1945
  |rank              = [[First lieutenant (United States)|First lieutenant]]
  |rank              = First lieutenant
  |unit              = {{plainlist|
  |unit              = {{plainlist|
* [[E Company, 506th Infantry Regiment (United States)|Easy Company]],
* Easy Company,
* [[506th Infantry Regiment (United States)|506th Infantry Regiment]],
* 506th Infantry Regiment,
* [[101st Airborne Division]]}}
* 101st Airborne Division}}
  |battles_label      = Conflict
  |battles_label      = Conflict
  |battles            = {{tree list}}
  |battles            = {{tree list}}
* World War II
* World War II
** [[American airborne landings in Normandy|Normandy landings]]
** Normandy landings
** [[Operation Market Garden|''Market Garden'']]
** ''Market Garden''
** [[Battle of the Bulge]]
** Battle of the Bulge
{{tree list/end}}
{{tree list/end}}
  |awards            = {{unbulleted list|[[Bronze Star]] (2)|[[Purple Heart]] (3)}}
  |awards            = {{unbulleted list|Bronze Star (2)|Purple Heart (3)}}
  |otherwork          = Glass executive
  |otherwork          = Glass executive
}}
}}
Line 295: Line 295:
--><includeonly>{{Sandbox other||
--><includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Military infobox templates|Person]]
 
[[Category:People and person infobox templates|Military person]]
[[Category:People and person infobox templates|Military person]]
[[Category:Biographical templates usable as a module|Military person]]
 
[[Category:Infobox templates with module parameter|Military person]]
 
[[Category:Templates that add a tracking category|{{PAGENAME}}]]
 
}}</includeonly> <noinclude>
}}</includeonly> <noinclude>
[[Category:WikiProject Military history template instructions|Military person infobox]]
 
</noinclude>
</noinclude>