Difference between revisions of "Template:Infobox monarchy"

From MicroWiki, the micronational encyclopædia
Jump to navigation Jump to search
m
Line 1: Line 1:
{| class="infobox" style="width:20.5em; text-align:center; padding:0em 0em 0em 0em;"
+
{{Infobox
!colspan=2 style="background:none; padding:0.2em 0.2em 0.2em 0.2em;text-align:center;" |<big><!--<font color=white>--> {{{royal_title}}} of {{{realm}}}{{#if: {{{native_name|}}}|<br />{{{native_name}}}}}
+
| bodyclass = vcard
|-
+
 
|colspan="2" style="padding:0; font-family:serif; font-weight:bold; text-transform:uppercase; text-align: center; font-size:90%; line-height:110%; color:white; background:rgb(155, 9, 137);"|Monarchy
+
| aboveclass = adr
|-
+
| above  = <includeonly>{{{royal_title}}} of <span class="country-name">{{{realm}}}</span></includeonly>
|colspan="2" style="padding:0; font-family:serif; font-weight:bold; text-transform:uppercase; font-size:90%; line-height:110%;text-align:center; color:{{#if:{{{border|}}}|rgb(256,256,256)}}; 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)|holy=rgb(219,174,26)}};"|{{#switch:{{{border|}}}|provincial=Provincial/State|federal=Federal|imperial=Imperial|royalimperial=Royal & Imperial|imperialroyal=Imperial and Royal|holy=Holy}}
+
 
|-
+
| subheaderstyle = font-weight: bold;
{{#if:{{{coatofarms|}}}|
+
| subheader  = {{{native_name|}}}
{{!}}colspan=2 v-align="bottom" class="centered" {{!}}{{#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>]]|siv=[[{{{coatofarms_article}}}|<small>Arms of {{{his/her}}} Plushen Majesty the {{{royal_title}}} of {{{realm}}}</small>]]||#default=<small>{{{coatofarms_article}}}</small>}}
+
| subheader2 = {{#if:{{{border|}}}|
----
+
<div style="font-family: serif; font-size: 90%; font-weight: bold; text-transform: uppercase;
}}
+
            line-height: 125%; background-color: rgb(125,7,110); color: white;">{{#switch:{{{border}}}
|-
+
| provincial = Provincial/State
{{#if:{{{image|}}}|
+
| federal    = Federal
{{!}}colspan=2 style="text-align:center" {{!}}[[File:{{{image}}}|118px]]
+
| imperial  = Imperial
}}
+
}}</div>}}
|-
+
 
{{#if:{{{image2|}}}|
+
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{{coatofarms|}}}|size={{{coatofarms_size|{{{coatofarmssize|}}}}}}|sizedefault=120px|alt={{{coatofarms_alt|{{{coa_alt|}}}}}}}}
{{!}}colspan=2 style="text-align:center" {{!}}[[File:{{{image2}}}|118px]]
+
| caption = {{Br separated entries
}}
+
| 1 = {{#if:{{{coatofarms_article|}}}|{{#switch:{{{type}}}
|-
+
  | other    = [[{{{coatofarms_article}}}|Arms of {{{his/her}}} Majesty of the {{{royal_title}}} {{{realm}}}]]
!colspan=2 class="centered"|Incumbent<br>{{{incumbent}}}<br>{{#if:{{{other|}}}|<sub>{{{other}}}</sub>}}
+
  | other1  = [[{{{coatofarms_article}}}|Imperial Standard of the {{{royal_title}}}]]
----
+
  | other2 | other3 = [[{{{coatofarms_article}}}|Arms of {{{his/her}}} Highness the {{{royal_title}}} of {{{realm}}}]]
|-
+
  | other4  = [[{{{coatofarms_article}}}|Arms of {{{his/her}}} Serene Highness the {{{royal_title}}} of {{{realm}}}]]
!align=left|Style
+
  | #default = [[{{{coatofarms_article}}}]]
|align=left|{{#switch: {{{type|[[Majesty|{{{his/her}}} Majesty]]}}}
+
  }}}}
| commonwealth=[[Majesty|{{{his/her}}} Majesty]]
+
| 2 = {{{armsnote|{{{coatofarmscaption|}}}}}}
| non-commonwealth=[[Majesty|{{{his/her}}} Majesty]]
+
}}
| other = [[Majesty|{{{his/her}}} Majesty]]
+
 
| other2 = [[Highness|{{{his/her}}} Highness]]
+
| headerstyle = background-color: #eee;
| other3 = [[Royal Highness|{{{his/her}}} Royal Highness]]
+
 
| other4 = [[Serene Highness|{{{his/her}}} Serene Highness]]
+
| header1 = {{Infobox | child = yes | decat = yes
| other5 = [[w:Grace (style)|{{{his/her}}} Grace]]
+
| title = {{#if:{{{incumbent|}}}|Incumbent}}
| other6 = [[Imperial Majesty|{{{his/her}}} Imperial Majesty]]
+
 
| other7 = [[w:Royal Majesty|{{{his/her}}} Royal Majesty]]
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=200px|alt={{{alt|}}}}}
| other8 = [[w:{{{othertitlelink|{{{othertitle}}}}}}|{{{his/her}}} {{{othertitle}}}]]
+
| caption = {{{caption|}}}
| doshevika = [[w:Style (manner of address)#Examples of styles|{{{his/her}}} Magnificence]]
+
 
| pavlov = [[Imperial Highness|{{{his/her}}} Imperial Highness]]
+
| data2 = {{#if:{{{incumbent|}}}|'''<span class="fn">{{{incumbent}}}</span>'''{{#if:{{{incumbentsince|}}}|<br />since {{{incumbentsince}}}}}}}
| abelden = [[Imperial and Royal Majesty|{{{his/her}}} Imperial and Royal Exalted Majesty]]
+
| data3 = {{{other|}}}
| legatia = [[Imperial and Royal Majesty|{{{his/her}}} Imperial and Royal Majesty]]
+
}}
| siv = [[Majesty|{{{his/her}}} Plushen Majesty]]
+
| header2 = {{Infobox | child = yes | decat = yes
| saudi  = [[Custodian of the Two Holy Mosques|The Custodian of the Two Holy Mosques]]
+
| title = {{#if:{{{incumbent2|}}}|Co-incumbent}}
| tusmore = {{{his/her}}} Serene Majesty
+
 
| sandus = the Honourable Sôgmô
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{{image2_size|}}}|sizedefault=150px|alt={{{image2_alt|}}}}}
| #default=[[Majesty|{{{his/her}}} Majesty]]
+
| caption = {{{caption2|}}}
}}
+
 
|-
+
| data2 = {{#if:{{{incumbent2|}}}|'''<span class="fn">{{{incumbent2}}}</span>'''{{#if:{{{incumbent2since|}}}|<br />since {{{incumbent2since}}}}}}}
{{#if:{{{heir_apparent|}}}|
+
| data3 = {{{other2|}}}
!align=left{{!}}[[Heir apparent]]
+
}}
{{!}}align=left{{!}}{{{heir_apparent}}}
+
 
}}
+
| header3 = {{#if:{{{heir_apparent|}}}{{{heir_presumptive|}}}{{{first_monarch|}}}{{{last_monarch|}}}{{{formation|{{{began|{{{date|}}}}}}}}}{{{abolition|{{{ended|}}}}}}{{{residence|{{{residences|}}}}}}{{{appointer|}}}{{{pretender|}}}{{{type|}}}{{{his/her|}}}{{{style|}}}|Details}}
|-
+
| label4  = Style
{{#if:{{{heir_presumptive|}}}|
+
| data4  = {{#switch:{{{type}}}
!align=left{{!}}[[w:Heir presumptive|Heir presumptive]]
+
| commonwealth | non-commonwealth | other = {{#if:{{{his/her|}}}|[[Majesty|{{{his/her}}} Majesty]]}}
{{!}}align=left{{!}}{{{heir_presumptive}}}
+
| other1  = {{#if:{{{his/her|}}}|[[Imperial Majesty (style)|{{{his/her}}} Imperial Majesty]]}}
}}
+
| other2  = {{#if:{{{his/her|}}}|[[Highness|{{{his/her}}} Highness]]}}
|-
+
| other3  = {{#if:{{{his/her|}}}|[[Royal Highness|{{{his/her}}} Highness]]}}
!align=left|First monarch
+
| other4  = {{#if:{{{his/her|}}}|[[Serene Highness|{{{his/her}}} Serene Highness]]}}
|align=left|{{{first_monarch}}}
+
| SMOM    = {{#if:{{{his/her|}}}|[[Most Eminent Highness|{{{his/her}}} Most Eminent Highness]]}}
|-
+
| saudi    = [[Custodian of the Two Holy Mosques|The Custodian of the Two Holy Mosques]]
!align=left|Formation
+
| #default = {{#if:{{{style|}}}|{{{style}}}|{{#if:{{{his/her|}}}|[[Majesty|{{{his/her}}} Majesty]]}}}}
|align=left|{{{date}}}
+
}} {{{titlenote|}}}
|-
+
 
{{#if:{{{appointer||}}}|
+
| label5  = [[Heir&nbsp;apparent]]
!align=left{{!}}Appointer
+
| data5  = {{{heir_apparent|}}}
{{!}}align=left{{!}}{{{appointer}}}
+
 
}}
+
| label6  = [[Heir presumptive]]
|-
+
| data6  = {{{heir_presumptive|}}}
{{#if:{{{residence||}}}|
+
 
!align=left{{!}}Residence
+
| label7  = First&nbsp;monarch
{{!}}align=left{{!}}{{{residence}}}
+
| data7  = {{{first_monarch|}}}
}}
+
 
|}<noinclude>
+
| label8  = Last&nbsp;monarch
[[Category:Infobox templates|M]]
+
| data8  = {{{last_monarch|}}}
[[Category:Royalty infobox templates]]
+
 
</noinclude>
+
| label9  = Formation
 +
| data9  = {{{formation|{{{began|{{{date|}}}}}}}}}
 +
 
 +
| label10 = Abolition
 +
| data10 = {{{abolition|{{{ended|}}}}}}
 +
 
 +
| label11 = Residence{{#if:{{{residences|}}}|s}}
 +
| data11 = {{#if:{{{residences|}}}|{{{residences|}}}|{{{residence|}}}}}
 +
 
 +
| label12 = Appointer
 +
| data12 = {{{appointer|}}}
 +
 
 +
| label13 = Pretender(s)
 +
| data13 = {{{pretender|}}}
 +
 
 +
| label14 = Website
 +
| data14 = {{{website|}}}
 +
 
 +
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox monarchy with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox monarchy]] with unknown parameter "_VALUE_"|ignoreblank=y| abolition | appointer | armsnote | began | border | caption | caption2 | coa_alt | coatofarms | coatofarms_alt | coatofarms_article | coatofarms_size | coatofarmscaption | coatofarmssize | date | ended | first_monarch | formation | heir_apparent | heir_presumptive | his/her | image | alt | image_size | image2 | image2_alt | image2_size | incumbent | incumbent2 | incumbent2since | incumbentsince | last_monarch | native_name | other | other2 | pretender | realm | residence | residences | royal_title | style | titlenote | type | website }}<noinclude>
 +
{{Documentation}}</noinclude>
 
<noinclude>
 
<noinclude>
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Revision as of 19:22, 3 April 2021

Template documentation[create]