Difference between revisions of "Template:Infobox military person"

From The League Wiki
Jump to navigation Jump to search
(fix {{text}} appearing when honorific_suffix is not used)
 
(6 intermediate revisions by one other user not shown)
Line 10: Line 10:
  
 
| 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
  

Latest revision as of 23:31, 29 December 2023

{{{text}}}