Difference between revisions of "Template:Infobox monarchy"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(Update from sandbox (Infobox))
imported>Intisar Ali
 
(59 intermediate revisions by 19 users not shown)
Line 1: Line 1:
<includeonly>{{Infobox
+
{{Infobox
 
| bodyclass = vcard
 
| bodyclass = vcard
| bodystyle = border:1px solid silver; <!--other styles pre-Infobox: width:22.0em;margin-left:1.0em;margin-bottom:1.0em;padding:0;text-align:center;-->
 
| labelstyle = font-size:85%;line-height:1.2em;padding-top:0.1em;
 
| datastyle = font-size:85%;line-height:1.2em;padding-top:0.1em;
 
  
<!---------------------- Heading -------------------------->
 
 
| aboveclass = adr
 
| aboveclass = adr
| abovestyle = background:none;padding:0.2em;<!--font-size:115%;-->
+
| above  = <includeonly>{{{royal_title}}} of <span class="country-name">{{{realm}}}</span></includeonly>
| above =
 
    {{unbulleted list |style=line-height:1.35em;
 
    | 1 = {{{royal_title}}} of <span class="country-name">{{{realm}}}</span>
 
    | 2 = {{#if:{{{native_name|}}} |{{95%|''{{{native_name}}}''}} }}
 
    }}
 
  
<!------------------- Coat of arms ------------------------>
+
| subheaderstyle = font-weight: bold;
| imagestyle = vertical-align:bottom;
+
| subheader  = {{{native_name|}}}
| image =
+
| subheader2 = {{#if:{{{border|}}}|
    {{#if:{{{coatofarms|}}}
+
<div style="font-family: serif; font-size: 90%; font-weight: bold; text-transform: uppercase;
    | {{#switch:{{{coatofarms}}}
+
            line-height: 125%; background-color: rgb(125,7,110); color: white;">{{#switch:{{{border}}}
        | Royal Coat of Arms of the United Kingdom (Both Realms).svg = [[File:Royal Coat of Arms of the United Kingdom (Both Realms).svg|200px|Royal coats of arms of the United Kingdom in Scotland (right) and elsewhere (left)]]
+
| provincial = Provincial/State
        | #default = [[File:{{{coatofarms}}}|120px|{{{coa_alt|}}}]]
+
| federal    = Federal
    }} }}
+
| imperial  = Imperial
| captionstyle = font-size:90%;<!--modified longitem:-->padding:0.35em 0.2em 0.2em;line-height:1.2em;
+
  }}</div>}}
| caption =
 
    {{#if:{{{coatofarms|}}}
 
    | {{#switch:{{{type|[[{{{coatofarms_article}}}]]}}}
 
        | other = [[{{{coatofarms_article}}}|Arms of {{{his/her}}} Majesty the {{{royal_title}}} of {{{realm}}}]]
 
        | other2 = [[{{{coatofarms_article}}}|Arms of {{{his/her}}} Highness the {{{royal_title}}} of {{{realm}}}]]
 
        | other3 = [[{{{coatofarms_article}}}|Arms of {{{his/her}}} Highness the {{{royal_title}}} of {{{realm}}}]]
 
        | other4 = [[{{{coatofarms_article}}}|Arms of {{{his/her}}} Highness the {{{royal_title}}} of {{{realm}}}]]
 
        | #default = [[{{{coatofarms_article}}}]]
 
      }}
 
    }}
 
| data1  = {{#if:{{{coatofarms|}}} |<hr/>}}
 
  
<!--------------------- Incumbent ------------------------->
+
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{{coatofarms|}}}|size={{{coatofarms_size|{{{coatofarmssize|}}}}}}|sizedefault=120px|alt={{{coatofarms_alt|{{{coa_alt|}}}}}}}}
| data3  =
+
| caption = {{Br separated entries
    {{#if:{{{image|}}}
+
| 1 = {{#if:{{{coatofarms_article|}}}|{{#switch:{{{type}}}
    |   <div style="font-size:118%;line-height:1.5em;padding-top:0;"><!--
+
  | other    = [[{{{coatofarms_article}}}|Arms of {{{his/her}}} Majesty of the {{{royal_title}}}  {{{realm}}}]]
          -->[[File:{{{image}}}|118px|{{{image_alt|}}}]]<!--
+
  | other1  = [[{{{coatofarms_article}}}|Imperial Standard of the {{{royal_title}}}]]
          -->{{unbulleted list |style=line-height:1.3em;
+
  | other2 | other3 = [[{{{coatofarms_article}}}|Arms of {{{his/her}}} Highness the {{{royal_title}}} of {{{realm}}}]]
              |li_style1=padding-top:0.25em; | 1 = '''Incumbent'''
+
  | other4  = [[{{{coatofarms_article}}}|Arms of {{{his/her}}} Serene Highness the {{{royal_title}}} of {{{realm}}}]]
              | 2 = '''<span class="fn">{{{incumbent}}}</span>'''
+
  | #default = [[{{{coatofarms_article}}}]]
              | 3 = {{#if:{{{incumbentsince|}}} |{{smaller|since {{{incumbentsince}}}}} }}
+
  }}}}
              | 4 = {{#if:{{{other|}}} |{{smaller|{{{other}}}}} }}
+
| 2 = {{{armsnote|{{{coatofarmscaption|}}}}}}
            }}<!--
+
}}
      --></div>
 
    }}
 
| data4  = {{#if:{{{image2|}}} | |<hr/>}}
 
  
<!--------------- image2 / Co-incumbent ------------------->
+
| headerstyle = background-color: #eee;
| data6  =
 
    {{#if:{{{image2|}}}
 
    |  <div style="font-size:118%;line-height:1.5em;padding-top:0.5em;"><!--
 
          -->[[File:{{{image2}}}|118px|{{{image2_alt|}}}]]<!--
 
          -->{{#if:{{{incumbent2|}}}
 
              | {{unbulleted list |style=line-height:1.3em;
 
                |li_style1=padding-top:0.25em; | 1 = '''Co-incumbent'''
 
                | 2 = '''<span class="fn">{{{incumbent2}}}</span>'''
 
                | 3 = {{#if:{{{incumbent2since|}}} |{{smaller|since {{{incumbent2since}}}}} }}
 
                | 4 = {{#if:{{{other2|}}} |{{smaller|{{{other2}}}}} }}
 
            }} }}<!--
 
      --></div>
 
    }}
 
|  data7  = {{#if:{{{image2|}}} |<hr/>}}
 
  
<!---------------------- Details -------------------------->
+
| header1 = {{Infobox | child = yes | decat = yes
| label10 = Style
+
| title = {{#if:{{{incumbent|}}}|Incumbent}}
| data10 =
 
    {{#switch:{{{type|[[Majesty|{{{his/her}}} Majesty]]}}}
 
    | commonwealth = [[Majesty|{{{his/her}}} Majesty]]
 
    | non-commonwealth = [[Majesty|{{{his/her}}} Majesty]]
 
    | other = [[Majesty|{{{his/her}}} Majesty]]
 
    | other2 = [[Highness|{{{his/her}}} Highness]]
 
    | other3 = [[Royal Highness|{{{his/her}}} Highness]]
 
    | other4 = [[Serene Highness|{{{his/her}}} Highness]]
 
    | saudi = [[Custodian of the Two Holy Mosques|The Custodian of the Two Holy Mosques]]
 
    | #default = [[Majesty|{{{his/her}}} Majesty]]
 
    }}
 
  
| label12 = [[Heir apparent]]
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=200px|alt={{{alt|}}}}}
| data12 = {{{heir_apparent|}}}
+
| caption = {{{caption|}}}
  
| label14 = [[Heiress apparent]]
+
| data2 = {{#if:{{{incumbent|}}}|'''<span class="fn">{{{incumbent}}}</span>'''{{#if:{{{incumbentsince|}}}|<br />since {{{incumbentsince}}}}}}}
data14 = {{{heiress_apparent|}}}
+
| data3 = {{{other|}}}
 +
  }}
 +
| header2 = {{Infobox | child = yes | decat = yes
 +
| title = {{#if:{{{incumbent2|}}}|Co-incumbent}}
  
| label16 = [[Heir presumptive]]
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{{image2_size|}}}|sizedefault=150px|alt={{{image2_alt|}}}}}
| data16 = {{{heir_presumptive|}}}
+
| caption = {{{caption2|}}}
  
| label18 = [[Heiress presumptive]]
+
| data2 = {{#if:{{{incumbent2|}}}|'''<span class="fn">{{{incumbent2}}}</span>'''{{#if:{{{incumbent2since|}}}|<br />since {{{incumbent2since}}}}}}}
| data18 = {{{heiress_presumptive|}}}
+
| data3 = {{{other2|}}}
 +
}}
  
| label20 = First monarch
+
| header3 = {{#if:{{{heir_apparent|}}}{{{heir_presumptive|}}}{{{first_monarch|}}}{{{last_monarch|}}}{{{formation|{{{began|{{{date|}}}}}}}}}{{{abolition|{{{ended|}}}}}}{{{residence|{{{residences|}}}}}}{{{appointer|}}}{{{pretender|}}}{{{type|}}}{{{his/her|}}}{{{style|}}}|Details}}
data20 = {{{first_monarch|}}}
+
| label4  = Style
 +
| data4 = {{#switch:{{{type}}}
 +
| commonwealth | non-commonwealth | other = {{#if:{{{his/her|}}}|[[Majesty|{{{his/her}}} Majesty]]}}
 +
| 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]]}}
 +
| other4  = {{#if:{{{his/her|}}}|[[Serene Highness|{{{his/her}}} Serene Highness]]}}
 +
| 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]]
 +
| #default = {{#if:{{{style|}}}|{{{style}}}|{{#if:{{{his/her|}}}|[[Majesty|{{{his/her}}} Majesty]]}}}}
 +
}} {{{titlenote|}}}
  
| label22 = Formation
+
| label5  = [[Heir&nbsp;apparent]]
data22 = {{{formation|{{{date|}}}}}}
+
| data5 = {{{heir_apparent|}}}
  
| label24 = Residence{{#if:{{{residences|}}}|s}}
+
| label6  = [[Heir presumptive]]
data24 = {{{residence|{{{residences|}}}}}}
+
| data6 = {{{heir_presumptive|}}}
  
data26 = {{#if:{{{website|}}} |<hr/>}}
+
| label7  = First&nbsp;monarch
 +
| data7 = {{{first_monarch|}}}
  
| label28 = Website
+
| label8  = Last&nbsp;monarch
data28 = {{{website|}}}
+
| data8 = {{{last_monarch|}}}
  
}}</includeonly><noinclude>{{Documentation}}</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>

Latest revision as of 13:04, 3 October 2020

[[Category:Infobox templates|Template:Remove first word]]
[[Category:Infobox templates|Template:Remove first word]]

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

Template:Parameter names example

{{Infobox monarchy
| royal_title        = <!-- Required. No wikilinks. -->
| realm              = <!-- Required. No wikilinks. -->
| native_name        = <!-- Optional. -->
| border             = <!-- Optional. Accepted values: provincial / federal / imperial -->
| coatofarms         = <!-- Optional. Just the image name, no File: or Image: coding. -->
| coatofarms_size    =
| coa_alt            =
| coatofarms_article = <!-- Required if {{{coatofarms}}} field is used. -->
| coatofarmscaption  = 
| type               = <!-- Optional. Type of style used by monarch.
  Accepted values: commonwealth / non-commonwealth / other / other1 / other2 / other3 / other4 / saudi

                            commonwealth: Majesty,
                            non-commonwealth: Majesty,
                            other: Majesty,
                            other1: Imperial Majesty,
                            other2: Highness,
                            other3: Royal Highness,
                            other4: Serene Highness,
                            saudi: Custodian of the Two Holy Mosques -->
| his/her            = <!-- Required, or | style = -->
| image              = <!-- Optional. Just the image name, no File: or Image: coding -->
| image_size         =
| alt                =
| caption            = <!-- Optional. -->
| incumbent          = <!-- Required. -->
| incumbentsince     = <!-- Optional. Enthronement date. -->
| other              = <!-- Optional. Other caption below incumbent's name instead of enthronement date. -->
| image2             = <!-- Optional. Just the image name, no File: or Image: coding -->
| image2_size        =
| image2_alt         =
| caption2           = <!-- Optional. -->
| incumbent2         = <!-- Optional. for a co-principality -->
| incumbent2since    = <!-- Optional. Enthronement date. -->
| other2             = <!-- Optional. Other caption below co-incumbent's name instead of enthronement date. -->
| heir_apparent      = <!-- Optional. -->
| heir_presumptive   = <!-- Optional. -->
| first_monarch      = <!-- Required. -->
| last_monarch       = <!-- Optional. -->
| formation          = <!-- Required. Formation date. -->
| abolition          = <!-- Optional. -->
| residence          = <!-- Optional, or | residences = -->
| appointer          = <!-- Optional. -->
| pretender          = <!-- Optional. -->
| titlenote          =
| website            = <!-- Optional. -->
}}

Example

King of the Belgians
Great coat of arms of Belgium.svg
Incumbent
Koning Filip van België.jpg
Philippe
since 21 July 2013
[[Category:Infobox templates|Template:Remove first word]]
[[Category:Infobox templates|Template:Remove first word]]
Details
StyleHis Majesty
Heir apparentPrincess Elisabeth, Duchess of Brabant
First monarchLeopold I
Formation21 July 1831
WebsiteThe Belgian Monarchy
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox monarchy
| royal_title = King
| realm = the Belgians
| coatofarms = Great Coat of Arms of Belgium.svg
| coatofarms_article = Coat of arms of Belgium
| type = non-commonwealth
| image = Koning Filip van België.jpg
| incumbent = [[Philippe of Belgium|Philippe]]
| incumbentsince = 21 July 2013
| his/her = His
| heir_apparent = [[Princess Elisabeth, Duchess of Brabant]]
| first_monarch = [[Leopold I of Belgium|Leopold I]]
| date = 21 July 1831
| website = [http://www.monarchie.be/en/ The Belgian Monarchy]
}}

Microformat

Template:UF-hcard-person

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Infobox monarchy

No description.

Template parameters

ParameterDescriptionTypeStatus
Residenceresidence

no description

Unknownoptional
Residencesresidences

no description

Unknownoptional

Tracking category

See also

Template:Organization infoboxes