Template:Infobox royalty: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content added Content deleted
(ce)
(use infobox (update from sandbox, and tested in testcases))
Line 1: Line 1:
{{infobox
{| class="infobox vcard" style="font-size: 88%; text-align: left; width: 22em"
| bodyclass = vcard
|-
| aboveclass = fn
! colspan=2 class="fn" style="background-color: #cbe; font-size: 125%; text-align: center" | {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
| abovestyle = background-color: #cbe; font-size: 125%
|-
| above = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
{{#if: {{{title|}}} |<!-- TITLETEXT SWITCH: EMBEDDED BY REALM (ALPHABETICALLY) -->
| subheader1 = {{#if: {{{title|}}} |<!-- TITLETEXT SWITCH: EMBEDDED BY REALM (ALPHABETICALLY) -->
{{!}} colspan=2 style="text-align: center" {{!}} ''{{{title|}}}'' <small>{{{titletext|{{#switch:{{lc:{{{more}}}}}
''{{{title|}}}'' <small>{{{titletext|{{#switch:{{lc:{{{more}}}}}
| no =
| no =
| austria = ''[[Emperor of Austria#Full titles|(more...)]]''
| austria = ''[[Emperor of Austria#Full titles|(more...)]]''
Line 33: Line 34:
| 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
}}}</small>
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{imgw|}}}}}}|sizedefault=frameless|upright=1.0|alt={{{alt|}}}|suppressplaceholder=yes}}
}}
| caption = {{{caption|}}}
|-

{{#if: {{{image|}}} |
| headerstyle = background-color: #e4dcf6
{{!}} 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>
| header1 = {{#if:{{{succession|}}}|{{{succession}}} {{#if:{{{moretext|}}}|{{nobold|<small>{{{moretext}}}</small>}}}}}}
}}

|-
{{#ifexpr: {{#expr: {{#if: {{{caption|}}}|1|0}} and {{#if: {{{image|}}}|1|0}} }} |
| label2 = {{ifempty| {{{reign-type|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data2 = {{{reign|}}}
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption}}}

}}
| label3 = {{#switch:{{lc:{{{cor-type}}}}}
|-
{{#if: {{{succession|}}} |
{{!}} 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 68: Line 59:
| #default = {{{cor-type|[[Coronation]]}}}
| #default = {{{cor-type|[[Coronation]]}}}
}}
}}
{{!}} {{{coronation}}}
| data3 = {{{coronation|}}}

}}
| label4 = Investiture
|-
{{#if: {{{investiture|}}}|
| data4 = {{{investiture|}}}

! Investiture
| label5 = {{{pre-type|Predecessor}}}
{{!}} {{{investiture}}}
| data5 = {{{predecessor|}}}
}}

|-
{{#if: {{{predecessor|}}}|
| label6 = {{{suc-type|Successor}}}
! {{{pre-type|Predecessor}}}
| data6 = {{{successor|}}}

{{!}} {{{predecessor}}}
| label7 = {{{reg-type|Regent}}}
}}
| data7 = {{{regent|}}}
|-

{{#if: {{{successor|}}}|
| header8 = {{#if:{{{succession1|}}}|{{{succession1}}} {{#if:{{{moretext1|}}}|{{nobold|<small>{{{moretext1}}}</small>}}}}}}
! {{{suc-type|Successor}}}

{{!}} {{{successor}}}
| label9 = {{ifempty| {{{reign-type1|}}} | {{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
}}
| data9 = {{{reign1|}}}
|-

{{#if: {{{regent|}}}|
! {{{reg-type|Regent}}}
| label10 = {{{cor-type1|Coronation}}}
{{!}} {{{regent}}}
| data10 = {{{coronation1|}}}

}}
| label11 = {{{pre-type1|Predecessor}}}
|-
{{#if: {{{succession1|}}} |
| data11 = {{{predecessor1|}}}

{{!}} colspan=2 style="background-color: #e4dcf6; text-align: center" {{!}} '''{{{succession1}}}''' <small>{{{moretext1|}}}</small>
| label12 = {{{suc-type1|Successor}}}
}}
| data12 = {{{successor1|}}}
|-

{{#if: {{{reign1|}}}|
| label13 = {{{reg-type1|Regent}}}
! {{ifempty| {{{reign-type1|}}} | {{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
{{!}} {{{reign1}}}
| data13 = {{{regent1|}}}

}}
| header14 = {{#if:{{{succession2|}}}|{{{succession2}}} {{#if:{{{moretext2|}}}|{{nobold|<small>{{{moretext2}}}</small>}}}}}}
|-

{{#if: {{{coronation1|}}}|
| label15 = {{ifempty| {{{reign-type2|}}} | {{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
! {{{cor-type1|Coronation}}}
{{!}} {{{coronation1}}}
| data15 = {{{reign2|}}}

}}
| label16 = {{{cor-type2|Coronation}}}
|-
{{#if: {{{predecessor1|}}}|
| data16 = {{{coronation2|}}}

! {{{pre-type1|Predecessor}}}
| label17 = {{{pre-type2|Predecessor}}}
{{!}} {{{predecessor1}}}
| data17 = {{{predecessor2|}}}
}}

|-
{{#if: {{{successor1|}}}|
| label18 = {{{suc-type2|Successor}}}
! {{{suc-type1|Successor}}}
| data18 = {{{successor2|}}}

{{!}} {{{successor1}}}
| label19 = {{{reg-type2|Regent}}}
}}
| data19 = {{{regent2|}}}
|-

{{#if: {{{regent1|}}}|
| header20 = {{#if:{{{succession3|}}}|{{{succession3}}} {{#if:{{{moretext3|}}}|{{nobold|<small>{{{moretext3}}}</small>}}}}}}
! {{{reg-type1|Regent}}}

{{!}} {{{regent1}}}
| label21 = {{ifempty| {{{reign-type3|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
}}
| data21 = {{{reign3|}}}
|-

{{#if: {{{succession2|}}} |
| label22 = {{{cor-type3|Coronation}}}
{{!}} colspan=2 style="background-color: #e4dcf6; text-align: center" {{!}} '''{{{succession2}}}''' <small>{{{moretext2|}}}</small>
| data22 = {{{coronation3|}}}
}}

|-
| label23 = {{{pre-type3|Predecessor}}}
{{#if: {{{reign2|}}}|
| data23 = {{{predecessor3|}}}
! {{ifempty| {{{reign-type2|}}} | {{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}

{{!}} {{{reign2}}}
| label24 = {{{suc-type3|Successor}}}
}}
| data24 = {{{successor3|}}}
|-

{{#if: {{{coronation2|}}}|
! {{{cor-type2|Coronation}}}
| label25 = {{{reg-type3|Regent}}}
{{!}} {{{coronation2}}}
| data25 = {{{regent3|}}}

}}
| header26 = {{#if: {{{succession|}}} | <div style="height: 4px; width:100%;"></div>}}
|-

{{#if: {{{predecessor2|}}}|
| label27 = Consort
! {{{pre-type2|Predecessor}}}
{{!}} {{{predecessor2}}}
| data27 = {{{queen|}}}

}}
| label28 = {{{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: {{{successor2|}}}|
| data28 = {{{spouse|}}}

! {{{suc-type2|Successor}}}
| label29 = {{{spouses-type|Spouse}}}<!--FOOLPROOFING. USE NOT GENERALLY ENCOURAGED: USE spouse-->
{{!}} {{{successor2}}}
| data29 = {{{spouses|}}}
}}

|-
{{#if: {{{regent2|}}}|
| label30 = {{#if:{{{spouse 2|}}} | Wives | Wife }}
| data30 = {{#if: {{{spouse 1|}}}|
! {{{reg-type2|Regent}}}
{{unbulleted list
{{!}} {{{regent2}}}
| {{{spouse 1}}}
}}
| {{{spouse 2|}}}
|-
{{#if: {{{succession3|}}} |
| {{{spouse 3|}}}
| {{{spouse 4|}}}
{{!}} colspan=2 style="background-color: #e4dcf6; text-align: center" {{!}} '''{{{succession3}}}''' <small>{{{moretext3|}}}</small>
| {{{spouse 5|}}}
}}
| {{{spouse 6|}}}
|-
{{#if: {{{reign3|}}}|
| {{{spouse 7|}}}
| {{{spouse 8|}}}
! {{ifempty| {{{reign-type3|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
{{!}} {{{reign3}}}
| {{{spouse 9|}}}
}}
}}}}

|-
| label31 = Issue{{#if:{{{issue-link|}}}|<br><span style="font-size:smaller; font-weight:normal">''[[{{{issue-link}}}|{{#if:{{{issue-pipe|}}}|{{{issue-pipe}}}|Detail}}]]''</span>}}
{{#if: {{{coronation3|}}}|
! {{{cor-type3|Coronation}}}
| data31 = {{{issue|}}}

{{!}} {{{coronation3}}}
| data32 = {{#if:{{{full name|}}}{{{family_name|}}}{{{clan_name|}}}{{{given_name|}}}{{{era dates|}}}{{{regnal name|}}}{{{posthumous name|}}}{{{temple name|}}}|
}}
{{Infobox|child=yes
|-
| headerstyle = text-align:left
{{#if: {{{predecessor3|}}}|
| datastyle = text-align:left; padding-left:0.7em;
! {{{pre-type3|Predecessor}}}
| header1 = {{#if:{{{full name|}}}|Full name}}
{{!}} {{{predecessor3}}}
| class2 = nickname <!-- "nickname" is the correct parameter value for hCard -->
}}
| data2 = {{{full name|}}}
|-
| header3 = {{#if:{{{family_name|}}}{{{clan_name|}}}{{{given_name|}}}|Full name}}
{{#if: {{{successor3|}}}|
| data4 = {{#if:{{{family_name|}}}{{{clan_name|}}}{{{given_name|}}}|
! {{{suc-type3|Successor}}}
{{unbulleted list
{{!}} {{{successor3}}}
| 1 = {{#if: {{{family_name|}}} | [[Chinese surname|Family name]]: <span class="nickname">{{{family_name}}}</span> }}
}}
| 2 = {{#if: {{{clan_name|}}} | [[Chinese surname|Clan name]]: <span class="nickname">{{{clan_name}}}</span> }}
|-
| 3 = {{#if: {{{given_name|}}} | [[Chinese given name|Given name]]: <span class="nickname">{{{given_name}}}</span> }}
{{#if: {{{regent3|}}}|
}}}}
! {{{reg-type3|Regent}}}
| header5 = {{#if: {{{era dates|}}} |Era {{#if:{{{era name|}}}|name and&nbsp;}}dates}}
{{!}} {{{regent3}}}
| data6 = {{#if: {{{era dates|}}} | {{#if:{{{era name|}}}|{{{era name}}}:&nbsp;}}{{{era dates}}} }}
}}

|-
{{#if: {{{succession|}}} |
| header7 = {{#if: {{{regnal name|}}} |[[Regnal name]]}}
| data8 = {{{regnal name|}}}
{{!}} colspan=2 style="background-color: #e4dcf6; height: 4px; text-align: center" {{!}}
| header9 = {{#if: {{{posthumous name|}}} | [[Posthumous name]]}}
}}
| data10 = {{{posthumous name|}}}
|-
{{#if: {{{queen|}}}|
| header11 = {{#if: {{{temple name|}}} | [[Temple name]] }}
| data12 = {{{temple name|}}}
! Consort
}}
{{!}} {{{queen}}}
}}
|-
{{#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: {{{spouse 1|}}} |
! {{#if:{{{spouse 2|}}} | Wives | Wife }} }}
{{!}} {{#if: {{{spouse 1|}}}| {{{spouse 1}}} }} {{#if: {{{spouse 2|}}} |<br/> {{{spouse 2}}} }} {{#if: {{{spouse 3|}}} | <br/> {{{spouse 3}}} }} {{#if: {{{spouse 4|}}} | <br/> {{{spouse 4}}} }} {{#if: {{{spouse 5|}}} | <br/> {{{spouse 5}}} }} {{#if: {{{spouse 6|}}} | <br/> {{{spouse 6}}} }} {{#if: {{{spouse 7|}}} | <br/> {{{spouse 7}}} }} {{#if: {{{spouse 8|}}} | <br/> {{{spouse 8}}} }} {{#if: {{{spouse 9|}}} | <br/> {{{spouse 9}}}
}}
|-
{{#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"<!-- "nickname" is the correct parameter value for hCard --> {{!}} {{{full name}}} }}
|-
{{#if:{{{family_name|}}}{{{clan_name|}}}{{{given_name|}}} |
! colspan=2 style=text-align: left" {{!}} Full name
{{!}}-
{{!}} colspan=2 {{!}} {{#if: {{{family_name|}}}| [[Chinese surname|Family name]]: <span class="nickname">{{{family_name}}}</span> }} {{#if: {{{clan_name|}}} |<br/>[[Chinese surname|Clan name]]: <span class="nickname">{{{clan_name}}}</span> }} {{#if: {{{given_name|}}} | <br/>[[Chinese given name|Given name]]: <span class="nickname">{{{given_name}}}</span> }}
}}
|-
{{#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: {{{native_lang1|}}}|
! {{{native_lang1}}}
{{!}} {{{native_lang1_name1}}}
}}
|-
{{#if: {{{native_lang2|}}}|
! {{{native_lang2}}}
{{!}} {{{native_lang2_name1}}}
}}
|-
{{#if: {{{native_lang3|}}}|
! {{{native_lang3}}}
{{!}} {{{native_lang3_name1}}}
}}
|-
{{#if: {{{native_lang4|}}}|
! {{{native_lang4}}}
{{!}} {{{native_lang4_name1}}}
}}
|-
{{#if: {{{native_lang5|}}}|
! {{{native_lang5}}}
{{!}} {{{native_lang5_name1}}}
}}
|-
{{#if: {{{house|}}}|
! [[Dynasty|{{{house-type|{{#switch:{{{house-type}}}|House}}}}}]]
{{!}} {{{house}}}
}}
|-
{{#if: {{{royal house|}}}|
! [[Dynasty|{{{house-type|{{#switch:{{{house-type}}}|House}}}}}]]
{{!}} {{{royal house}}}
}}
|-
{{#if: {{{dynasty|}}}|
! [[Dynasty]]
{{!}} {{{dynasty}}}
}}
|-
{{#if: {{{father|}}}|
! Father
{{!}} {{{father}}}
}}
|-
{{#if: {{{mother|}}}|
! Mother
{{!}} {{{mother}}}
}}
|-
{{#if:{{{birth_name|}}}{{{birth_date|}}}{{{birth_place|}}}|
! Born
{{!}} {{br separated entries| {{{birth_name|}}} | {{{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}}}
}}
|-
{{#if:{{{signature|}}}|
! {{#if:{{{signature_type|}}}| {{{signature_type}}} | Signature }}
{{!}} [[File:{{{signature}}}|125px|alt={{{signature_alt|}}}|{{PAGENAME}}'s signature]]
}}
}}

|-
| label33 = {{{native_lang1}}}
|}{{#if:{{{pronunciation|}}}|[[Category:Biography template using pronunciation]]}}<noinclude>
| data33 = {{#if: {{{native_lang1|}}}|{{{native_lang1_name1|}}}}}

| label34 = {{{native_lang2}}}
| data34 = {{#if: {{{native_lang2|}}}|{{{native_lang2_name1|}}}}}

| label35 = {{{native_lang3}}}
| data35 = {{#if: {{{native_lang3|}}}|{{{native_lang3_name1|}}}}}

| label36 = {{{native_lang4}}}
| data36 = {{#if: {{{native_lang4|}}}|{{{native_lang4_name1|}}}}}

| label37 = {{{native_lang5}}}
| data37 = {{#if: {{{native_lang5|}}}|{{{native_lang5_name1|}}}}}

| label38 = [[Dynasty|{{{house-type|{{#switch:{{{house-type}}}|House}}}}}]]
| data38 = {{{house|}}}

| label39 = [[Dynasty|{{{house-type|{{#switch:{{{house-type}}}|House}}}}}]]
| data39 = {{{royal house|}}}

| label40 = [[Dynasty]]
| data40 = {{{dynasty|}}}

| label41 = Father
| data41 = {{{father|}}}

| label42 = Mother
| data42 = {{{mother|}}}

| label43 = Born
| data43 = {{br separated entries| {{{birth_name|}}} | {{{birth_date|}}} | {{{birth_place|}}} }}

| label44 = Died
| data44 = {{br separated entries| {{{death_date|}}} | {{{death_place|}}} }}

| label45 = Burial
| data45 = {{br separated entries | {{{burial_date|{{{date of burial|}}}}}} | {{#if:{{{burial_place|{{{place of burial|}}}}}}|<span class="label">{{{burial_place|{{{place of burial|}}}}}}</span>}} }}

| label46 = Religion
| data46 = {{{religion|}}}

| label47 = Occupation
| data47 = {{{occupation|}}}

| label48 = {{#if:{{{signature_type|}}}| {{{signature_type}}} | Signature }}
| data48 = {{#if:{{{signature|}}}|[[File:{{{signature}}}|125px|alt={{{signature_alt|}}}|{{PAGENAME}}'s signature]]}}

}}{{#if:{{{pronunciation|}}}|[[Category:Biography template using pronunciation]]}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 15:56, 15 October 2014