Template:Infobox royalty: Difference between revisions

From Vigyanwiki
Template>Sceptre
(per ER)
m (203 revisions imported from alpha:Template:Infobox_royalty)
 
(17 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{#if:{{Has short description}} |<!--Do nothing--> |{{Infobox royalty/short description|{{{title|{{{succession|}}}}}}}}}}
{{infobox
{{infobox
| child = {{#ifeq:{{lc:{{{embed|}}}}}|yes|yes}}
| child = {{#ifeq:{{lc:{{{embed|}}}}}|yes|yes}}
Line 45: Line 46:
| header1 =  {{#if:{{{succession|}}}|{{{succession}}} {{#if:{{{moretext|}}}|<div style="display:inline;font-weight:normal">{{{moretext}}} </div>}}}}
| header1 =  {{#if:{{{succession|}}}|{{{succession}}} {{#if:{{{moretext|}}}|<div style="display:inline;font-weight:normal">{{{moretext}}} </div>}}}}


| label2 = {{ifempty| {{{reign-type|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| label2 = {{if empty| {{{reign-type|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data2 = {{{reign|}}}
| data2 = {{{reign|}}}


Line 59: Line 60:
| poland  = [[Coronations in Poland|Coronation]]
| poland  = [[Coronations in Poland|Coronation]]
| russia  = [[Coronation of the Russian monarch|Coronation]]
| russia  = [[Coronation of the Russian monarch|Coronation]]
| #default = {{ifempty|{{{cor-type|}}}|[[Coronation]]}}
| #default = {{if empty|{{{cor-type|}}}|[[Coronation]]}}
}}
}}
| data3 = {{{coronation|}}}
| data3 = {{{coronation|}}}
Line 77: Line 78:
| header8 =  {{#if:{{{succession1|}}}|{{{succession1}}} {{#if:{{{moretext1|}}}|<div style="display:inline;font-weight:normal">{{{moretext1}}} </div>}}}}
| header8 =  {{#if:{{{succession1|}}}|{{{succession1}}} {{#if:{{{moretext1|}}}|<div style="display:inline;font-weight:normal">{{{moretext1}}} </div>}}}}


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


Line 94: Line 95:
| header14 =  {{#if:{{{succession2|}}}|{{{succession2}}} {{#if:{{{moretext2|}}}|<div style="display:inline;font-weight:normal">{{{moretext2}}} </div>}}}}
| header14 =  {{#if:{{{succession2|}}}|{{{succession2}}} {{#if:{{{moretext2|}}}|<div style="display:inline;font-weight:normal">{{{moretext2}}} </div>}}}}


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


Line 111: Line 112:
| header20 =  {{#if:{{{succession3|}}}|{{{succession3}}} {{#if:{{{moretext3|}}}|<div style="display:inline;font-weight:normal">{{{moretext3}}} </div>}}}}
| header20 =  {{#if:{{{succession3|}}}|{{{succession3}}} {{#if:{{{moretext3|}}}|<div style="display:inline;font-weight:normal">{{{moretext3}}} </div>}}}}


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


Line 128: Line 129:
| header26 =  {{#if:{{{succession4|}}}|{{{succession4}}} {{#if:{{{moretext4|}}}|<div style="display:inline;font-weight:normal">{{{moretext4}}} </div>}}}}
| header26 =  {{#if:{{{succession4|}}}|{{{succession4}}} {{#if:{{{moretext4|}}}|<div style="display:inline;font-weight:normal">{{{moretext4}}} </div>}}}}


| label27 = {{ifempty| {{{reign-type4|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| label27 = {{if empty| {{{reign-type4|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data27 = {{{reign4|}}}
| data27 = {{{reign4|}}}


Line 145: Line 146:
| header32 =  {{#if:{{{succession5|}}}|{{{succession5}}} {{#if:{{{moretext5|}}}|<div style="display:inline;font-weight:normal">{{{moretext5}}} </div>}}}}
| header32 =  {{#if:{{{succession5|}}}|{{{succession5}}} {{#if:{{{moretext5|}}}|<div style="display:inline;font-weight:normal">{{{moretext5}}} </div>}}}}


| label33 = {{ifempty| {{{reign-type5|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| label33 = {{if empty| {{{reign-type5|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data33 = {{{reign5|}}}
| data33 = {{{reign5|}}}


Line 162: Line 163:
| header38 =  {{#if:{{{succession6|}}}|{{{succession6}}} {{#if:{{{moretext6|}}}|<div style="display:inline;font-weight:normal">{{{moretext6}}} </div>}}}}
| header38 =  {{#if:{{{succession6|}}}|{{{succession6}}} {{#if:{{{moretext6|}}}|<div style="display:inline;font-weight:normal">{{{moretext6}}} </div>}}}}


| label39 = {{ifempty| {{{reign-type6|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| label39 = {{if empty| {{{reign-type6|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data39 = {{{reign6|}}}
| data39 = {{{reign6|}}}


Line 179: Line 180:
| header44 =  {{#if:{{{succession7|}}}|{{{succession7}}} {{#if:{{{moretext7|}}}|<div style="display:inline;font-weight:normal">{{{moretext7}}} </div>}}}}
| header44 =  {{#if:{{{succession7|}}}|{{{succession7}}} {{#if:{{{moretext7|}}}|<div style="display:inline;font-weight:normal">{{{moretext7}}} </div>}}}}


| label45 = {{ifempty| {{{reign-type7|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| label45 = {{if empty| {{{reign-type7|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data45 = {{{reign7|}}}
| data45 = {{{reign7|}}}


Line 196: Line 197:
| header50 =  {{#if:{{{succession8|}}}|{{{succession8}}} {{#if:{{{moretext8|}}}|<div style="display:inline;font-weight:normal">{{{moretext8}}} </div>}}}}
| header50 =  {{#if:{{{succession8|}}}|{{{succession8}}} {{#if:{{{moretext8|}}}|<div style="display:inline;font-weight:normal">{{{moretext8}}} </div>}}}}


| label51 = {{ifempty| {{{reign-type8|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| label51 = {{if empty| {{{reign-type8|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data51 = {{{reign8|}}}
| data51 = {{{reign8|}}}


Line 213: Line 214:
| header56 =  {{#if:{{{succession9|}}}|{{{succession9}}} {{#if:{{{moretext9|}}}|<div style="display:inline;font-weight:normal">{{{moretext9}}} </div>}}}}
| header56 =  {{#if:{{{succession9|}}}|{{{succession9}}} {{#if:{{{moretext9|}}}|<div style="display:inline;font-weight:normal">{{{moretext9}}} </div>}}}}


| label57 = {{ifempty| {{{reign-type9|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| label57 = {{if empty| {{{reign-type9|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data57 = {{{reign9|}}}
| data57 = {{{reign9|}}}


Line 230: Line 231:
| header62 =  {{#if:{{{succession10|}}}|{{{succession10}}} {{#if:{{{moretext10|}}}|<div style="display:inline;font-weight:normal">{{{moretext10}}} </div>}}}}
| header62 =  {{#if:{{{succession10|}}}|{{{succession10}}} {{#if:{{{moretext10|}}}|<div style="display:inline;font-weight:normal">{{{moretext10}}} </div>}}}}


| label63 = {{ifempty| {{{reign-type10|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| label63 = {{if empty| {{{reign-type10|}}} |{{#switch:{{{consort|}}}|yes=Tenure|<!--BACKWARD COMPAT FROM IBR-->{{#switch:{{{2}}}|consort=Tenure|Reign}}<!--BACKWARD COMPAT FROM IBR-->}} }}
| data63 = {{{reign10|}}}
| data63 = {{{reign10|}}}


Line 262: Line 263:
| data73 = {{{spouse|}}}
| data73 = {{{spouse|}}}


| label74 = {{#if:{{{spouses-type|}}}|{{{spouses-type}}}|Spouse}}<!--FOOLPROOFING. USE NOT GENERALLY ENCOURAGED: USE spouse-->
| label74 = {{#if:{{{spouses-type|}}}|{{{spouses-type}}}|Spouses}}
| data74 = {{{spouses|}}}
| data74 = {{{spouses|}}}


| label75 = {{#if:{{{spouse 2|}}} | Wives | Wife }}
| label75 = {{#if:{{{spouse 2|}}} | Wives | Wife }}<!-- alternative to using 'spouses' and 'spouses-type' -->
| data75 = {{#if: {{{spouse 1|}}}|
| data75 = {{#if: {{{spouse 1|}}}|
{{unbulleted list
{{unbulleted list
Line 286: Line 287:
  | headerstyle = text-align:left
  | headerstyle = text-align:left
  | datastyle = text-align:left; padding-left:0.7em;
  | datastyle = text-align:left; padding-left:0.7em;
  | header1 = {{#if:{{{full name|}}}|Full name}}
  | header1 = {{#if:{{{full name|}}}|Names}}
  | class2 = nickname <!-- "nickname" is the correct parameter value for hCard -->
  | class2 = nickname <!-- "nickname" is the correct parameter value for hCard -->
  | data2 = {{{full name|}}}
  | data2 = {{{full name|}}}
Line 345: Line 346:


| label90 = {{#if:{{{signature_type|}}}| {{{signature_type}}} | Signature }}
| label90 = {{#if:{{{signature_type|}}}| {{{signature_type}}} | Signature }}
| data90 = {{#if:{{{signature|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size=125px|alt={{{signature_alt|}}}|title={{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}'s signature}}}}
| data90 = {{#if:{{{signature|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size=125px|class=notpageimage|alt={{{signature_alt|}}}|title={{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}'s signature}}}}


| data91 = {{{module|}}}   
| data91 = {{{module|}}}   

Latest revision as of 18:44, 17 February 2023

Template:Infobox royalty/short description

Template documentation