Jump to content

Template:Infobox royalty: Difference between revisions

From Austenasia Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>{| class="infobox vcard" style="float:right; clear:right; width:22em; margin:0 0 1em 1em; border:1px solid #a2a9b1; border-spacing:3px; background:#f8f9fa; color:#202122; font-size:88%; line-height:1.5em;"
{| class="infobox vcard" style="width:22em; float:right; clear:right; margin:0 0 1em 1em; border:1px solid #a2a9b1; border-spacing:3px; background:#f8f9fa; color:#202122; font-size:88%; line-height:1.5em; padding:0.2em;"
 
<!-- NAME -->
|-
|-
! colspan="2" style="text-align:center; background:#cfc0ee; font-size:125%; line-height:1.2em; padding:0.15em;" |
! colspan="2" style="text-align:center; background:#cfc0ee; font-size:125%; padding:0.2em;" | {{{name|{{PAGENAME}}}}}
{{{name|{{PAGENAME}}}}}
{{#if:{{{title|}}}|<tr><td colspan="2" style="text-align:center; font-style:italic;">{{{title}}}</td></tr>}}
 
{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center; padding:0.5em;">[[File:{{{image}}}|frameless|{{{image_size|250px}}}]]{{#if:{{{caption|}}}|<div style="font-size:90%;">{{{caption}}}</div>}}</td></tr>}}
<!-- TITLE / SUBTITLE -->
{{#if:{{{succession|}}}|<tr><th colspan="2" style="text-align:center; background:#e4daf7; font-size:105%; padding:0.15em;">{{{succession}}}</th></tr>}}
{{#if:{{{title|}}}|
{{#if:{{{reign|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top; width:30%;">Reign</th><td style="vertical-align:top;">{{{reign}}}</td></tr>}}
{{!}}-
{{#if:{{{coronation|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Coronation</th><td style="vertical-align:top;">{{{coronation}}}</td></tr>}}
{{!}} colspan="2" style="text-align:center; font-style:italic; padding:0.2em;" {{!}} {{{title}}}
{{#if:{{{predecessor|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Predecessor</th><td style="vertical-align:top;">{{{predecessor}}}</td></tr>}}
}}
{{#if:{{{successor|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Successor</th><td style="vertical-align:top;">{{{successor}}}</td></tr>}}
 
{{#if:{{{heir|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Heir</th><td style="vertical-align:top;">{{{heir}}}</td></tr>}}
<!-- IMAGE -->
{{#if:{{{born|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Born</th><td style="vertical-align:top;">{{{born}}}{{#if:{{{birth_place|}}}|<br>{{{birth_place}}}}}</td></tr>}}
{{#if:{{{image|}}}|
{{#if:{{{died|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Died</th><td style="vertical-align:top;">{{{died}}}{{#if:{{{death_place|}}}|<br>{{{death_place}}}}}</td></tr>}}
{{!}}-
{{#if:{{{burial_place|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Burial</th><td style="vertical-align:top;">{{{burial_place}}}</td></tr>}}
{{!}} colspan="2" style="text-align:center; padding:0.4em 0;" {{!}}
{{#if:{{{spouse|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Spouse{{#if:{{{spouses|}}}|s}}</th><td style="vertical-align:top;">{{{spouse}}}</td></tr>}}
[[File:{{{image}}}|frameless|{{{image_size|250px}}}{{#if:{{{alt|}}}|{{!}}alt={{{alt}}}}}]]
{{#if:{{{issue|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Issue</th><td style="vertical-align:top;">{{{issue}}}</td></tr>}}
{{#if:{{{caption|}}}|<div style="font-size:90%; line-height:1.25em;">{{{caption}}}</div>}}
{{#if:{{{full_name|}}}|<tr><td colspan="2" style="text-align:center;">{{{full_name}}}</td></tr>}}
}}
{{#if:{{{dynasty|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Dynasty</th><td style="vertical-align:top;">{{{dynasty}}}</td></tr>}}
 
{{#if:{{{house|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">House</th><td style="vertical-align:top;">{{{house}}}</td></tr>}}
<!-- SUCCESSION -->
{{#if:{{{father|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Father</th><td style="vertical-align:top;">{{{father}}}</td></tr>}}
{{#if:{{{succession|}}}|
{{#if:{{{mother|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Mother</th><td style="vertical-align:top;">{{{mother}}}</td></tr>}}
{{!}}-
{{#if:{{{religion|}}}|<tr><th scope="row" style="text-align:left; vertical-align:top;">Religion</th><td style="vertical-align:top;">{{{religion}}}</td></tr>}}
! colspan="2" style="text-align:center; background:#e4daf7; font-size:105%; padding:0.15em;" {{!}}
|}</includeonly><noinclude>
{{{succession}}}
}}
 
{{#if:{{{reign|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; width:30%; padding:0.15em;" {{!}} Reign
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{reign}}}
}}
 
{{#if:{{{coronation|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Coronation
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{coronation}}}
}}
 
{{#if:{{{predecessor|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Predecessor
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{predecessor}}}
}}
 
{{#if:{{{successor|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Successor
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{successor}}}
}}
 
{{#if:{{{heir|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Heir
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{heir}}}
}}
 
{{#if:{{{regent|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} {{{reg-type|Regent}}}
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{regent}}}
}}
 
<!-- SECOND SUCCESSION -->
{{#if:{{{succession1|}}}|
{{!}}-
! colspan="2" style="text-align:center; background:#e4daf7; font-size:105%; padding:0.15em;" {{!}}
{{{succession1}}}
}}
 
{{#if:{{{reign1|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Reign
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{reign1}}}
}}
 
{{#if:{{{predecessor1|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Predecessor
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{predecessor1}}}
}}
 
{{#if:{{{successor1|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Successor
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{successor1}}}
}}
 
<!-- PERSONAL DETAILS -->
 
{{#if:{{{full_name|}}}|
{{!}}-
{{!}} colspan="2" style="text-align:center; padding-top:0.4em;" {{!}} {{{full_name}}}
}}
 
{{#if:{{{born|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Born
{{!}} style="vertical-align:top; padding:0.15em;" {{!}}
{{{born}}}{{#if:{{{birth_place|}}}|<br />{{{birth_place}}}}}
}}
 
{{#if:{{{died|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Died
{{!}} style="vertical-align:top; padding:0.15em;" {{!}}
{{{died}}}{{#if:{{{death_place|}}}|<br />{{{death_place}}}}}
}}
 
{{#if:{{{burial_place|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Burial
{{!}} style="vertical-align:top; padding:0.15em;" {{!}}
{{#if:{{{burial_date|}}}|{{{burial_date}}}<br />}}{{{burial_place}}}
}}
 
{{#if:{{{spouse|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} {{#ifeq:{{{spouse}}}|1|Spouse|Spouses}}
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{spouse}}}
}}
 
{{#if:{{{issue|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Issue
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{issue}}}
}}
 
{{#if:{{{house|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} House
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{house}}}
}}
 
{{#if:{{{dynasty|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Dynasty
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{dynasty}}}
}}
 
{{#if:{{{father|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Father
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{father}}}
}}
 
{{#if:{{{mother|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Mother
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{mother}}}
}}
 
{{#if:{{{occupation|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Occupation
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{occupation}}}
}}
 
{{#if:{{{religion|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Religion
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{religion}}}
}}
 
<!-- MILITARY SERVICE -->
{{#if:{{{allegiance|{{{serviceyears|{{{battles|}}}}}}}}}|
{{!}}-
! colspan="2" style="text-align:center; background:#eaecf0; padding:0.15em;" {{!}} Military service
}}
 
{{#if:{{{allegiance|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Allegiance
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{allegiance}}}
}}
 
{{#if:{{{serviceyears|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Years of service
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{serviceyears}}}
}}
 
{{#if:{{{rank|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Rank
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{rank}}}
}}
 
{{#if:{{{commands|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Commands
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{commands}}}
}}
 
{{#if:{{{battles|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:top; padding:0.15em;" {{!}} Battles/wars
{{!}} style="vertical-align:top; padding:0.15em;" {{!}} {{{battles}}}
}}
 
<!-- SIGNATURE -->
{{#if:{{{signature|}}}|
{{!}}-
! scope="row" style="text-align:left; vertical-align:middle; padding:0.15em;" {{!}} Signature
{{!}} style="text-align:center; padding:0.3em;" {{!}}
[[File:{{{signature}}}|frameless|150px]]
}}
 
|}
</includeonly><noinclude>
 
== Usage ==
== Usage ==
<pre>
<pre>
{{Infobox royalty
{{Infobox royalty
| name         =
| name =
| title       =
| title =
| image       =
| image =
| image_size   =
| image_size =
| caption     =
| caption =
 
| succession =
| succession   =
| reign =
| reign       =
| coronation =
| coronation   =
| predecessor =
| predecessor =
| successor =
| successor   =
| heir =
| heir         =
| born =
| regent      =
| birth_place =
| reg-type    =
| died =
 
| death_place =
| succession1  =
| reign1      =
| predecessor1 =
| successor1  =
 
| full_name    =
| born         =
| birth_place =
| died         =
| death_place =
| burial_date  =
| burial_place =
| burial_place =
| spouse       =
| spouse =
| issue       =
| issue =
| house        =
| full_name =
| dynasty     =
| dynasty =
| father      =
| house =
| mother      =
| father =
| occupation  =
| mother =
| religion     =
| religion =
 
| allegiance  =
| serviceyears =
| rank        =
| commands    =
| battles      =
 
| signature    =
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 01:14, 15 September 2026

Usage

{{Infobox royalty
| name =
| title =
| image =
| image_size =
| caption =
| succession =
| reign =
| coronation =
| predecessor =
| successor =
| heir =
| born =
| birth_place =
| died =
| death_place =
| burial_place =
| spouse =
| issue =
| full_name =
| dynasty =
| house =
| father =
| mother =
| religion =
}}