Template:Infobox royalty: Difference between revisions

From Vigyanwiki
Template>Xaosflux
(reorder last 3 variables per editreq on talk)
m (203 revisions imported from alpha:Template:Infobox_royalty)
 
(53 intermediate revisions by 18 users not shown)
Line 1: Line 1:
{| class="infobox vcard" style="font-size: 88%; text-align: left; width: 22em"
{{#if:{{Has short description}} |<!--Do nothing--> |{{Infobox royalty/short description|{{{title|{{{succession|}}}}}}}}}}
|-
{{infobox
! colspan=2 class="fn" style="background-color: #cbe; font-size: 125%; text-align: center" | {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
| child = {{#ifeq:{{lc:{{{embed|}}}}}|yes|yes}}
|-
| bodyclass = vcard
{{#if: {{{title|}}} |<!-- TITLETEXT SWITCH: EMBEDDED BY REALM (ALPHABETICALLY) -->
| aboveclass = fn
{{!}} colspan=2 style="text-align: center" {{!}} ''{{{title|}}}'' <small>{{{titletext|{{#switch:{{lc:{{{more}}}}}
| abovestyle = background-color: #cbe; font-size: 125%
| above =  {{#ifeq:{{lc:{{{embed|}}}}}|yes|| {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} }}
| subheader1  = {{#if: {{{title|}}} |<!-- TITLETEXT SWITCH: EMBEDDED BY REALM (ALPHABETICALLY) -->
''{{{title|}}}'' {{{titletext|{{#switch:{{lc:{{{more}}}}}
| no          =  
| no          =  
| austria    = ''[[Emperor of Austria#Full titles|(more...)]]''
| austria    = ''[[Emperor of Austria#Full titles|(more...)]]''
Line 33: Line 36:
| spain-heir  = ''[[Titles held by the heir apparent to the Spanish Throne|(more...)]]''
| spain-heir  = ''[[Titles held by the heir apparent to the Spanish Throne|(more...)]]''
| sweden      = ''[[Style of the Swedish sovereign|(more...)]]''
| sweden      = ''[[Style of the Swedish sovereign|(more...)]]''
}}}}}
}}
}}
}}}</small>
| imageclass = photo
}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1.0|alt={{{alt|}}}|suppressplaceholder=yes}}
|-
| captionstyle = line-height:normal;padding-bottom:0.2em;padding-top:0.2em;
{{#if: {{{image|}}} |
| caption = {{{caption|}}}
{{!}} colspan=2 style="text-align: center" {{!}} <span class="photo">{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{imgw|}}}}}}|sizedefault=frameless|upright=1.0|alt={{{alt|}}}|suppressplaceholder=yes}}</span>
 
}}
| headerstyle = background-color: #e4dcf6;line-height:normal;padding:0.2em 0.2em
|-
| header1 =  {{#if:{{{succession|}}}|{{{succession}}} {{#if:{{{moretext|}}}|<div style="display:inline;font-weight:normal">{{{moretext}}} </div>}}}}
{{#ifexpr: {{#expr: {{#if: {{{caption|}}}|1|0}} and {{#if: {{{image|}}}|1|0}} }} |
 
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption}}}
| label2 = {{if empty| {{{reign-type|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
}}
| data2 = {{{reign|}}}
|-
 
{{#if: {{{succession|}}} |
| label3 = {{#switch:{{lc:{{{cor-type}}}}}
{{!}} colspan=2 style="background-color: #e4dcf6; text-align: center" {{!}} '''{{{succession}}}''' <small>{{{moretext|}}}</small>
}}
|-
{{#if: {{{reign|}}}|
! {{ifempty| {{{reign-type|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
{{!}} {{{reign}}}
}}
|-
{{#if: {{{coronation|}}}|
! {{#switch:{{lc:{{{cor-type}}}}}
| britain  = [[Coronation of the British monarch|Coronation]]
| britain  = [[Coronation of the British monarch|Coronation]]
| france  = [[Coronation of the French monarch|Coronation]]
| france  = [[Coronation of the French monarch|Coronation]]
Line 64: Line 58:
| norway  = [[Royal coronations in Norway|Coronation]]
| norway  = [[Royal coronations in Norway|Coronation]]
| ottoman  = [[Sword of Osman|Sword girding]]
| ottoman  = [[Sword of Osman|Sword girding]]
| poland  = [[Royal coronations in Poland|Coronation]]
| poland  = [[Coronations in Poland|Coronation]]
| russia  = [[Coronation of the Russian monarch|Coronation]]
| russia  = [[Coronation of the Russian monarch|Coronation]]
| #default = {{{cor-type|[[Coronation]]}}}
| #default = {{if empty|{{{cor-type|}}}|[[Coronation]]}}
}}
{{!}} {{{coronation}}}
}}
|-
{{#if: {{{predecessor|}}}|
! {{{pre-type|Predecessor}}}
{{!}} {{{predecessor}}}
}}
|-
{{#if: {{{successor|}}}|
! {{{suc-type|Successor}}}
{{!}} {{{successor}}}
}}
|-
{{#if: {{{regent|}}}|
! {{{reg-type|Regent}}}
{{!}} {{{regent}}}
}}
|-
{{#if: {{{succession1|}}} |
{{!}} colspan=2 style="background-color: #e4dcf6; text-align: center" {{!}} '''{{{succession1}}}''' <small>{{{moretext1|}}}</small>
}}
|-
{{#if: {{{reign1|}}}|
! {{ifempty| {{{reign-type1|}}} | {{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
{{!}} {{{reign1}}}
}}
|-
{{#if: {{{coronation1|}}}|
! {{{cor-type1|Coronation}}}
{{!}} {{{coronation1}}}
}}
|-
{{#if: {{{predecessor1|}}}|
! {{{pre-type1|Predecessor}}}
{{!}} {{{predecessor1}}}
}}
|-
{{#if: {{{successor1|}}}|
! {{{suc-type1|Successor}}}
{{!}} {{{successor1}}}
}}
|-
{{#if: {{{regent1|}}}|
! {{{reg-type1|Regent}}}
{{!}} {{{regent1}}}
}}
|-
{{#if: {{{succession2|}}} |
{{!}} colspan=2 style="background-color: #e4dcf6; text-align: center" {{!}} '''{{{succession2}}}''' <small>{{{moretext2|}}}</small>
}}
|-
{{#if: {{{reign2|}}}|
! {{ifempty| {{{reign-type2|}}} | {{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
{{!}} {{{reign2}}}
}}
|-
{{#if: {{{coronation2|}}}|
! {{{cor-type2|Coronation}}}
{{!}} {{{coronation2}}}
}}
|-
{{#if: {{{predecessor2|}}}|
! {{{pre-type2|Predecessor}}}
{{!}} {{{predecessor2}}}
}}
|-
{{#if: {{{successor2|}}}|
! {{{suc-type2|Successor}}}
{{!}} {{{successor2}}}
}}
|-
{{#if: {{{regent2|}}}|
! {{{reg-type2|Regent}}}
{{!}} {{{regent2}}}
}}
|-
{{#if: {{{succession3|}}} |
{{!}} colspan=2 style="background-color: #e4dcf6; text-align: center" {{!}} '''{{{succession3}}}''' <small>{{{moretext3|}}}</small>
}}
|-
{{#if: {{{reign3|}}}|
! {{ifempty| {{{reign-type3|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
{{!}} {{{reign3}}}
}}
|-
{{#if: {{{coronation3|}}}|
! {{{cor-type3|Coronation}}}
{{!}} {{{coronation3}}}
}}
|-
{{#if: {{{predecessor3|}}}|
! {{{pre-type3|Predecessor}}}
{{!}} {{{predecessor3}}}
}}
|-
{{#if: {{{successor3|}}}|
! {{{suc-type3|Successor}}}
{{!}} {{{successor3}}}
}}
|-
{{#if: {{{regent3|}}}|
! {{{reg-type3|Regent}}}
{{!}} {{{regent3}}}
}}
|-
{{#if: {{{succession|}}} |
{{!}} colspan=2 style="background-color: #e4dcf6; height: 4px; text-align: center" {{!}}
}}
|-
{{#if: {{{spouse|}}}|
! {{{spouse-type|{{#switch:{{{type}}}|monarch={{#switch:{{{consort}}}|yes=Spouse|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Spouse|Consort}}<!--BACKWARD COMPAT FROM IBR-->}}|majesty={{#switch:{{{consort}}}|yes=Spouse|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Spouse|Consort}}<!--BACKWARD COMPAT FROM IBR-->}}|Spouse}}}}}
{{!}} {{#if:1|{{{spouse}}}}}
}}
|-
<!--FOOLPROOFING. USE NOT GENERALLY ENCOURAGED: USE spouse-->{{#if: {{{spouses|}}}|
! {{{spouses-type|Spouse}}}
{{!}} {{#if:1|{{{spouses}}}}}
}}
|-
{{#if:{{{issue|}}} |
! Issue{{#if:{{{issue-link|}}}|<br><span style="font-size:smaller; font-weight:normal">''[[{{{issue-link}}}|{{#if:{{{issue-pipe|}}}|{{{issue-pipe}}}|Detail}}]]''</span>}}
{{!}} {{#if:1|{{{issue}}}}}
}}
|-
{{#if: {{{full name|}}} |
! colspan=2 style="text-align: left" {{!}} Full name
{{!}}-
{{!}} colspan=2 class="nickname" {{!}} {{{full name}}}<!-- "nickname" is the correct parameter value for hCard -->
}}
|-
{{#if: {{{era dates|}}} |
! colspan=2 style="text-align: left" {{!}} Era {{#if:{{{era name|}}}|name and&nbsp;}}dates
{{!}}-
{{!}} colspan=2 {{!}} {{#if:{{{era name|}}}|{{{era name}}}:&nbsp;}}{{{era dates}}}
}}
|-
{{#if: {{{regnal name|}}} |
! colspan=2 style="text-align: left" {{!}} [[Regnal name]]
{{!}}-
{{!}} colspan=2 {{!}} {{{regnal name}}}
}}
|-
{{#if: {{{posthumous name|}}} |
! colspan=2 style="text-align: left" {{!}} [[Posthumous name]]
{{!}}-
{{!}} colspan=2 {{!}} {{{posthumous name}}}
}}
|-
{{#if: {{{temple name|}}} |
! colspan=2 style="text-align: left" {{!}} [[Temple name]]
{{!}}-
{{!}} colspan=2 {{!}} {{{temple name}}}
}}
|-
{{#if: {{{house|}}}|
! [[Dynasty|{{{house-type|{{#switch:{{{house-type}}}|House}}}}}]]
{{!}} {{{house}}}
}}
|-
{{#if: {{{father|}}}|
! Father
{{!}} {{{father}}}
}}
|-
{{#if: {{{mother|}}}|
! Mother
{{!}} {{{mother}}}
}}
|-
{{#if:{{{birth_date|}}}{{{birth_place|}}}|
! Born
{{!}} {{br separated entries| {{{birth_date|}}} | {{{birth_place|}}} }}
}}
|-
{{#if:{{{death_date|}}}{{{death_place|}}}|
! Died
{{!}} {{br separated entries| {{{death_date|}}} | {{{death_place|}}} }}
}}
|-
{{#if:{{{burial_date|{{{date of burial|}}}}}}{{{burial_place|{{{place of burial|}}}}}}|
! Burial
{{!}} {{br separated entries | {{{burial_date|{{{date of burial|}}}}}} | {{#if:{{{burial_place|{{{place of burial|}}}}}}|<span class="label">{{{burial_place|{{{place of burial|}}}}}}</span>}} }}
}}
|-
{{#if: {{{religion|}}}|
! Religion
{{!}} {{{religion}}}
}}
|-
{{#if: {{{occupation|}}}|
! Occupation
{{!}} {{{occupation}}}
}}
}}
|-
| data3 = {{{coronation|}}}
{{#if:{{{signature|}}}|
 
! {{#if:{{{signature_type|}}}| {{{signature_type}}} | Signature }}
| label4 = Investiture
{{!}} [[File:{{{signature}}}|125px|alt={{{signature_alt|}}}|{{PAGENAME}}'s signature]]
| data4 = {{{investiture|}}}
 
| label5 = {{#if:{{{pre-type|}}}|{{{pre-type}}}|Predecessor}}
| data5 = {{{predecessor|}}}
 
| label6 = {{#if:{{{suc-type|}}}|{{{suc-type}}}|Successor}}
| data6 = {{{successor|}}}
 
| label7 = {{#if:{{{reg-type|}}}|{{{reg-type}}}|Regent}}
| data7 = {{{regent|}}}
 
| header8 =  {{#if:{{{succession1|}}}|{{{succession1}}} {{#if:{{{moretext1|}}}|<div style="display:inline;font-weight:normal">{{{moretext1}}} </div>}}}}
 
| label9 = {{if empty| {{{reign-type1|}}} | {{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data9 = {{{reign1|}}}
 
| label10 = {{#if:{{{cor-type1|}}}|{{{cor-type1}}}|Coronation}}
| data10 = {{{coronation1|}}}
 
| label11 = {{#if:{{{pre-type1|}}}|{{{pre-type1}}}|Predecessor}}
| data11 = {{{predecessor1|}}}
 
| label12 = {{#if:{{{suc-type1|}}}|{{{suc-type1}}}|Successor}}
| data12 = {{{successor1|}}}
 
| label13 = {{#if:{{{reg-type1|}}}|{{{reg-type1}}}|Regent}}
| data13 = {{{regent1|}}}
 
| header14 =  {{#if:{{{succession2|}}}|{{{succession2}}} {{#if:{{{moretext2|}}}|<div style="display:inline;font-weight:normal">{{{moretext2}}} </div>}}}}
 
| label15 = {{if empty| {{{reign-type2|}}} | {{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data15 = {{{reign2|}}}
 
| label16 = {{#if:{{{cor-type2|}}}|{{{cor-type2}}}|Coronation}}
| data16 = {{{coronation2|}}}
 
| label17 = {{#if:{{{pre-type2|}}}|{{{pre-type2}}}|Predecessor}}
| data17 = {{{predecessor2|}}}
 
| label18 = {{#if:{{{suc-type2|}}}|{{{suc-type2}}}|Successor}}
| data18 = {{{successor2|}}}
 
| label19 = {{#if:{{{reg-type2|}}}|{{{reg-type2}}}|Regent}}
| data19 = {{{regent2|}}}
 
| header20 =  {{#if:{{{succession3|}}}|{{{succession3}}} {{#if:{{{moretext3|}}}|<div style="display:inline;font-weight:normal">{{{moretext3}}} </div>}}}}
 
| label21 = {{if empty| {{{reign-type3|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data21 = {{{reign3|}}}
 
| label22 = {{#if:{{{cor-type3|}}}|{{{cor-type3}}}|Coronation}}
| data22 = {{{coronation3|}}}
 
| label23 = {{#if:{{{pre-type3|}}}|{{{pre-type3}}}|Predecessor}}
| data23 = {{{predecessor3|}}}
 
| label24 = {{#if:{{{suc-type3|}}}|{{{suc-type3}}}|Successor}}
| data24 = {{{successor3|}}}
 
| label25 = {{#if:{{{reg-type3|}}}|{{{reg-type3}}}|Regent}}
| data25 = {{{regent3|}}}
 
| header26 =  {{#if:{{{succession4|}}}|{{{succession4}}} {{#if:{{{moretext4|}}}|<div style="display:inline;font-weight:normal">{{{moretext4}}} </div>}}}}
 
| label27 = {{if empty| {{{reign-type4|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data27 = {{{reign4|}}}
 
| label28 = {{#if:{{{cor-type4|}}}|{{{cor-type4}}}|Coronation}}
| data28 = {{{coronation4|}}}
 
| label29 = {{#if:{{{pre-type4|}}}|{{{pre-type4}}}|Predecessor}}
| data29 = {{{predecessor4|}}}
 
| label30 = {{#if:{{{suc-type4|}}}|{{{suc-type4}}}|Successor}}
| data30 = {{{successor4|}}}
 
| label31 = {{#if:{{{reg-type4|}}}|{{{reg-type4}}}|Regent}}
| data31 = {{{regent4|}}}
 
| header32 =  {{#if:{{{succession5|}}}|{{{succession5}}} {{#if:{{{moretext5|}}}|<div style="display:inline;font-weight:normal">{{{moretext5}}} </div>}}}}
 
| label33 = {{if empty| {{{reign-type5|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data33 = {{{reign5|}}}
 
| label34 = {{#if:{{{cor-type5|}}}|{{{cor-type5}}}|Coronation}}
| data34 = {{{coronation5|}}}
 
| label35 = {{#if:{{{pre-type5|}}}|{{{pre-type5}}}|Predecessor}}
| data35 = {{{predecessor5|}}}
 
| label36 = {{#if:{{{suc-type5|}}}|{{{suc-type5}}}|Successor}}
| data36 = {{{successor5|}}}
 
| label37 = {{#if:{{{reg-type5|}}}|{{{reg-type5}}}|Regent}}
| data37 = {{{regent5|}}}
 
| header38 =  {{#if:{{{succession6|}}}|{{{succession6}}} {{#if:{{{moretext6|}}}|<div style="display:inline;font-weight:normal">{{{moretext6}}} </div>}}}}
 
| label39 = {{if empty| {{{reign-type6|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data39 = {{{reign6|}}}
 
| label40 = {{#if:{{{cor-type6|}}}|{{{cor-type6}}}|Coronation}}
| data40 = {{{coronation6|}}}
 
| label41 = {{#if:{{{pre-type6|}}}|{{{pre-type6}}}|Predecessor}}
| data41 = {{{predecessor6|}}}
 
| label42 = {{#if:{{{suc-type6|}}}|{{{suc-type6}}}|Successor}}
| data42 = {{{successor6|}}}
 
| label43 = {{#if:{{{reg-type6|}}}|{{{reg-type6}}}|Regent}}
| data43 = {{{regent6|}}}
 
| header44 =  {{#if:{{{succession7|}}}|{{{succession7}}} {{#if:{{{moretext7|}}}|<div style="display:inline;font-weight:normal">{{{moretext7}}} </div>}}}}
 
| label45 = {{if empty| {{{reign-type7|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data45 = {{{reign7|}}}
 
| label46 = {{#if:{{{cor-type7|}}}|{{{cor-type7}}}|Coronation}}
| da