Difference between revisions of "Template:Infobox military person"

From The League Wiki
Jump to navigation Jump to search
(bold)
(fix {{text}} appearing when honorific_suffix is not used)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| child       = {{lc:{{{embed}}}}}
+
| child     = {{#ifeq:{{{child|{{{embed|}}}}}}|yes|yes}}
  
 
| 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|}}}|Military career}}}}
+
| subheader    = <center>{{#ifeq:{{lc:{{{embed}}}}}|yes|{{if empty|{{{embed_title|}}}|Military career}}}}</center>
 
| 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|{{{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" class="fn">{{{name|{{PAGENAMEBASE}}}}}</div>}}
+
  |2={{font|size=120%|{{#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|{{{honorific_suffix|}}}}}}|<div class="honorific-suffix" style="font-size: 77%; font-weight: normal;display:inline;">{{{honorific suffix|{{{honorific_suffix|}}}}}}</div>}}
 
  }}
 
  }}
 
| abovestyle  = {{WPMILHIST Infobox style|header_color}}  
 
| abovestyle  = {{WPMILHIST Infobox style|header_color}}  
  
| image        = {{#if:{{{image|}}}
+
| image        = <center>{{#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}}  
 
   |{{#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|}}}
 
   |{{#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}}  
 
   |{{#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}}  
 
   }}
 
   }}
   }}
+
   }}</center>
 
| imagestyle  = border-bottom: {{WPMILHIST Infobox style|section_border}}; line-height: 1.5em
 
| imagestyle  = border-bottom: {{WPMILHIST Infobox style|section_border}}; line-height: 1.5em
  
| caption      = {{{caption|}}}
+
| caption      = <center>{{{caption|}}}</center>
 
| captionstyle = font-size: 100%
 
| captionstyle = font-size: 100%
  

Latest revision as of 23:31, 29 December 2023

{{{text}}}