Template:Infobox military person: Difference between revisions

From Irregularpedia
Jump to navigation Jump to search
m 1 revision imported
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
{{Infobox
{{Infobox
| child        = {{lc:{{{embed}}}}}
| bodyclass    = vcard
| bodyclass    = vcard
| bodystyle    = {{WPMILHIST Infobox style|{{#switch:{{{width_style|}}}|narrow|person|auto=main_box_raw_auto_width|wide|military|#default=main_box_raw}}}}
| bodystyle    = width: 250px; padding: 10px; border: 1px solid #ccc; background-color: #f9f9f9;
 
| subheaderstyle = font-weight:bold;
| subheader    = {{#ifeq:{{lc:{{{embed}}}}}|yes|{{if empty|{{{embed_title|}}}|{{#ifeq:{{{embed_title_large|}}}|yes|<div style="text-align: center; font-size: 125%; line-height: 1.2em; font-weight: bold;">Military career</div>|Military career}}}}}}
| decat        = yes <!-- remove from template:infobox tracking categories -->
 
| above        = {{br separated entries
|1={{#if:{{{honorific prefix|{{{honorific_prefix|}}}}}}|<div class="honorific-prefix" style="font-size: 77%; font-weight: normal;display:inline-block;">{{{honorific prefix|{{{honorific_prefix|}}}}}}</div>}}
|2={{#if:{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}|<div style="display:inline-block" class="fn">{{{name|{{PAGENAMEBASE}}}}}</div>}}
|3={{#if:{{{honorific suffix|{{{honorific_suffix|}}}}}}|<div class="honorific-suffix" style="font-size: 77%; font-weight: normal;display:inline-block;">{{{honorific suffix|{{{honorific_suffix|}}}}}}</div>}}
}}
| abovestyle  = font-size:125%; {{WPMILHIST Infobox style|header_color}}


| image       = {{#if:{{{image|}}}
| above       = {{{name|{{PAGENAMEBASE}}}}}
  |{{#ifeq:{{Str left | {{{image|}}} | 1 }}|[|{{main other|[[Category:Infobox military person image param needs updating]]}}}}{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
| abovestyle  = font-size: 125%; font-weight: bold; text-align: center; margin-bottom: 10px;
  |{{#if:{{{medal|}}}
  |{{#ifeq:{{Str left | {{{medal|}}} | 1 }}|[|{{main other|[[Category:Infobox military person image param needs updating]]}}}}{{#invoke:InfoboxImage|InfoboxImage|image={{{medal|}}}|size={{{medal_size|}}}|sizedefault=frameless|upright={{{medal_upright|0.4}}}|alt={{{medal_alt|}}}|suppressplaceholder=yes}}
  }}
  }}
| imagestyle  = border-bottom: {{WPMILHIST Infobox style|section_border}}; line-height: 1.5em


| image        = {{{image|}}}
| imagestyle  = margin: 0 auto; display: block; width: {{{image_size|200px}}};
| caption      = {{{caption|}}}
| caption      = {{{caption|}}}
| captionstyle = font-size: 100%
| captionstyle = font-size: 90%; text-align: center; margin-top: 5px;
 
| labelstyle  = padding-right: 1em


| label1      = Native name
| label1      = Native name
| data1        = {{#if:{{{native_name|}}}|<div class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</div> }}
| data1        = {{{native_name|}}}


| label2      = Birth name
| label2      = Birth name
| data2        = {{{birth_name|}}}
| data2        = {{{birth_name|}}}
| class2      = nickname


| label3      = Other name(s)
| label3      = Other names
| data3        = {{{other_name|}}}
| data3        = {{{other_name|}}}
| class3      = nickname


| label4      = Nickname(s)
| label4      = Nickname(s)
| data4        = {{{nickname|}}}
| data4        = {{{nickname|}}}
| class4      = nickname


| label5      = Born
| label5      = Born
| data5        = {{br separated entries | {{{birth_date|}}} | {{{birth_place|}}} }}
| data5        = {{{birth_date|Unknown}}}, {{{birth_place|Unknown}}}
 
| label6      = Disappeared
| data6        = {{br separated entries|1={{{disappeared_date|}}}|2={{{disappeared_place|}}}}}
 
| label7      = Status
| data7        = {{{status|{{{disappeared_status|}}}}}}
 
| label8      = Died
| data8        = {{br separated entries | {{{death_date|}}} | {{{death_place|}}} }}
 
| label9      = Cause&nbsp;of death
| data9        = {{{death cause|{{{death_cause|}}}}}}
 
| label10      = {{#if:{{{placeofburial_label|}}}|{{{placeofburial_label}}}|Buried}}
| data10        = {{#if:{{{placeofburial|}}}{{{placeofburial_coordinates|}}}|<div style="display:inline" class="label">{{{placeofburial|}}}</div> {{#if:{{{placeofburial_coordinates|}}}|{{{placeofburial_coordinates}}}}}}}
 
| label11      = Allegiance
| data11      = {{{allegiance|}}}
 
| label12      = {{#if:{{{branch_label|}}}|{{{branch_label}}}|Service <wbr/>/ branch}}
| data12      = {{{branch|}}}
 
| label13      = {{#if:{{{service_years_label|{{{serviceyears_label|}}}}}}|{{{service_years_label|{{{serviceyears_label|}}}}}}|Years&nbsp;of service}}
| data13      = {{{service_years|{{{serviceyears|}}}}}}
 
| label14      = {{#if:{{{rank_label|}}}|{{{rank_label|}}}|Rank}}
| data14      = {{{rank|}}}
 
| label15      = [[Service number]]
| data15      = {{{service_number|{{{servicenumber|}}}}}}
 
| label16      = {{#if:{{{unit_label|}}}|{{{unit_label|}}}|Unit}}
| data16      = {{{unit|}}}
 
| label17      = Commands
| data17      = {{{commands|}}}


| label18      = Known&nbsp;for
| label6      = Died
| data18      = {{{known for|{{{known_for|{{{known|}}}}}}}}}
| data6        = {{{death_date|Unknown}}}, {{{death_place|Unknown}}}


| label19      = {{#if:{{{battles_label|}}}|{{{battles_label|}}}|Battles / wars}}
| label7      = Allegiance
| data19      = {{{battles|}}}
| data7        = {{{allegiance|Unknown}}}


| label20      = Awards
| label8      = Service/branch
| data20      = {{{awards|}}}
| data8        = {{{branch|Unknown}}}


| label21      = Memorials
| label9      = Years of service
| data21      = {{{memorials|}}}
| data9        = {{{service_years|Unknown}}}


| label22     = [[Alma mater]]
| label10     = Rank
| data22       = {{{alma_mater|}}}
| data10       = {{{rank|Unknown}}}


| label23     = Spouse(s)
| label11     = Unit
| data23       = {{{spouse|}}}
| data11       = {{{unit|Unknown}}}


| label24     = Children
| label12     = Commands
| data24       = {{{children|}}}
| data12       = {{{commands|Unknown}}}


| label25     = Relations
| label13     = Battles/wars
| data25       = {{{relations|}}}
| data13       = {{{battles|Unknown}}}


| label26     = Other&nbsp;work
| label14     = Awards
| data26       = {{{other_work|{{{later_work|{{{otherwork|{{{laterwork|}}}}}}}}}}}}
| data14       = {{{awards|Unknown}}}


| label27     = Signature
| label15     = Spouse(s)
| data27       = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=100px|alt={{{signature alt|{{{signature_alt|}}}}}}}}
| data15       = {{{spouse|Unknown}}}


| label28     = {{#if:{{{website|{{{homepage|{{{URL|}}}}}}}}}|Website}}
| label16     = Children
| data28       = {{{website|{{{homepage|{{{URL|}}}}}}}}}
| data16       = {{{children|Unknown}}}


| data29       = {{{module|}}}
| label17      = Other work
| data17       = {{{other_work|Unknown}}}


}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox military person with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox military person]] with unknown parameter "_VALUE_"|ignoreblank=y| allegiance | alma_mater | alt | awards | battles | battles_label | birth_date | birth_name | birth_place | disappeared_date | disappeared_place | disappeared_status | branch | branch_label | caption | children | commands | death_date | death_place |death_cause | embed | embed_title | embed_title_large | homepage | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | image | image_size | image_upright | known | known_for | later_work | laterwork | medal | medal_size | medal_upright | medal_alt | memorials | module | name | native_name | native_name_lang | nickname | other_name | other_work | otherwork | placeofburial | placeofburial_coordinates | placeofburial_label | rank | rank_label | relations | service_number | servicenumber | service_years | serviceyears | service_years_label | serviceyears_label | signature | signature alt | signature_alt | signature_size | spouse | unit | unit_label | URL | website | width_style }}{{#if:{{both|{{{image|}}}|{{{medal|}}}}}|[[Category:Pages using infobox military person with both image and medal]]
| label18      = Signature
}}{{main other|{{#if:{{{embed|}}}|[[Category:Pages using infobox military person with embed|{{#if:{{{embed_title|}}}|Τ}}{{FULLPAGENAME}}]]
| data18      = {{#if:{{{signature|}}}|[[File:{{{signature}}}|100px]]|None}}
}}}}<noinclude>{{documentation}}</noinclude>
}}

Revision as of 05:48, 11 December 2024

[[File:|300px]]
BornUnknown, Unknown
DiedUnknown, Unknown
AllegianceUnknown
Service/branchUnknown
Years of serviceUnknown
RankUnknown
UnitUnknown
CommandsUnknown
Battles/warsUnknown
AwardsUnknown
Spouse(s)Unknown
ChildrenUnknown
Other workUnknown
Signature{{#if:|[[File:{{{signature}}}|100px]]|None}}

{{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Template
   | template
   | other
   }}
 }}

| template = {{#ifeq:Infobox military person|Infobox||}} | other | #default = }}