Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox military person: Difference between revisions

Template page
m (this is a test)
m (Rework looks identical, keeping it for simplification)
Tag: Undo
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
| child        = {{lc:{{{embed}}}}}
| child        = {{lc:{{{embed|}}}}}


| bodyclass    = vcard
| bodyclass    = vcard
Line 6: Line 6:


| subheaderstyle = font-weight:bold;
| 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}}}}}}
| subheader    = {{#ifeq:{{lc:{{{embed|yes}}}}}|yes|{{#if:{{{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 -->
| decat        = yes <!-- remove from template:infobox tracking categories -->


| above        = {{br separated entries
| above        = {{br separated entries
  |1={{#if:{{{honorific prefix|{{{honorific_prefix|}}}}}}|<div class="honorific-prefix" style="font-size: 77%; font-weight: normal;display:inline;">{{{honorific prefix|{{{honorific_prefix|}}}}}}</div>}}
  |1={{#if:{{{honorific_prefix|}}}|<div class="honorific-prefix" style="font-size: 77%; font-weight: normal;display:inline;">{{{honorific_prefix|}}}</div>}}
  |2={{#if:{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}|<div style="display:inline" class="fn">{{{name|{{PAGENAMEBASE}}}}}</div>}}
  |2={{#if:{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}|<div style="display:inline" class="fn">{{{name|{{PAGENAMEBASE}}}}}</div>}}
  |3={{#if:{{{honorific suffix|{{{honorific_suffix|}}}}}}|<div class="honorific-suffix" style="font-size: 77%; font-weight: normal;display:inline;">{{{honorific suffix|{{{honorific_suffix|}}}}}}</div>}}
  |3={{#if:{{{honorific_suffix|}}}|<div class="honorific-suffix" style="font-size: 77%; font-weight: normal;display:inline;">{{{honorific_suffix|}}}</div>}}
  }}
  }}
| abovestyle  = font-size:125%; {{WPMILHIST Infobox style|header_color}}  
| abovestyle  = font-size:125%; {{WPMILHIST Infobox style|header_color}}
 
| image        = {{#if:{{{image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}}}
| medal        = {{#if:{{{medal|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{medal|}}}|size={{{medal_size|}}}|sizedefault=frameless|upright={{{medal_upright|0.4}}}|alt={{{medal_alt|}}}|suppressplaceholder=yes}}}}


| image        = {{#if:{{{image|}}}
  |{{#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}}
  |{{#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
| imagestyle  = border-bottom: {{WPMILHIST Infobox style|section_border}}; line-height: 1.5em


Line 30: Line 28:


| 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        = {{#if:{{{native_name|}}}|<div class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</div>}}


| label2      = Birth name
| label2      = Birth name
Line 102: Line 100:


| label24      = Signature
| label24      = Signature
| data24      = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=100px|alt={{{signature alt|{{{signature_alt|}}}}}}}}
| data24      = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=100px|alt={{{signature_alt|{{{signature_alt|}}}}}}}}


| label25      = {{#if:{{{website|{{{homepage|{{{URL|}}}}}}}}}|Website}}
| label25      = {{#if:{{{website|{{{homepage|{{{URL|}}}}}}}}}|Website}}
Line 109: Line 107:
| data26      = {{{module|}}}   
| data26      = {{{module|}}}   


{{#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 | branch | branch_label | caption | children | commands | death_date | death_place | embed | embed_title | embed_title_large | homepage | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | image | image_size | image_upright | known | known_for | laterwork | medal | medal_size | medal_upright | medal_alt | memorials | module | name | native_name | native_name_lang | nickname | other_name | otherwork | placeofburial | placeofburial_coordinates | placeofburial_label | rank | rank_label | relations | servicenumber | serviceyears | 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]]
}}{{#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 | branch | branch_label | caption | children | commands | death_date | death_place | embed | embed_title | embed_title_large | homepage | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | image | image_size | image_upright | known | known_for | laterwork | medal | medal_size | medal_upright | medal_alt | memorials | module | name | native_name | native_name_lang | nickname | other_name | otherwork | placeofburial | placeofburial_coordinates | placeofburial_label | rank | rank_label | relations | servicenumber | serviceyears | 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]]
}}{{main other|{{#if:{{{embed|}}}|[[Category:Pages using infobox military person with embed|{{#if:{{{embed_title|}}}|Τ}}{{FULLPAGENAME}}]]
}}{{main other|{{#if:{{{embed|}}}|[[Category:Pages using infobox military person with embed|{{#if:{{{embed_title|}}}|Τ}}{{FULLPAGENAME}}]]
}}}}<noinclude>{{documentation}}</noinclude>
}}}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 22:46, 3 September 2024