Changes

Jump to navigation Jump to search
1,190 bytes removed ,  14:13, June 22, 2021
simplifying code
Line 1: Line 1:  
{| border=1 class="infobox bordered" style="width:300px;border:1px solid black;font-size:90%" cellpadding=2 cellspacing=4
 
{| border=1 class="infobox bordered" style="width:300px;border:1px solid black;font-size:90%" cellpadding=2 cellspacing=4
 
|-
 
|-
−
!colspan="2" style="color: white; font-size: 120%; height: 20px; background: Royalblue no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}'''{{#if: {{{nativename<includeonly>|</includeonly>}}} |<br> ''{{{nativename}}}'' }}{{#if: {{{birthname<includeonly>|</includeonly>}}} |<br> ''{{{birthname}}}'' }}
+
!colspan="2" style="color: white; font-size: 120%; height: 24px; background:royalblue"| '''{{{name|{{PAGENAME}}}}}'''{{#if: {{{nativename<includeonly>|</includeonly>}}} |<br> ''{{{nativename}}}'' }}{{#if: {{{birthname<includeonly>|</includeonly>}}} |<br> ''{{{birthname}}}'' }}
 
|-
 
|-
−
<!----------Image---------->
+
! colspan="2"|{{#if:{{{image|}}}|[[File:{{{image}}}|290px]]|}}{{#if:{{{caption|}}}|<br><span style="font-size:90%">{{{caption|}}}</span>}}
−
! colspan="2"|{{#if:{{{image|}}}|[[image:{{{image}}}|200px]]|}}{{#if:{{{caption|}}}|<br><span style="font-size:90%">{{{caption|}}}</span>}}
+
|-
−
{{!-}}
+
<!---------First term of office---------->
−
<!----------First term of office---------->
+
{{#if:{{{office|}}}|
−
{{#if:{{{office|}}} | <!--then:-->
+
{{!}}colspan="2" align="center" style="font-size: 120%; height: 24px; background: thistle" {{!}} '''{{{office|}}} of {{{country|}}}'''
−
{{!}}colspan="2" align="center" style="color: white; font-size: 120%; height: 24px; background: darkblue no-repeat scroll top left;" <hr/>{{!}} '''{{{office|}}} of {{{country|}}}'''
+
{{!}}-
 
}}
 
}}
−
{{!-}}
+
{{#if:{{{term_start|}}}|
−
<!----------Term---------->
+
{{!}}colspan="2" align="center"{{!}}'''Term of office'''<br>{{{term_start|}}} &ndash; {{#if:{{{term_end|}}} | {{{term_end|}}} }}
−
{{#if:{{{term_start|}}} | <!--then:-->
+
{{!}}-
−
{{!}}colspan="2" align="center" style="color: black;" {{!}}'''Term of office'''<br>{{{term_start|}}} &ndash; {{#if:{{{term_end|}}} | {{{term_end|}}} | }} | <!--else-->
   
}}
 
}}
−
{{!-}}
+
{{#if:{{{previous|}}}|
−
<!------Predecessor------->
+
! Preceded by
−
{{#if:{{{previous|}}} | <!--then:-->
+
{{!}} [[{{{previous}}}]]
−
{{!}}'''Preceded by'''
+
{{!}}-
−
{{!}} [[{{{previous|}}}]] |<!--else-->
   
}}
 
}}
−
{{!-}}
+
{{#if:{{{next|}}}|
−
<!-----Successor---------->
+
! Succeeded by
−
{{#if:{{{next|}}} | <!--then:-->
+
{{!}} [[{{{next}}}]]
−
{{!}}'''Succeeded by'''
+
{{!}}-
−
{{!}} [[{{{next|}}}]] |<!--else-->
   
}}
 
}}
−
{{!-}}
   
<!---------Second term of office---------->
 
<!---------Second term of office---------->
−
{{#if:{{{office2|}}} | <!--then:-->
+
{{#if:{{{office2|}}}|
−
{{!}}colspan="2" align="center" style="color: black ; font-size: 120%; height: 24px; background: thistle no-repeat scroll top left;" <hr/>{{!}} '''{{{office2|}}} of {{{country|}}}''' |<!--else-->
+
{{!}}colspan="2" align="center" style="font-size: 120%; height: 24px; background: thistle" {{!}} '''{{{office2|}}} of {{{country|}}}''' |
 +
{{!}}-
 
}}
 
}}
−
{{!-}}
+
{{#if:{{{term_start2|}}}|
−
<!----------Term---------->
+
{{!}}colspan="2" align="center" {{!}} '''Term of office'''<br>{{{term_start2|}}} - {{#if:{{{term_end2|}}} | {{{term_end2|}}} }}
−
{{#if:{{{term_start2|}}} | <!--then:-->
+
{{!}}-
−
{{!}}colspan="2" align="center" style="color: black;" {{!}}'''Term of office'''<br>{{{term_start2|}}} - {{#if:{{{term_end2|}}} | {{{term_end2|}}} | }} | <!--else-->
   
}}
 
}}
−
{{!-}}
+
{{#if:{{{party2|}}} |
−
<!---------Party---------->
  −
{{#if:{{{party2|}}} | <!--then:-->
   
{{!}}'''Political party'''
 
{{!}}'''Political party'''
−
{{!}} [[{{{party2|}}}]] |<!--else-->
+
{{!}} [[{{{party2|}}}]]
 +
{{!}}-
 
}}
 
}}
−
{{!-}}
+
{{#if:{{{previous2|}}}|
−
<!------Predecessor------->
  −
{{#if:{{{previous2|}}}| <!--then:-->
   
{{!}}'''Preceded by'''
 
{{!}}'''Preceded by'''
−
{{!}} [[{{{previous2|}}}]] | <!--else-->
+
{{!}} [[{{{previous2|}}}]]
 +
{{!}}-
 
}}
 
}}
−
{{!-}}
+
{{#if:{{{next2|}}} |
−
<!-----Successor---------->
  −
{{#if:{{{next2|}}} | <!--then:-->
   
{{!}}'''Succeeded by'''
 
{{!}}'''Succeeded by'''
−
{{!}} [[{{{next2|}}}]] | <!--else-->
+
{{!}} [[{{{next2|}}}]]
 +
{{!}}-
 
}}
 
}}
−
{{!-}}
   
<!---------Third term of office---------->
 
<!---------Third term of office---------->
−
{{#if:{{{office3|}}} | <!--then:-->
+
{{#if:{{{office3|}}} |
−
{{!}}colspan="2" align="center" style="color: black; font-size: 120%; height: 24px; background: thistle no-repeat scroll top left;" <hr/>{{!}} '''{{{office3|}}} of {{{country|}}}''' |<!--else-->
+
{{!}}colspan="2" align="center" style="font-size: 120%; height: 24px; background: thistle" {{!}} '''{{{office3|}}} of {{{country|}}}'''
 +
{{!}}-
 
}}
 
}}
−
{{!-}}
+
{{#if:{{{term_start3|}}}|
−
<!----------Term---------->
+
{{!}}colspan="2" align="center"{{!}}'''Term of office'''<br>{{{term_start3|}}} &ndash; {{#if:{{{term_end3|}}} | {{{term_end3|}}} }}
−
{{#if:{{{term_start3|}}} | <!--then:-->
+
{{!}}-
−
{{!}}colspan="2" align="center" style="color: black;" {{!}}'''Term of office'''<br>{{{term_start3|}}} - {{#if:{{{term_end3|}}} | {{{term_end3|}}} | }} | <!--else-->
   
}}
 
}}
−
{{!-}}
+
{{#if:{{{party3|}}} |
−
<!---------Party---------->
  −
{{#if:{{{party3|}}} | <!--then:-->
   
{{!}} '''Political party'''
 
{{!}} '''Political party'''
−
{{!}} {{{party3|}}} | <!--else-->
+
{{!}} {{{party3|}}}
 +
{{!}}-
 
}}
 
}}
−
{{!-}}
+
{{#if:{{{previous3|}}} |
−
<!------Predecessor------->
  −
{{#if:{{{previous3|}}} | <!--then:-->
   
{{!}} '''Preceded by'''
 
{{!}} '''Preceded by'''
−
{{!}} [[{{{previous3|}}}]] |<!--else-->
+
{{!}} [[{{{previous3|}}}]]
 +
{{!}}-
 
}}
 
}}
−
{{!-}}
+
{{#if:{{{next3|}}} |
−
<!-----Successor---------->
  −
{{#if:{{{next3|}}} | <!--then:-->
   
{{!}}'''Succeeded by'''
 
{{!}}'''Succeeded by'''
−
{{!}} [[{{{next3|}}}]] | <!--else-->
+
{{!}} [[{{{next3|}}}]]
 +
{{!}}-
 
}}
 
}}
−
{{!-}}
   
<!----------Life & death ---------->
 
<!----------Life & death ---------->
−
{{#if:{{{birth_date|}}} | <!--then:-->
+
{{#if:{{{birth_date|}}}{{{flourit|}}}{{{death_date|}}}{{{party|}}}{{{spouse|}}}{{{religion|}}} |
−
{{!}}colspan="2"{{!}}<hr/>
+
! colspan="2" style="background:thistle; font-size:120%"{{!}}Personal details
−
{{!-}}
+
{{!}}-
−
{{!}} '''Born'''
  −
{{!}} {{{birth_date}}} {{#if:{{{birth_place|}}} | <br>{{{birth_place|}}} | }}| <!--else-->
   
}}
 
}}
−
{{!-}}
+
{{#if:{{{birth_date|}}}|
−
{{#if:{{{flourit|}}} | <!--then:-->
+
! Born
−
{{!}} '''Flourished'''
+
{{!}} {{{birth_date}}} {{#if:{{{birth_place|}}} | <br>{{{birth_place|}}} }}
−
{{!}} {{{flourit}}} | <!--else-->
+
{{!}}-
 
}}
 
}}
−
{{!-}}
+
{{#if:{{{flourit|}}}|
−
{{#if:{{{death_date|}}} | <!--then:-->
+
! Flourished
 +
{{!}} {{{flourit}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{death_date|}}} |
 
{{!}}'''Died'''
 
{{!}}'''Died'''
−
{{!}} {{{death_date}}} {{#if:{{{death_place|}}} | <br>{{{death_place|}}} | }}| <!--else-->
+
{{!}} {{{death_date}}} {{#if:{{{death_place|}}} | <br>{{{death_place|}}} }}
 +
{{!}}-
 +
}}
 +
{{#if:{{{party|}}} |
 +
! Political Party
 +
{{!}} {{{party}}}
 +
{{!}}-
 
}}
 
}}
−
{{!-}}
+
{{#if:{{{spouse|}}} |
−
<!---------Party---------->
+
! Spouse
−
{{#if:{{{party|}}} | <!--then:-->
+
{{!}} {{{spouse}}} {{#if:{{{spouse2|}}} | <br>{{{spouse2|}}} }}
−
{{!}} '''Political Party'''
+
{{!}}-
−
{{!}} {{{party|}}} | <!--else-->
   
}}
 
}}
−
{{!-}}
+
{{#if:{{{religion|}}}|
−
<!----------Spouse, etc.---------->
+
! Religion
−
{{#if:{{{spouse|}}} |<!--then:-->
+
{{!}} {{{religion}}}
−
{{!}}'''Spouse'''
+
{{!}}-
−
{{!}} {{{spouse}}}{{#if:{{{spouse2|}}} | <br>{{{spouse2|}}} | }} | <!--else-->
   
}}
 
}}
−
{{!-}}
+
{{#if:{{{allegiance|}}}{{{branch|}}}{{{serviceyears|}}}{{{rank|}}}{{{unit|}}}{{{commands|}}}{{{battles|}}}{{{awards|}}} |
−
{{#if:{{{religion|}}} | <!--then:-->
+
!colspan="2" style="background:#D8DFD8; font-size:120%"{{!}}Military Service
−
{{!}}'''Religion'''
  −
{{!}} {{{religion}}} | <!--else-->
   
}}
 
}}
−
{{!-}}
  −
<!----------Military Service---------->
  −
{{#if:{{{allegiance|}}}{{{branch|}}}{{{serviceyears|}}}{{{rank|}}}{{{unit|}}}{{{commands|}}}{{{battles|}}}{{{awards|}}}|
  −
{{!}}colspan="2"{{!}}<hr/>
  −
{{!-}}
  −
!colspan="2" align="center" style="background:#D8DFD8; font-size=140%"{{!}}Military Service<br/>
   
{{!}}-
 
{{!}}-
−
}}
   
{{#if:{{{nickname|}}}|
 
{{#if:{{{nickname|}}}|
 
! Nickname(s)
 
! Nickname(s)
Line 171: Line 156:  
{{!}}-
 
{{!}}-
 
}}
 
}}
−
{{!-}}
   
|}<noinclude>
 
|}<noinclude>
 
<pre style="width:35em">
 
<pre style="width:35em">
SkipCaptcha, Automoderated users, edit
1,409

edits

Navigation menu