Difference between revisions of "Template: Infobox monarch"

From A Wiki of Ice and Fire
Jump to: navigation, search
(consistency)
(48 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<table class="infobox" style="width: 20em; background-color:{{{colour}}}; text-align: left">
+
<includeonly>{{Infobox
<caption style="font-size: larger;"><span style="display:none;">'''Name''' </span>'''''{{{name}}}'''''</caption><!--
+
| title = {{#if:{{{monarch_name|}}}|| {{{name|{{PAGENAME}}}}} }}
<span style="display:none;">'''Title''' </span>'''''{{{title}}}'''''</caption><!--
+
| titlestyle = {{{titlestyle|}}}
-->{{#if: {{{image|<noinclude>-</noinclude>}}} |<tr><td colspan=2 style="text-align: center">{{{image|<noinclude>[[Image:No_image.jpg|200px]]</noinclude>}}}
+
| above = {{{monarch_name|}}}
{{#if: {{{image_caption|}}} | <br> {{{image_caption}}} }}</td></tr>}}<!--
+
| abovestyle    = {{{abovestyle|background: #E0E8FF; text-align:center;}}}
-->{{#if:{{{reign|<noinclude>-</noinclude>}}}|<tr><th>Reign</th><td>{{{reign}}}</td></tr>}}<!--
 
-->{{#if:{{{coronation|<noinclude>-</noinclude>}}}|<tr><th>Coronation</th><td>{{{coronation}}}</td></tr>}}<!--
 
-->{{#if:{{{othertitles|<noinclude>-</noinclude>}}}|<tr><th>Othertitles</th><td>{{{othertitles}}}</td></tr>}}<!--
 
-->{{#if:{{{fullname|<noinclude>-</noinclude>}}}|<tr><th>Full Name</th><td>{{{fullname}}}</td></tr>}}<!--
 
-->{{#if:{{{predecessor|<noinclude>-</noinclude>}}}|<tr><th>Predecessor</th><td>{{{predecessor}}}</td></tr>}}<!--
 
-->{{#if:{{{successor|<noinclude>-</noinclude>}}}|<tr><th>Successor</th><td>{{{successor}}}</td></tr>}}<!--
 
-->{{#if:{{{suc-type|<noinclude>-</noinclude>}}}|<tr><th>Suc-Type</th><td>{{{suc-type}}}</td></tr>}}<!--
 
-->{{#if:{{{heir|<noinclude>-</noinclude>}}}|<tr><th>Heir</th><td>{{{heir}}}</td></tr>}}<!--
 
-->{{#if:{{{queen|<noinclude>-</noinclude>}}}|<tr><th>Queen</th><td>{{{queen}}}</td></tr>}}<!--
 
-->{{#if:{{{consort|<noinclude>-</noinclude>}}}|<tr><th>Consort</th><td>{{{consort}}}</td></tr>}}<!--
 
-->{{#if:{{{spouse1|<noinclude>-</noinclude>}}}|<tr><th>Wife</th><td>{{{spouse1}}}</td></tr>}}<!--
 
-->{{#if:{{{issue|<noinclude>-</noinclude>}}}|<tr><th>Issue</th><td>{{{issue}}}</td></tr>}}<!--
 
-->{{#if:{{{royalhouse|<noinclude>-</noinclude>}}}|<tr><th>Royal House</th><td>{{{royalhouse}}}</td></tr>}}<!--
 
-->{{#if:{{{dynasty|<noinclude>-</noinclude>}}}|<tr><th>Dynasty</th><td>{{{dynasty}}}</td></tr>}}<!--
 
-->{{#if:{{{royalanthem|<noinclude>-</noinclude>}}}|<tr><th>Royal Anthem</th><td>{{{royalanthem}}}</td></tr>}}<!--
 
-->{{#if:{{{father|<noinclude>-</noinclude>}}}|<tr><th>Father</th><td>{{{father}}}</td></tr>}}<!--
 
-->{{#if:{{{mother|<noinclude>-</noinclude>}}}|<tr><th>Mother</th><td>{{{mother}}}</td></tr>}}<!--
 
-->{{#if:{{{dateofbirth|<noinclude>-</noinclude>}}}|<tr><th>Date Of Birth</th><td>{{{dateofbirth}}}</td></tr>}}<!--
 
-->{{#if:{{{placeofbirth|<noinclude>-</noinclude>}}}|<tr><th>Place Of Birth</th><td>{{{placeofbirth}}}</td></tr>}}<!--
 
-->{{#if:{{{dateofdeath|<noinclude>-</noinclude>}}}|<tr><th>Date Of Death</th><td>{{{dateofdeath}}}</td></tr>}}<!--
 
-->{{#if:{{{placeofdeath|<noinclude>-</noinclude>}}}|<tr><th>Place Of Death</th><td>{{{placeofdeath}}}</td></tr>}}<!--
 
-->{{#if:{{{dateofburial|<noinclude>-</noinclude>}}}|<tr><th>Date Of Burial</th><td>{{{dateofburial}}}</td></tr>}}<!--
 
-->{{#if:{{{placeofburial|<noinclude>-</noinclude>}}}|<tr><th>Place Of Burial</th><td>{{{placeofburial}}}</td></tr>}}
 
</table><noinclude>
 
  
<!--Please do not make major changes to the infobox without proposing and discussing it on the talk page first.-->
+
| image = {{{image|[[Image:No_image.jpg|200px]]}}}
 +
| caption = {{{image_caption|}}}
 +
| imagestyle = {{{imagestyle|}}}
 +
 
 +
<!--
 +
| bodyclass =
 +
| titleclass    =
 +
| aboveclass =
 +
| imageclass =
 +
-->
 +
| headerstyle  = background-color:#B0C4DE;
 +
<!-- Biographical Information Section -->
 +
| header1 = Biographical Information
 +
 
 +
| label2 = Reign
 +
| data2 = {{{reign|}}}
 +
| label3 = Coronation
 +
| data3 = {{{coronation|}}}
 +
 
 +
| label5 = Full Name
 +
| data5 = {{{fullname|}}}
 +
| label6 = Alias
 +
| data6 = {{{alias|}}}
 +
| label7 = Titles
 +
| data7 = {{{othertitles|}}}
 +
| label10 = Born
 +
| data10 = {{#if:{{{dateofbirth|}}}|{{#if:{{{placeofbirth|}}}|In&nbsp;{{{dateofbirth}}},&nbsp;at&nbsp;{{{placeofbirth}}}|In&nbsp;{{{dateofbirth}}}}}|{{#if:{{{placeofbirth|}}}|At&nbsp;{{{placeofbirth}}}|}}|}}
 +
| label11 = Died
 +
| data11 = {{#if:{{{dateofdeath|}}}|{{#if:{{{placeofdeath|}}}|In&nbsp;{{{dateofdeath}}},&nbsp;at&nbsp;{{{placeofdeath}}}|In&nbsp;{{{dateofdeath}}}}}|{{#if:{{{placeofdeath|}}}|At&nbsp;{{{placeofdeath}}}|}}|}}
 +
| label14 = Buried
 +
| data14 = {{#if:{{{dateofburial|}}}|{{#if:{{{placeofburial|}}}|In&nbsp;{{{dateofburial}}},&nbsp;at&nbsp;{{{placeofburial}}}|In&nbsp;{{{dateofburial}}}}}|{{#if:{{{placeofburial|}}}|At&nbsp;{{{placeofburial}}}|}}|}}
 +
| label16 = Culture
 +
| data16 = {{{culture|}}}
 +
 
 +
<!-- Family Section -->
 +
| header18 = {{#if: {{{royalhouse|}}}{{{predecessor|}}}{{{heir|}}}{{{successor|}}} {{{queen|}}}{{{consort|}}}{{{spouse|}}}{{{issue|}}} {{{father|}}}{{{mother|}}}| Family}}
 +
 
 +
| label19 = Royal House
 +
| data19 = {{{royalhouse|}}}
 +
| label20 = Predecessor
 +
| data20 = {{{predecessor|}}}
 +
| label21 = Heir
 +
| data21 = {{{heir|}}}
 +
| label22 = Successor
 +
| data22 = {{{successor|}}}
 +
 
 +
| label23 = Queen
 +
| data23 = {{{queen|}}}
 +
| label24 = Consort
 +
| data24 = {{{consort|}}}
 +
| label25 = Betrothed
 +
| data25 = {{{betrothed|}}}
 +
| label26 = Spouse
 +
| data26 = {{{spouse1|{{{spouse|}}}}}}<!-- for compatibility-->
 +
| label27 = Issue
 +
| data27 = {{{issue|}}}
 +
 
 +
| label28 = Father
 +
| data28 = {{{father|}}}
 +
| label29 = Mother
 +
| data29 = {{{mother|}}}
 +
 
 +
| label30      = Personal arms
 +
| data30 = {{{coat-of-arms|}}}
 +
 
 +
<!-- References Section -->
 +
| header36 = {{#if: {{{TV_series|}}}{{{Played_by|}}}{{{Books|}}}|References}}
 +
| label37 = Books       
 +
| data37 = {{{Books|}}}
 +
| label38 = Played by
 +
| data38 = {{{Played_by|}}}
 +
| label39 = TV series
 +
| data39 = {{{TV_series|}}}
 +
}}</includeonly><noinclude>
 +
 
 +
<!-- Example -->
 +
{{Monarch
 +
| name          = His name         
 +
| image caption = image caption
 +
| reign = From Date to Date
 +
| coronation = Date
 +
| alias        = text
 +
| othertitles = Additional titles
 +
| fullname = text
 +
| predecessor = text
 +
| successor = text
 +
| heir = text
 +
| queen = text
 +
| consort = text
 +
| betrothed = text
 +
| spouse = text
 +
| issue = list
 +
| royalhouse = text
 +
| father = text
 +
| mother = text
 +
| dateofbirth = Date
 +
| placeofbirth = text
 +
| dateofdeath = Date
 +
| placeofdeath = text
 +
| dateofburial = Date
 +
| placeofburial = text
 +
| culture = text
 +
}}
  
 
==Usage==
 
==Usage==
<pre style="width:35em">
+
Empty Template for easy copy/paste:
{{Monarch
+
<pre>
| colour        =
+
{{Infobox monarch
 
| name          =  
 
| name          =  
 
| image        =  
 
| image        =  
| image_caption =  
+
| image_caption =  
| reign=
+
| reign =
| coronation=
+
| coronation =
| othertitles=
+
| othertitles =
| fullname=
+
| alias        =
| predecessor=
+
| fullname =
| successor=
+
| predecessor =
| suc-type=
+
| successor =
| heir=
+
| heir =
| queen=
+
| queen =
| consort=
+
| consort =
| spouse1=
+
| betrothed =
| issue=
+
| spouse =
| royalhouse=
+
| issue =
| dynasty=
+
| royalhouse =
| royalanthem=
+
| father =
| father=
+
| mother =
| mother=
+
| dateofbirth =
| dateofbirth=
+
| placeofbirth =
| placeofbirth=
+
| dateofdeath =
| dateofdeath=
+
| placeofdeath =
| placeofdeath=
+
| dateofburial =
| dateofburial=
+
| placeofburial =
| placeofburial=
+
| culture =
 +
| coat-of-arms =
 +
| Books        =
 +
| Played_by =
 +
| TV_series =
 
}}
 
}}
 
</pre>
 
</pre>
  
 +
Note:Parameters which assigned no value are not shown when the template is used.<br />
 +
you can see a preview of the template with all of its fields on your right side.
  
 
+
<pre>
Note:Parameters which get no value are not shown when the template is used.<br />
+
{{Infobox monarch
you can see a preview on your right side.
+
| name          =
 +
| image        = Full Image syntax for example [[File:....|300px]].
 +
| image_caption =
 +
| reign = From {{Date|XXX}} to {{Date|XXX}} - Period during which he ruled
 +
| coronation = {{Date|XXX}} - when he was crowned
 +
| othertitles = additional titles
 +
| alias        =
 +
| fullname =
 +
| predecessor = the person who preceded him
 +
| successor = the person who succeeded him
 +
| queen =
 +
| consort =
 +
| betrothed =
 +
| spouse =
 +
| heir =
 +
| issue = other children
 +
| royalhouse =
 +
| father =
 +
| mother =
 +
| dateofbirth = {{Date|XXX}}
 +
| placeofbirth =
 +
| dateofdeath =
 +
| placeofdeath =
 +
| dateofburial =
 +
| placeofburial =
 +
| culture = see [[:Category:Cultures]] for options.
 +
| Books        =
 +
| Played_by =
 +
| TV_series =
 +
}}
 +
</pre>
 
[[Category:Infobox templates|Monarch]]</noinclude>
 
[[Category:Infobox templates|Monarch]]</noinclude>

Revision as of 07:40, 2 June 2020


His name
Monarch
Reign From Date to Date
Coronation Date
Full name text
Title Additional titles
Predecessor text
Heir text
Successor text
Personal Information
Alias text
Born Date
text
Died Date
text
Buried Date
text
Culture text
Family
Dynasty text
Queen text
Consort text
Betrothed text
Spouse text
Issue list
Father text
Mother text

Usage

Empty Template for easy copy/paste:

{{Infobox monarch
| name          = 
| image         = 
| image_caption	= 
| reign		=
| coronation	=
| othertitles	=
| alias         =
| fullname	=
| predecessor	=
| successor	=
| heir		=
| queen		=
| consort	=
| betrothed	=
| spouse	=
| issue		=
| royalhouse	=
| father	=
| mother	=
| dateofbirth	=
| placeofbirth	=
| dateofdeath	=
| placeofdeath	=
| dateofburial	=
| placeofburial	=
| culture	= 
| coat-of-arms	=
| Books         =
| Played_by	=
| TV_series	=
}}

Note:Parameters which 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 your right side.

{{Infobox monarch
| name          = 
| image         = Full Image syntax for example [[File:....|300px]].
| image_caption	=
| reign		= From {{Date|XXX}} to {{Date|XXX}} - Period during which he ruled
| coronation	= {{Date|XXX}} - when he was crowned
| othertitles	= additional titles 
| alias         =
| fullname	=
| predecessor	= the person who preceded him
| successor	= the person who succeeded him
| queen		= 
| consort	=
| betrothed	=
| spouse	=
| heir		= 
| issue		= other children
| royalhouse	=
| father	=
| mother	=
| dateofbirth	= {{Date|XXX}}
| placeofbirth	=
| dateofdeath	=
| placeofdeath	=
| dateofburial	=
| placeofburial	= 
| culture	= see [[:Category:Cultures]] for options.
| Books         = 
| Played_by	= 
| TV_series	= 
}}