Difference between revisions of "Template:Infobox monarchy"

From MicroWiki, the micronational encyclopædia
Jump to: navigation, search
Line 1: Line 1:
{{infobox
+
{| class="infobox" style="text-align:center; margin-left:1em; margin-bottom:1em; padding:0em 0em 0em 0em; border:1px solid silver"
|title = {{{royal_title}}} of {{{realm}}}{{#if: {{{native_name|}}}|<br />{{{native_name}}}}}
+
!colspan=2 style="background:none; padding:0.2em 0.2em 0.2em 0.2em;" |<big><!--<font color=white>--> {{{royal_title}}} of {{{realm}}}{{#if: {{{native_name|}}}|<br />{{{native_name}}}}}
|headerstyle = padding:0; font-family:serif; font-weight:bold; text-transform:uppercase; font-size:90%; line-height:110%; color:white; background:rgb(155, 9, 137);
+
|-
|abovestyle = padding:0; font-family:serif; font-weight:bold; text-transform:uppercase; font-size:90%; line-height:110%; color:{{#switch:{{{border|}}}|provincial=rgb(106,150,212)|federal=rgb(237,112,112)|imperial=rgb(213,115,111)|royalimperial=rgb(213,115,111)|imperialroyal=rgb(213,115,111)}}; background:{{#switch:{{{border|}}}|provincial=rgb(44,94,165)|federal=rgb(212,36,36)|imperial=rgb(68,15,102)|royalimperial=rgb(68,15,102)|imperialroyal=rgb(68,15,102)}};
+
|colspan="2" style="padding:0; font-family:serif; font-weight:bold; text-transform:uppercase; font-size:90%; line-height:110%; color:white; background:rgb(155, 9, 137);"|Monarchy
|above = {{#switch:{{{border|}}}|provincial=Provincial/State|federal=Federal|imperial=Imperial|royalimperial=Royal & Imperial|imperialroyal=Imperial and Royal}}
+
|-
|image =
+
|colspan="2" style="padding:0; font-family:serif; font-weight:bold; text-transform:uppercase; font-size:90%; line-height:110%; color:{{#switch:{{{border|}}}|provincial=rgb(106,150,212)|federal=rgb(237,112,112)|imperial=rgb(213,115,111)|royalimperial=rgb(213,115,111)|imperialroyal=rgb(213,115,111)}}; background:{{#switch:{{{border|}}}|provincial=rgb(44,94,165)|federal=rgb(212,36,36)|imperial=rgb(68,15,102)|royalimperial=rgb(68,15,102)|imperialroyal=rgb(68,15,102)}};"|{{#switch:{{{border|}}}|provincial=Provincial/State|federal=Federal|imperial=Imperial|royalimperial=Royal & Imperial|imperialroyal=Imperial and Royal}}
 +
|-
 
{{#if:{{{coatofarms|}}}|
 
{{#if:{{{coatofarms|}}}|
{{#switch:{{{coatofarms|}}}|UKofGBandNI COAs.png=[[File:UKofGBandNI COAs.png|500px]]|#default=[[File:{{{coatofarms}}}|100px]]}}<br>{{#switch:{{{type|[[{{{coatofarms_article}}}|<small>Royal Coat of Arms of {{{realm}}}</small>]]}}}|commonwealth=[[{{{coatofarms_article}}}|<small>Royal Coat of Arms of {{{realm}}}</small>]]|non-commonwealth=[[{{{coatofarms_article}}}|<small>Royal Coat of Arms of {{{realm}}}</small>]]|other=[[{{{coatofarms_article}}}|<small>Arms of {{{his/her}}} Majesty The {{{royal_title}}} of {{{realm}}}</small>]]|other2=[[{{{coatofarms_article}}}|<small>Arms of {{{his/her}}} Highness the {{{royal_title}}} of {{{realm}}}</small>]]|other3=[[{{{coatofarms_article}}}|<small>Arms of {{{his/her}}} Highness the {{{royal_title}}} of {{{realm}}}</small>]]|other4=[[{{{coatofarms_article}}}|<small>Arms of {{{his/her}}} Highness the {{{royal_title}}} of {{{realm}}}</small>]]|#default=<small>{{{coatofarms_article}}}</small>}}
+
{{!}}colspan=2 v-align="bottom"{{!}}{{#switch:{{{coatofarms|}}}|UKofGBandNI COAs.png=[[File:UKofGBandNI COAs.png|500px]]|#default=[[File:{{{coatofarms}}}|100px]]}}<br>{{#switch:{{{type|[[{{{coatofarms_article}}}|<small>Royal Coat of Arms of {{{realm}}}</small>]]}}}|commonwealth=[[{{{coatofarms_article}}}|<small>Royal Coat of Arms of {{{realm}}}</small>]]|non-commonwealth=[[{{{coatofarms_article}}}|<small>Royal Coat of Arms of {{{realm}}}</small>]]|other=[[{{{coatofarms_article}}}|<small>Arms of {{{his/her}}} Majesty The {{{royal_title}}} of {{{realm}}}</small>]]|other2=[[{{{coatofarms_article}}}|<small>Arms of {{{his/her}}} Highness the {{{royal_title}}} of {{{realm}}}</small>]]|other3=[[{{{coatofarms_article}}}|<small>Arms of {{{his/her}}} Highness the {{{royal_title}}} of {{{realm}}}</small>]]|other4=[[{{{coatofarms_article}}}|<small>Arms of {{{his/her}}} Highness the {{{royal_title}}} of {{{realm}}}</small>]]|#default=<small>{{{coatofarms_article}}}</small>}}
 +
----
 
}}
 
}}
|header1 = {{#if: {{{last|}}}|Last incumbent|Incumbent}}
+
|-
|data2 = {{#if: {{{image|}}}|[[File:{{{image}}}|118px]]<br>}} {{bold|{{{incumbent|}}}}} {{#if: {{{since|}}}|<br>since {{{since}}}}}{{#if: {{{from|}}}|<br>from {{{abolished-date}}}}}
+
{{#if:{{{image|}}}|
|header3 = Details
+
{{!}}colspan=2{{!}}[[File:{{{image}}}|118px]]
|label4 = Style  
+
}}
|data4 = {{#switch: {{{type|[[Majesty|{{{his/her}}} Majesty]]}}}
+
|-
 +
{{#if:{{{image2|}}}|
 +
{{!}}colspan=2{{!}}[[File:{{{image2}}}|118px]]
 +
}}
 +
|-
 +
!colspan=2|Incumbent<br>{{{incumbent}}}<br>{{#if:{{{other|}}}|<sub>{{{other}}}</sub>}}
 +
----
 +
|-
 +
!align=left|Style  
 +
|align=left|{{#switch: {{{type|[[Majesty|{{{his/her}}} Majesty]]}}}
 
| commonwealth=[[Majesty|{{{his/her}}} Majesty]]
 
| commonwealth=[[Majesty|{{{his/her}}} Majesty]]
 
| non-commonwealth=[[Majesty|{{{his/her}}} Majesty]]
 
| non-commonwealth=[[Majesty|{{{his/her}}} Majesty]]
Line 29: Line 40:
 
| #default=[[Majesty|{{{his/her}}} Majesty]]
 
| #default=[[Majesty|{{{his/her}}} Majesty]]
 
}}
 
}}
|label5 = [[Heir apparent]]
+
|-
|data5 = {{{heir_apparent|}}}
+
{{#if:{{{heir_apparent|}}}|
|label6 = Heir presumptive
+
!align=left{{!}}[[Heir apparent]]
|data6 = {{{heir_presumptive|}}}
+
{{!}}align=left{{!}}{{{heir_apparent}}}
|label7 = First monarch
+
}}
|data7 = {{{first_monarch|}}}
+
|-
|label8 = Formation
+
{{#if:{{{heir_presumptive|}}}|
|data8 = {{{date|}}}
+
!align=left{{!}}Heir presumptive
|label9 = Last monarch
+
{{!}}align=left{{!}}{{{heir_presumptive}}}
|data9 = {{{Last_monarch|}}}
+
}}
|label10 = Abolished
+
|-
|data10 = {{{abolished-date|}}}
+
!align=left|First monarch
|label11 = Pretender(s)
+
|align=left|{{{first_monarch}}}
|data11 = {{{pretender|}}}
+
|-
}}<noinclude>
+
!align=left|Formation
 +
|align=left|{{{date}}}
 +
|-
 +
!align=left|Last monarch
 +
|align=left|{{{Last_monarch}}}
 +
|-
 +
!align=left|{{#if: {{{abolished-date|}}}|Abolished}}
 +
|align=left|{{{abolished-date|}}}
 +
|-
 +
!align=left|{{#if: {{{pretender|{{{pretenders|}}}}}}|Pretender(s)}}
 +
|align=left|{{{pretender|{{{pretenders|}}}}}}
 +
|}<noinclude>
 
[[Category:Infobox templates|M]]  
 
[[Category:Infobox templates|M]]  
 
[[Category:Royalty infobox templates]]
 
[[Category:Royalty infobox templates]]

Revision as of 08:30, 2 May 2018

{{{royal_title}}} of {{{realm}}}
Monarchy
Incumbent
{{{incumbent}}}

Style {{{his/her}}} Majesty
First monarch {{{first_monarch}}}
Formation {{{date}}}
Last monarch {{{Last_monarch}}}