Difference between revisions of "Template:Infobox monarchy"

From MicroWiki, the micronational encyclopædia
Jump to navigation Jump to search
Tags: Mobile edit Mobile web edit
(Redesigned infobox, and made easier to read)
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
{| class="infobox" style="text-align:center; margin-left:1em; margin-bottom:1em; padding:0em 0em 0em 0em; border:1px solid silver"
+
{{infobox
!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}}}}}
+
|title = {{{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);
|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
+
|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)}};"
|-
+
|above = {{#switch:{{{border|}}}|provincial=Provincial/State|federal=Federal|imperial=Imperial|royalimperial=Royal & Imperial|imperialroyal=Imperial and Royal}}
|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}}
+
|image =
|-
 
 
{{#if:{{{coatofarms|}}}|
 
{{#if:{{{coatofarms|}}}|
{{!}}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>}}
+
{{#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}}
{{#if:{{{image|}}}|
+
|data2 = {{#if: {{{image|}}}|[[File:{{{image}}}|118px]]<br>}} {{bold|{{{incumbent|}}}}} {{#if: {{{since|}}}|<br>since {{{since}}}}}{{#if: {{{from|}}}|<br>from {{{abolished-date}}}}}
{{!}}colspan=2{{!}}[[File:{{{image}}}|118px]]
+
|header3 = Details
}}
+
|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 40: Line 29:
 
| #default=[[Majesty|{{{his/her}}} Majesty]]
 
| #default=[[Majesty|{{{his/her}}} Majesty]]
 
}}
 
}}
|-
+
|label5 = [[Heir apparent]]
{{#if:{{{heir_apparent|}}}|
+
|data5 = {{{heir_apparent|}}}
!align=left{{!}}[[Heir apparent]]
+
|label6 = Heir presumptive
{{!}}align=left{{!}}{{{heir_apparent}}}
+
|data6 = {{{heir_presumptive|}}}
}}
+
|label7 = First monarch
|-
+
|data7 = {{{first_monarch|}}}
{{#if:{{{heir_presumptive|}}}|
+
|label8 = Formation
!align=left{{!}}Heir presumptive
+
|data8 = {{{date|}}}
{{!}}align=left{{!}}{{{heir_presumptive}}}
+
|label9 = Last monarch
}}
+
|data9 = {{{Last_monarch|}}}
|-
+
|label10 = Abolished
!align=left|First monarch
+
|data10 = {{{abolished-date|}}}
|align=left|{{{first_monarch}}}
+
|label11 = Pretender(s)
|-
+
|data11 = {{{pretender|}}}
!align=left|Formation
+
}}<noinclude>
|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 04:55, 28 February 2018

{{{royal_title}}} of {{{realm}}}
Incumbent
Details
Style{{{his/her}}} Majesty