Template:Infobox royalty: Difference between revisions
From Vigyanwiki
Template>DrKay (There is no consensus for this change, as demonstrated on the talk page.) |
Template>Thumperward (cut out some cruft and optimise code) |
||
Line 1: | Line 1: | ||
{| class="infobox vcard" style="font-size: 88%; text-align: left; width: 22em | {| class="infobox vcard" style="font-size: 88%; text-align: left; width: 22em" | ||
|- | |- | ||
! colspan=" | ! colspan=2 class="fn" style="background-color: #cbe; font-size: 125%; text-align: center" | {{{name|<includeonly>{{PAGENAME}}</includeonly>}}} | ||
|- | |- | ||
{{#if: {{{title| | {{#if: {{{title|}}} |<!-- TITLETEXT SWITCH: EMBEDDED BY REALM (ALPHABETICALLY) --> | ||
{{!}} colspan= | {{!}} colspan=2 style="text-align: center" {{!}} ''{{{title|}}}'' <small>{{{titletext|{{#switch:{{{more}}} | ||
| no = | | no = | ||
| austria = ''[[Emperor of Austria#Full titles|(more...)]]'' | | austria = ''[[Emperor of Austria#Full titles|(more...)]]'' | ||
| belgium = ''[[Monarchy of Belgium#Title|(more...)]]'' | | belgium = ''[[Monarchy of Belgium#Title|(more...)]]'' | ||
| britain = ''[[Style of the British sovereign#Styles of British sovereigns|(more...)]]'' | | britain = ''[[Style of the British sovereign#Styles of British sovereigns|(more...)]]'' | ||
| china = ''[[Chinese sovereign|(more...)]]'' | | china = ''[[Chinese sovereign|(more...)]]'' | ||
| cyprus = ''[[Style of the Greek Sovereign#List of changes to the royal style|(more...)]]'' | | cyprus = ''[[Style of the Greek Sovereign#List of changes to the royal style|(more...)]]'' | ||
| denmark = ''[[Style of the Danish sovereign|(more...)]]'' | | denmark = ''[[Style of the Danish sovereign|(more...)]]'' | ||
| en-sco = ''[[Style of the British sovereign#Styles of English and Scottish sovereigns|(more...)]]'' | | en-sco = ''[[Style of the British sovereign#Styles of English and Scottish sovereigns|(more...)]]'' | ||
| england = ''[[Style of the British sovereign#Styles of English sovereigns|(more...)]]'' | | england = ''[[Style of the British sovereign#Styles of English sovereigns|(more...)]]'' | ||
| ethiopia = ''[[Emperor of Ethiopia#Style|(more...)]]'' | | ethiopia = ''[[Emperor of Ethiopia#Style|(more...)]]'' | ||
| france = ''[[Style of the French sovereign#List of changes to the royal style|(more...)]]'' | | france = ''[[Style of the French sovereign#List of changes to the royal style|(more...)]]'' | ||
| hre = ''[[Holy Roman Emperor#Coronation|(more...)]]'' | | hre = ''[[Holy Roman Emperor#Coronation|(more...)]]'' | ||
| hungary = ''[[Styles of Hungarian sovereigns|(more...)]]'' | | hungary = ''[[Styles of Hungarian sovereigns|(more...)]]'' | ||
| italy = ''[[Style of the Italian sovereign|(more...)]]'' | | italy = ''[[Style of the Italian sovereign|(more...)]]'' | ||
| jerusalem = ''[[Kings of Jerusalem#Kings of Jerusalem (1099–1291)|(more...)]]'' | | jerusalem = ''[[Kings of Jerusalem#Kings of Jerusalem (1099–1291)|(more...)]]'' | ||
| luxembourg = ''[[Grand Duke of Luxembourg#Full titles|(more...)]]'' | | luxembourg = ''[[Grand Duke of Luxembourg#Full titles|(more...)]]'' | ||
| malaysia = ''[[Malay titles#Malay_royalty|(more...)]]'' | | malaysia = ''[[Malay titles#Malay_royalty|(more...)]]'' | ||
| monaco = ''[[Style of the Monegasque sovereign|(more...)]]'' | | monaco = ''[[Style of the Monegasque sovereign|(more...)]]'' | ||
| netherlands = ''[[Monarchy of the Netherlands#Full title|(more...)]]'' | | netherlands = ''[[Monarchy of the Netherlands#Full title|(more...)]]'' | ||
| norway = ''[[Style of the Norwegian sovereign|(more...)]]'' | | norway = ''[[Style of the Norwegian sovereign|(more...)]]'' | ||
| parma = ''[[List of Dukes of Parma|(more...)]]'' | | parma = ''[[List of Dukes of Parma|(more...)]]'' | ||
| portugal = ''[[Style of the Portuguese sovereign|(more...)]]'' | | portugal = ''[[Style of the Portuguese sovereign|(more...)]]'' | ||
| russia = ''[[Tsar#Full style of Russian Sovereigns|(more...)]]'' | | russia = ''[[Tsar#Full style of Russian Sovereigns|(more...)]]'' | ||
| scotland = ''[[Style of the monarchs of Scotland#From the late Middle Ages to the Acts of Union|(more...)]]'' | | scotland = ''[[Style of the monarchs of Scotland#From the late Middle Ages to the Acts of Union|(more...)]]'' | ||
| sicilies = ''[[Kingdom of the Two Sicilies#Titles of King of the Two Sicilies|(more...)]]'' | | sicilies = ''[[Kingdom of the Two Sicilies#Titles of King of the Two Sicilies|(more...)]]'' | ||
| spain-crown = ''[[List of titles and honours of the Spanish Crown|(more...)]]'' | | spain-crown = ''[[List of titles and honours of the Spanish Crown|(more...)]]'' | ||
| 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> | }}}</small> | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{image| | {{#if: {{{image|}}} | | ||
{{!}} colspan= | {{!}} colspan=2 style="text-align: center" {{!}} <span class="photo">[[Image:{{{image}}}|{{{imgw|210}}}px|alt={{{alt|}}}|{{{caption|}}}]]</span> | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{caption| | {{#if: {{{caption|}}} | | ||
{{!}} colspan= | {{!}} colspan=2 style="text-align: center" {{!}} ''{{{caption}}}'' | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{succession| | {{#if: {{{succession|}}} | | ||
{{!}} colspan= | {{!}} colspan=2 style="background-color: #e4dcf6; text-align: right" {{!}} <center>'''{{{succession}}}''' <small>{{{moretext|}}}</small> </center> | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{reign| | {{#if: {{{reign|}}}| | ||
! | ! {{{reign-type|{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}}}}} | ||
{{!}} {{{reign}}} | {{!}} {{{reign}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{coronation| | {{#if: {{{coronation|}}}| | ||
! | ! {{{cor-type|[[Coronation]]}}} | ||
{{!}} {{{coronation}}} | {{!}} {{{coronation}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{predecessor| | {{#if: {{{predecessor|}}}| | ||
! | ! {{{pre-type|Predecessor}}} | ||
{{!}} {{{predecessor}}} | {{!}} {{{predecessor}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{successor| | {{#if: {{{successor|}}}| | ||
! | ! {{{suc-type|Successor}}} | ||
{{!}} {{{successor}}} | {{!}} {{{successor}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{regent| | {{#if: {{{regent|}}}| | ||
! | ! {{{reg-type|Regent}}} | ||
{{!}} {{{regent}}} | {{!}} {{{regent}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{succession1| | {{#if: {{{succession1|}}} | | ||
{{!}} colspan= | {{!}} colspan=2 style="background-color: #e4dcf6; text-align: right" {{!}} <center>'''{{{succession1}}}''' <small>{{{moretext1|}}}</small> </center> | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{reign1| | {{#if: {{{reign1|}}}| | ||
! | ! {{{reign-type1|{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}}}}} | ||
{{!}} {{{reign1}}} | {{!}} {{{reign1}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{coronation1| | {{#if: {{{coronation1|}}}| | ||
! | ! {{{cor-type1|Coronation}}} | ||
{{!}} {{{coronation1}}} | {{!}} {{{coronation1}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{predecessor1| | {{#if: {{{predecessor1|}}}| | ||
! | ! {{{pre-type1|Predecessor}}} | ||
{{!}} {{{predecessor1}}} | {{!}} {{{predecessor1}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{successor1| | {{#if: {{{successor1|}}}| | ||
! | ! {{{suc-type1|Successor}}} | ||
{{!}} {{{successor1}}} | {{!}} {{{successor1}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{regent1| | {{#if: {{{regent1|}}}| | ||
! | ! {{{reg-type1|Regent}}} | ||
{{!}} {{{regent1}}} | {{!}} {{{regent1}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{succession2| | {{#if: {{{succession2|}}} | | ||
{{!}} colspan= | {{!}} colspan=2 style="background-color: #e4dcf6; text-align: right" {{!}} <center>'''{{{succession2}}}''' <small>{{{moretext2|}}}</small> </center> | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{reign2| | {{#if: {{{reign2|}}}| | ||
! | ! {{{reign-type2|{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}}}}} | ||
{{!}} {{{reign2}}} | {{!}} {{{reign2}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{coronation2| | {{#if: {{{coronation2|}}}| | ||
! | ! {{{cor-type2|Coronation}}} | ||
{{!}} {{{coronation2}}} | {{!}} {{{coronation2}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{predecessor2| | {{#if: {{{predecessor2|}}}| | ||
! | ! {{{pre-type2|Predecessor}}} | ||
{{!}} {{{predecessor2}}} | {{!}} {{{predecessor2}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{successor2| | {{#if: {{{successor2|}}}| | ||
! | ! {{{suc-type2|Successor}}} | ||
{{!}} {{{successor2}}} | {{!}} {{{successor2}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{regent2| | {{#if: {{{regent2|}}}| | ||
! | ! {{{reg-type2|Regent}}} | ||
{{!}} {{{regent2}}} | {{!}} {{{regent2}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{succession3| | {{#if: {{{succession3|}}} | | ||
{{!}} colspan= | {{!}} colspan=2 style="background-color: #e4dcf6; text-align: right" {{!}} <center>'''{{{succession3}}}''' <small>{{{moretext3|}}}</small> </center> | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{reign3| | {{#if: {{{reign3|}}}| | ||
! | ! {{{reign-type3|{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}}}}} | ||
{{!}} {{{reign3}}} | {{!}} {{{reign3}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{coronation3| | {{#if: {{{coronation3|}}}| | ||
! | ! {{{cor-type3|Coronation}}} | ||
{{!}} {{{coronation3}}} | {{!}} {{{coronation3}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{predecessor3| | {{#if: {{{predecessor3|}}}| | ||
! | ! {{{pre-type3|Predecessor}}} | ||
{{!}} {{{predecessor3}}} | {{!}} {{{predecessor3}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{successor3| | {{#if: {{{successor3|}}}| | ||
! | ! {{{suc-type3|Successor}}} | ||
{{!}} {{{successor3}}} | {{!}} {{{successor3}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{regent3| | {{#if: {{{regent3|}}}| | ||
! | ! {{{reg-type3|Regent}}} | ||
{{!}} {{{regent3}}} | {{!}} {{{regent3}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{succession| | {{#if: {{{succession|}}} | | ||
{{!}} colspan= | {{!}} colspan=2 style="background-color: #e4dcf6; height: 4px; text-align: center" {{!}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{spouse| | {{#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}}}}} | ||
{{!}} {{{spouse}}} | {{!}} {{{spouse}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
<!--FOOLPROOFING. USE NOT GENERALLY ENCOURAGED: USE spouse-->{{#if: {{{spouses| | <!--FOOLPROOFING. USE NOT GENERALLY ENCOURAGED: USE spouse-->{{#if: {{{spouses|}}}| | ||
! | ! {{{spouses-type|Spouse}}} | ||
{{!}} {{{spouses}}} | {{!}} {{{spouses}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{issue| | {{#if:{{{issue|}}} | | ||
! colspan= | ! colspan=2 {{!}} {{#if:{{{issue-link|}}}|<div style="float: right"><small>''[[{{{issue-link}}}{{!}}{{#if:{{{issue-pipe|}}}|{{{issue-pipe}}}|Detail}}]]''</small></div>}}Issue | ||
{{!}}- | {{!}}- | ||
{{!}} colspan= | {{!}} colspan=2 {{!}} {{{issue}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{full name| | {{#if: {{{full name|}}} | | ||
! colspan= | ! colspan=2 {{!}} Full name | ||
{{!}}- | {{!}}- | ||
{{!}} colspan= | {{!}} colspan=2 {{!}} <span class="nickname">{{{full name}}}</span><!-- "nickname" is the correct parameter value for hCard --> | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{era dates| | {{#if: {{{era dates|}}} | | ||
! colspan= | ! colspan=2 {{!}} Era {{#if:{{{era name|}}}|name and }}dates | ||
{{!}}- | {{!}}- | ||
{{!}} colspan= | {{!}} colspan=2 {{!}} {{#if:{{{era name|}}}|{{{era name}}}: }}{{{era dates}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{posthumous name| | {{#if: {{{posthumous name|}}} | | ||
! colspan= | ! colspan=2 {{!}} Posthumous name | ||
{{!}}- | {{!}}- | ||
{{!}} colspan= | {{!}} colspan=2 {{!}} {{{posthumous name}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{temple name| | {{#if: {{{temple name|}}} | | ||
! colspan= | ! colspan=2 {{!}} Temple name | ||
{{!}}- | {{!}}- | ||
{{!}} colspan= | {{!}} colspan=2 {{!}} {{{temple name}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{house| | {{#if: {{{house|}}}| | ||
! | ! [[Royal house{{!}}{{{house-type|{{#switch:{{{house-type}}}|House}}}}}]] | ||
{{!}} {{{house}}} | {{!}} {{{house}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{father| | {{#if: {{{father|}}}| | ||
! | ! Father | ||
{{!}} {{{father}}} | {{!}} {{{father}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{mother| | {{#if: {{{mother|}}}| | ||
! | ! Mother | ||
{{!}} {{{mother}}} | {{!}} {{{mother}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{date of birth| | {{#if:{{{date of birth|}}}{{{place of birth|}}}| | ||
{{!}} {{{date of birth}}} | ! Born | ||
{{!}} {{{date of birth|}}}{{#if:{{{place of birth|}}}|{{#if:{{{date of birth}}}|<br />}}{{{place of birth|}}} }} | |||
{{!}}- | {{!}}- | ||
}} | |||
{{#if:{{{date of death| | {{#if:{{{date of death|}}}{{{place of death|}}}| | ||
{{!}} {{{date of death}}} | ! Died | ||
{{!}} {{{date of death|}}}{{#if:{{{place of death}}}|{{#if:{{{date of death}}}<br />}}{{{place of death|}}} }} | |||
{{!}}- | {{!}}- | ||
}} | |||
{{#if:{{{date of burial| | {{#if:{{{date of burial|}}}{{{place of burial|}}}| | ||
{{!}} {{{date of burial}}} | ! Burial | ||
{{!}} {{{date of burial|}}}{{#if:{{{place of burial|}}}|{{#if:{{{date of burial}}}<br />}}<span class="label">{{{place of burial|}}}</span>}} | |||
{{!}}- | {{!}}- | ||
}} | |||
{{#if: {{{occupation| | {{#if: {{{occupation|}}}| | ||
! | ! Occupation | ||
{{!}} {{{occupation}}} | {{!}} {{{occupation}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{signature| | {{#if:{{{signature|}}}| | ||
! Signature | ! Signature | ||
{{!}} [[Image:{{{signature}}}|125px|alt={{{signature_alt|}}}|{{PAGENAME}}'s signature]] | {{!}} [[Image:{{{signature}}}|125px|alt={{{signature_alt|}}}|{{PAGENAME}}'s signature]] | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if: {{{religion| | {{#if: {{{religion|}}}| | ||
! | ! Religion | ||
{{!}} {{{religion}}} | {{!}} {{{religion}}} | ||
{{!}}- | {{!}}- |
Revision as of 16:47, 6 July 2010
Template documentation
[create]