Template:Infobox royalty: Difference between revisions
From Vigyanwiki
Template>Pigsonthewing (ce) |
Template>Frietjes (use infobox (update from sandbox, and tested in testcases)) |
||
Line 1: | Line 1: | ||
{| | {{infobox | ||
| | | bodyclass = vcard | ||
| aboveclass = fn | |||
| | | abovestyle = background-color: #cbe; font-size: 125% | ||
{{#if: {{{title|}}} |<!-- TITLETEXT SWITCH: EMBEDDED BY REALM (ALPHABETICALLY) --> | | above = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}} | ||
| subheader1 = {{#if: {{{title|}}} |<!-- TITLETEXT SWITCH: EMBEDDED BY REALM (ALPHABETICALLY) --> | |||
''{{{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 | |||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{imgw|}}}}}}|sizedefault=frameless|upright=1.0|alt={{{alt|}}}|suppressplaceholder=yes}} | |||
| | | caption = {{{caption|}}} | ||
| headerstyle = background-color: #e4dcf6 | |||
}} | | header1 = {{#if:{{{succession|}}}|{{{succession}}} {{#if:{{{moretext|}}}|{{nobold|<small>{{{moretext}}}</small>}}}}}} | ||
| | |||
| label2 = {{ifempty| {{{reign-type|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }} | |||
| data2 = {{{reign|}}} | |||
| label3 = {{#switch:{{lc:{{{cor-type}}}}} | |||
{{#if: {{{ | |||
{{ | |||
}} | |||
| | |||
| 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]]}}} | ||
}} | }} | ||
| data3 = {{{coronation|}}} | |||
| | | label4 = Investiture | ||
| data4 = {{{investiture|}}} | |||
{{ | | label5 = {{{pre-type|Predecessor}}} | ||
| data5 = {{{predecessor|}}} | |||
| | |||
{{ | | label6 = {{{suc-type|Successor}}} | ||
| data6 = {{{successor|}}} | |||
{{ | |||
| label7 = {{{reg-type|Regent}}} | |||
| | | data7 = {{{regent|}}} | ||
{{#if: {{{ | |||
| header8 = {{#if:{{{succession1|}}}|{{{succession1}}} {{#if:{{{moretext1|}}}|{{nobold|<small>{{{moretext1}}}</small>}}}}}} | |||
{{ | |||
| label9 = {{ifempty| {{{reign-type1|}}} | {{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }} | |||
| | | data9 = {{{reign1|}}} | ||
{{ | |||
| label10 = {{{cor-type1|Coronation}}} | |||
| data10 = {{{coronation1|}}} | |||
| | | label11 = {{{pre-type1|Predecessor}}} | ||
{{# | | data11 = {{{predecessor1|}}} | ||
}} | | label12 = {{{suc-type1|Successor}}} | ||
| | | data12 = {{{successor1|}}} | ||
| label13 = {{{reg-type1|Regent}}} | |||
{{ | | data13 = {{{regent1|}}} | ||
| | | header14 = {{#if:{{{succession2|}}}|{{{succession2}}} {{#if:{{{moretext2|}}}|{{nobold|<small>{{{moretext2}}}</small>}}}}}} | ||
{{ | |||
| label15 = {{ifempty| {{{reign-type2|}}} | {{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }} | |||
{{ | | data15 = {{{reign2|}}} | ||
| | | label16 = {{{cor-type2|Coronation}}} | ||
{{#if: {{{ | | data16 = {{{coronation2|}}} | ||
{{ | | label17 = {{{pre-type2|Predecessor}}} | ||
} | | data17 = {{{predecessor2|}}} | ||
| | |||
{{ | | label18 = {{{suc-type2|Successor}}} | ||
| data18 = {{{successor2|}}} | |||
{{ | |||
| label19 = {{{reg-type2|Regent}}} | |||
|- | | data19 = {{{regent2|}}} | ||
{{# | |||
| header20 = {{#if:{{{succession3|}}}|{{{succession3}}} {{#if:{{{moretext3|}}}|{{nobold|<small>{{{moretext3}}}</small>}}}}}} | |||
}} | | label21 = {{ifempty| {{{reign-type3|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }} | ||
| | | data21 = {{{reign3|}}} | ||
{{ | |||
{{ | | label22 = {{{cor-type3|Coronation}}} | ||
| data22 = {{{coronation3|}}} | |||
| | |||
{{ | | label23 = {{{pre-type3|Predecessor}}} | ||
| data23 = {{{predecessor3|}}} | |||
{{ | |||
| label24 = {{{suc-type3|Successor}}} | |||
| | | data24 = {{{successor3|}}} | ||
{{# | |||
! {{{ | | label25 = {{{reg-type3|Regent}}} | ||
| data25 = {{{regent3|}}} | |||
|- | | header26 = {{#if: {{{succession|}}} | <div style="height: 4px; width:100%;"></div>}} | ||
{{ | |||
| label27 = Consort | |||
{{ | | 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}}}}} | ||
{{ | | data28 = {{{spouse|}}} | ||
{{ | | label29 = {{{spouses-type|Spouse}}}<!--FOOLPROOFING. USE NOT GENERALLY ENCOURAGED: USE spouse--> | ||
| data29 = {{{spouses|}}} | |||
| | |||
{{#if: {{{ | | label30 = {{#if:{{{spouse 2|}}} | Wives | Wife }} | ||
| data30 = {{#if: {{{spouse 1|}}}| | |||
{{ | {{unbulleted list | ||
| {{{spouse 1}}} | |||
| | | {{{spouse 2|}}} | ||
{{# | | {{{spouse 3|}}} | ||
{{ | | {{{spouse 4|}}} | ||
}} | | {{{spouse 5|}}} | ||
| {{{spouse 6|}}} | |||
{{# | | {{{spouse 7|}}} | ||
| {{{spouse 8|}}} | |||
| {{{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>}} | ||
! | | data31 = {{{issue|}}} | ||
{{ | |||
| data32 = {{#if:{{{full name|}}}{{{family_name|}}}{{{clan_name|}}}{{{given_name|}}}{{{era dates|}}}{{{regnal name|}}}{{{posthumous name|}}}{{{temple name|}}}| | |||
| | {{Infobox|child=yes | ||
{{#if: {{{ | | headerstyle = text-align:left | ||
| datastyle = text-align:left; padding-left:0.7em; | |||
| header1 = {{#if:{{{full name|}}}|Full name}} | |||
}} | | class2 = nickname <!-- "nickname" is the correct parameter value for hCard --> | ||
| | | data2 = {{{full name|}}} | ||
{{#if: {{{ | | header3 = {{#if:{{{family_name|}}}{{{clan_name|}}}{{{given_name|}}}|Full name}} | ||
| data4 = {{#if:{{{family_name|}}}{{{clan_name|}}}{{{given_name|}}}| | |||
{{ | {{unbulleted list | ||
}} | | 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> }} | ||
}}}} | |||
{{ | | header5 = {{#if: {{{era dates|}}} |Era {{#if:{{{era name|}}}|name and }}dates}} | ||
}} | | data6 = {{#if: {{{era dates|}}} | {{#if:{{{era name|}}}|{{{era name}}}: }}{{{era dates}}} }} | ||
| | |||
{{ | | header7 = {{#if: {{{regnal name|}}} |[[Regnal name]]}} | ||
{{ | | data8 = {{{regnal name|}}} | ||
}} | | header9 = {{#if: {{{posthumous name|}}} | [[Posthumous name]]}} | ||
| | | data10 = {{{posthumous name|}}} | ||
{{#if: {{{ | | header11 = {{#if: {{{temple name|}}} | [[Temple name]] }} | ||
| data12 = {{{temple name|}}} | |||
{{ | }} | ||
| | |||
{{#if: {{{ | |||
| | |||
<!-- | |||
{{ | |||
| | |||
{{#if: {{{ | |||
{{ | |||
| | |||
{{ | |||
}} | |||
| | |||
}} | }} | ||
|- | |||
|}{{#if:{{{pronunciation|}}}|[[Category:Biography template using pronunciation]]}}<noinclude> | | label33 = {{{native_lang1}}} | ||
| 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 02:26, 16 October 2014
Template documentation
[create]