Difference between revisions of "Template: Infobox monarch"

From A Wiki of Ice and Fire
Jump to: navigation, search
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>{{Infobox  
 
<includeonly>{{Infobox  
| above = {{{monarch_name|{{{name|{{PAGENAME}}}}}}}}
+
| above = {{#invoke:Infobox character/name|main|name={{{monarch_name|{{{name|{{PAGENAME}}}}}}}}<!-- deprecated -->}}
| abovestyle    = {{{abovestyle|background: none; text-align:center;}}}
+
| abovestyle    = {{{abovestyle|font-weight:bold; background: none; line-height: 1.1em;}}}
  
| image = {{{image|[[Image:No_image.jpg|200px]]}}}
+
| image = {{#if:{{{image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|maxsize=400px|sizedefault=350px|border=no|suppressplaceholder={{Main other|yes|no}}}}|[[Category:Characters without images]]}}
 
| caption = {{{image_caption|}}}
 
| caption = {{{image_caption|}}}
 
| imagestyle = {{{imagestyle|}}}
 
| imagestyle = {{{imagestyle|}}}
Line 14: Line 14:
 
-->
 
-->
 
| headerstyle  = background-color:#B0C4DE;
 
| headerstyle  = background-color:#B0C4DE;
<!-- Biographical Information Section -->
+
 
| header1 = Biographical Information
+
<!-- Monarch Section -->
 +
| header1 = Monarch
  
 
| label2 = Reign
 
| label2 = Reign
Line 22: Line 23:
 
| data3 = {{{coronation|}}}
 
| data3 = {{{coronation|}}}
  
| label5 = Full Name
+
| label5 = Full name
 
| data5 = {{{fullname|}}}
 
| data5 = {{{fullname|}}}
| label6 = Alias
+
| label6 = {{Infobox label|s=Title|p=Titles|{{{othertitles|}}}}}
| data6 = {{{alias|}}}
+
| data6 = {{Infobox value|class=plainlist|{{{othertitles|}}}}}
| label7 = Titles
+
| label7 = {{Infobox label|s=Allegiance|p=Allegiances|{{{allegiance|}}}}}
| data7 = {{{othertitles|}}}
+
| data7 = {{Infobox value|class=plainlist|{{{allegiance|}}}}}
| label10 = Born  
+
 
| data10 = {{#if:{{{dateofbirth|}}}|{{#if:{{{placeofbirth|}}}|In&nbsp;{{{dateofbirth}}},&nbsp;at&nbsp;{{{placeofbirth}}}|In&nbsp;{{{dateofbirth}}}}}|{{#if:{{{placeofbirth|}}}|At&nbsp;{{{placeofbirth}}}|}}|}}
+
| label8 = {{Infobox label|s=Predecessor|p=Predecessors|{{{predecessor|}}}}}
| label11 = Died  
+
| data8 = {{Infobox value|class=plainlist|{{{predecessor|}}}}}
| data11 = {{#if:{{{dateofdeath|}}}|{{#if:{{{placeofdeath|}}}|In&nbsp;{{{dateofdeath}}},&nbsp;at&nbsp;{{{placeofdeath}}}|In&nbsp;{{{dateofdeath}}}}}|{{#if:{{{placeofdeath|}}}|At&nbsp;{{{placeofdeath}}}|}}|}}
+
| label9 = {{Infobox label|s=Heir|p=Heirs|{{{heir|}}}}}
| label14 = Buried  
+
| data9 = {{Infobox value|class=plainlist|{{{heir|}}}}}
| data14 = {{#if:{{{dateofburial|}}}|{{#if:{{{placeofburial|}}}|In&nbsp;{{{dateofburial}}},&nbsp;at&nbsp;{{{placeofburial}}}|In&nbsp;{{{dateofburial}}}}}|{{#if:{{{placeofburial|}}}|At&nbsp;{{{placeofburial}}}|}}|}}
+
| label10 = {{Infobox label|s=Successor|p=Successors|{{{successor|}}}}}
| label16       = Race
+
| data10 = {{Infobox value|class=plainlist|{{{successor|}}}}}
| data16       = {{{race|}}}
+
 
| label17 = Culture
+
<!-- Personal Information Section -->
| data17 = {{{culture|}}}
+
| header11 = {{#if: {{{alias|}}} {{{dateofbirth|}}}{{{placeofbirth|}}}{{{dateofdeath|}}}{{{placeofdeath|}}}{{{dateofburial|}}}{{{placeofburial|}}} {{{race|}}}{{{culture|}}}| Personal Information}}
 +
 
 +
| label12 = {{Infobox label|s=Alias|p=Aliases|{{{alias|}}}}}
 +
| data12 = {{Infobox value|class=plainlist|{{{alias|}}}}}
 +
 
 +
| label13 = Born
 +
| data13 = {{#if:{{{dateofbirth|}}}|{{#if:{{{placeofbirth|}}}|In&nbsp;{{{dateofbirth}}},&nbsp;at&nbsp;{{{placeofbirth}}}|In&nbsp;{{{dateofbirth}}}}}|{{#if:{{{placeofbirth|}}}|At&nbsp;{{{placeofbirth}}}|}}|}}
 +
| label14 = Died
 +
| data14 = {{#if:{{{dateofdeath|}}}|{{#if:{{{placeofdeath|}}}|In&nbsp;{{{dateofdeath}}},&nbsp;at&nbsp;{{{placeofdeath}}}|In&nbsp;{{{dateofdeath}}}}}|{{#if:{{{placeofdeath|}}}|At&nbsp;{{{placeofdeath}}}|}}|}}
 +
| label15 = Buried
 +
| data15 = {{#if:{{{dateofburial|}}}|{{#if:{{{placeofburial|}}}|In&nbsp;{{{dateofburial}}},&nbsp;at&nbsp;{{{placeofburial}}}|In&nbsp;{{{dateofburial}}}}}|{{#if:{{{placeofburial|}}}|At&nbsp;{{{placeofburial}}}|}}|}}
 +
 
 +
| label16 = Race
 +
| data16 = {{#if:{{{race|}}}|{{{race}}}{{Main other|[[Category:Pages with the race parameter]]}}}}
 +
| label17 = {{Infobox label|s=Culture|p=Cultures|{{{culture|}}}}}
 +
| data17 = {{Infobox value|class=plainlist|{{{culture|}}}}}
  
 
<!-- Family Section -->
 
<!-- Family Section -->
| header18 = {{#if: {{{royalhouse|}}}{{{predecessor|}}}{{{heir|}}}{{{successor|}}} {{{queen|}}}{{{consort|}}}{{{spouse|}}}{{{issue|}}} {{{father|}}}{{{mother|}}}| Family}}
+
| header18 = {{#if: {{{royalhouse|}}} {{{queen|}}}{{{consort|}}}{{{spouse|}}} {{{issue|}}} {{{father|}}}{{{mother|}}}| Family}}
  
| label19 = Royal House
+
| label19 = Dynasty
 
| data19 = {{{royalhouse|}}}
 
| data19 = {{{royalhouse|}}}
| label20 = Predecessor
 
| data20 = {{{predecessor|}}}
 
| label21 = Heir
 
| data21 = {{{heir|}}}
 
| label22 = Successor
 
| data22 = {{{successor|}}}
 
  
| label23 = Queen
+
| label23 = {{Infobox label|s=Queen|p=Queens|{{{queen|}}}}}
| data23 = {{{queen|}}}
+
| data23 = {{Infobox value|class=plainlist|{{{queen|}}}}}
| label24 = Consort
+
| label24 = {{Infobox label|s=Consort|p=Consorts|{{{consort|}}}}}
| data24 = {{{consort|}}}
+
| data24 = {{Infobox value|class=plainlist|{{{consort|}}}}}
| label25 = Betrothed
+
| label25 = {{Infobox label|s=Betrothed|p=Betrotheds|{{{betrothed|}}}}}
| data25 = {{{betrothed|}}}
+
| data25 = {{Infobox value|class=plainlist|{{{betrothed|}}}}}
| label26 = Spouse
+
| label26 = {{Infobox label|s=Spouse|p=Spouses|{{{spouse1|{{{spouse|}}}}}}}}
| data26 = {{{spouse1|{{{spouse|}}}}}}<!-- for compatibility-->
+
| data26 = {{Infobox value|class=plainlist|{{{spouse1|{{{spouse|}}}}}}}}<!-- for compatibility-->
| label27 = Issue
+
| label27 = {{Infobox label|s=Lover|p=Lovers|{{{lover|}}}}}
| data27 = {{{issue|}}}
+
| data27 = {{{lover|}}}
 +
 
 +
| label28 = Issue
 +
| data28 = {{{issue|}}}
  
| label28 = Father
+
| label29 = {{Infobox label|s=Father|p=Fathers|{{{father|}}}}}
| data28 = {{{father|}}}
+
| data29 = {{Infobox value|class=plainlist|{{{father|}}}}}
| label29 = Mother
+
| label30 = {{Infobox label|s=Mother|p=Mothers|{{{mother|}}}}}
| data29 = {{{mother|}}}
+
| data30 = {{Infobox value|class=plainlist|{{{mother|}}}}}
  
| label30      = Personal arms
+
| label31 = Personal arms
| data30 = {{{coat-of-arms|}}}
+
| data31 = {{{coat-of-arms|}}}
  
 
<!-- References Section -->
 
<!-- References Section -->
| header36 = {{#if: {{{TV_series|}}}{{{Played_by|}}}{{{Books|}}}|References}}
+
| header36 = {{#if: {{{Books|}}}{{{Played_by|}}}{{{TV_series|}}}|References}}
| label37 = Books         
+
| label37 = {{Infobox label|s=Book|p=Books|{{{Books|}}}}}          
| data37 = {{{Books|}}}
+
| data37 = {{Infobox value|class=plainlist|{{{Books|}}}}}
 
| label38 = Played by
 
| label38 = Played by
 
| data38 = {{{Played_by|}}}
 
| data38 = {{{Played_by|}}}
 
| label39 = TV series
 
| label39 = TV series
 
| data39 = {{{TV_series|}}}
 
| data39 = {{{TV_series|}}}
}}{{main other|[[Category:Character pages in alphabetical order]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
}}{{Main other|[[Category:Character pages in alphabetical order]]}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 15:06, 22 January 2023

Template documentation[view] [edit] [history] [purge]
None.svg {{{title}}}
{{{nickname}}} {{{firstname}}} IV {{{particle}}} {{{lastname}}}
{{{epithet}}}
None.svg
No portrait.svg
{{{image_caption}}}
Monarch
Reign {{{reign}}}
Coronation {{{coronation}}}
Full name {{{fullname}}}
Title {{{othertitles}}}
Allegiance {{{allegiance}}}
Predecessor {{{predecessor}}}
Heir {{{heir}}}
Successor {{{successor}}}
Personal Information
Alias {{{alias}}}
Born {{{dateofbirth}}}
{{{placeofbirth}}}
Died {{{dateofdeath}}}
{{{placeofdeath}}}
Buried {{{dateofburial}}}
{{{placeofburial}}}
Race {{{race}}}
Culture {{{culture}}}
Family
Dynasty {{{royalhouse}}}
Queen {{{queen}}}
Consort {{{consort}}}
Spouse {{{spouse}}}
Lover {{{lover}}}
Issue {{{issue}}}
Father {{{father}}}
Mother {{{mother}}}
Personal arms {{{coat-of-arms}}}
References
Book {{{Books}}}
Played by {{{Played_by}}}
TV series {{{TV_series}}}

Usage

Empty Template for easy copy/paste:

{{Infobox monarch
| title         = 
| nickname      = 
| firstname     = 
| regnalnumber  = <!-- write with digits, e.g. "4" instead of "IV" -->
| particle      = 
| lastname      = 
| epithet       = 
| arms          = None
| arms2         = <!-- not needed if identical to {{{arms}}} -->
| image         = 
| image_caption = 
| reign         = <!-- {{Date|xxx}} - {{Date|xxx}} -->
| coronation    = <!-- {{Date|xxx}} -->
| fullname      = 
| othertitles   = 
| allegiance    = 
| predecessor   = 
| heir          = 
| successor     = 
| alias         = 
| dateofbirth   = <!-- {{Date|xxx}} -->
| placeofbirth  = 
| dateofdeath   = <!-- {{Date|xxx}} -->
| placeofdeath  = 
| dateofburial  = <!-- {{Date|xxx}} -->
| placeofburial = 
| race          = 
| culture       = 
| royalhouse    = 
| queen         = 
| consort       = 
| spouse        = 
| lover         = 
| issue         = 
| father        = 
| mother        = 
| coat-of-arms  = 
| Books         = 
| Played_by     = 
| TV_series     = 
}}

Note: Parameters which are assigned no value are not shown when the template is used.
You can see a preview of the template with all of its fields on the right side.