Template:Infobox royalty: Difference between revisions

From Vigyanwiki
Template>Pigsonthewing
(per talk page request)
Template>Frietjes
(fix problem when reign-type is specified, but left empty, which results in no label)
Line 50: Line 50:
|-
|-
{{#if: {{{reign|}}}|
{{#if: {{{reign|}}}|
! {{{reign-type|{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}}}}}
! {{ifempty| {{{reign-type|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
{{!}} {{{reign}}}
{{!}} {{{reign}}}
}}
}}
Line 91: Line 91:
|-
|-
{{#if: {{{reign1|}}}|
{{#if: {{{reign1|}}}|
! {{{reign-type1|{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}}}}}
! {{ifempty| {{{reign-type1|}}} | {{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
{{!}} {{{reign1}}}
{{!}} {{{reign1}}}
}}
}}
Line 120: Line 120:
|-
|-
{{#if: {{{reign2|}}}|
{{#if: {{{reign2|}}}|
! {{{reign-type2|{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}}}}}
! {{ifempty| {{{reign-type2|}}} | {{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
{{!}} {{{reign2}}}
{{!}} {{{reign2}}}
}}
}}
Line 149: Line 149:
|-
|-
{{#if: {{{reign3|}}}|
{{#if: {{{reign3|}}}|
! {{{reign-type3|{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}}}}}
! {{ifempty| {{{reign-type3|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
{{!}} {{{reign3}}}
{{!}} {{{reign3}}}
}}
}}

Revision as of 23:26, 27 June 2014

Template documentation