Difference between revisions of "Template: Infobox monarch"

From A Wiki of Ice and Fire
Jump to: navigation, search
(removed fields we dont use.)
(Added race module)
(38 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 
<includeonly>{{Infobox  
 
<includeonly>{{Infobox  
| title = {{{name}}}
+
| title = {{#if:{{{monarch_name|}}}|| {{{name|{{PAGENAME}}}}} }}
 +
| titlestyle = {{{titlestyle|}}}
 +
| above = {{{monarch_name|}}}
 +
| abovestyle    = {{{abovestyle|background: #E0E8FF; text-align:center;}}}
 +
 
 
| image = {{{image|[[Image:No_image.jpg|200px]]}}}
 
| image = {{{image|[[Image:No_image.jpg|200px]]}}}
 
| caption = {{{image_caption|}}}
 
| caption = {{{image_caption|}}}
 +
| imagestyle = {{{imagestyle|}}}
 +
 +
<!--
 +
| bodyclass =
 +
| titleclass    =
 +
| aboveclass =
 +
| imageclass =
 +
-->
 +
| headerstyle  = background-color:#B0C4DE;
 +
<!-- Biographical Information Section -->
 +
| header1 = Biographical Information
  
 
| label2 = Reign
 
| label2 = Reign
Line 8: Line 23:
 
| label3 = Coronation
 
| label3 = Coronation
 
| data3 = {{{coronation|}}}
 
| data3 = {{{coronation|}}}
| label4 = Other Titles
+
 
| data4 = {{{othertitles|}}}
 
 
| label5 = Full Name
 
| label5 = Full Name
 
| data5 = {{{fullname|}}}
 
| data5 = {{{fullname|}}}
 
| label6 = Alias
 
| label6 = Alias
 
| data6 = {{{alias|}}}
 
| data6 = {{{alias|}}}
| label7 = Predecessor
+
| label7 = Titles
| data7 = {{{predecessor|}}}
+
| data7 = {{{othertitles|}}}
| label8 = Successor
+
| label10 = Born
| data8 = {{{successor|}}}
+
| 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      = Race
 +
| data16        = {{{race|}}}
 +
| label17 = Culture
 +
| data17 = {{{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|}}}
  
| label10 = Heir
+
| label28 = Father
| data10 = {{{heir|}}}
+
| data28 = {{{father|}}}
| label11 = Queen
+
| label29 = Mother
| data11 = {{{queen|}}}
+
| data29 = {{{mother|}}}
| label12 = Consort
 
| data12 = {{{consort|}}}
 
| label13 = Wife
 
| data13 = {{{spouse1|{{{spouse|}}}}}}<!-- for compatibility-->
 
| label14 = Issue
 
| data14 = {{{issue|}}}
 
| label15 = Royal House
 
| data15 = {{{royalhouse|}}}
 
  
| label18 = Father
+
| label30      = Personal arms
| data18 = {{{father|}}}
+
| data30 = {{{coat-of-arms|}}}
| label19 = Mother
 
| data19 = {{{mother|}}}
 
| label20 = Date of birth
 
| data20 = {{{dateofbirth|}}}
 
| label21 = Place of birth
 
| data21 = {{{placeofbirth|}}}
 
| label22 = Date of Death
 
| data22 = {{{dateofdeath|}}}
 
| label23 = Place of Death
 
| data23 = {{{placeofdeath|}}}
 
| label24 = Date of Burial
 
| data24 = {{{dateofburial|}}}
 
| label25 = Place of Burial
 
| data25 = {{{placeofburial|}}}
 
| label25 = Books       
 
| data25 = {{{Books|}}}
 
  
| data27 = {{#if: {{{TV_series|}}}{{{Played_by|}}}|<hr> }}
+
<!-- References Section -->
| label28 = Played by
+
| header36 = {{#if: {{{TV_series|}}}{{{Played_by|}}}{{{Books|}}}|References}}
| data28 = {{{Played_by|}}}
+
| label37 = Books       
| label29 = TV series
+
| data37 = {{{Books|}}}
| data29 = {{{TV_series|}}}
+
| label38 = Played by
 +
| data38 = {{{Played_by|}}}
 +
| label39 = TV series
 +
| data39 = {{{TV_series|}}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
  
 
<!-- Example -->
 
<!-- Example -->
 
{{Monarch
 
{{Monarch
| name          = name           
+
| name          = His name           
 
| image caption = image caption
 
| image caption = image caption
| reign = text
+
| reign = From Date to Date
| coronation = text
+
| coronation = Date
 
| alias        = text  
 
| alias        = text  
| othertitles = text
+
| othertitles = Additional titles
 
| fullname = text
 
| fullname = text
 
| predecessor = text
 
| predecessor = text
 
| successor = text
 
| successor = text
| suc-type = text
 
 
| heir = text
 
| heir = text
 
| queen = text
 
| queen = text
 
| consort = text
 
| consort = text
 +
| betrothed = text
 
| spouse = text
 
| spouse = text
| issue = text
+
| issue = list
 
| royalhouse = text
 
| royalhouse = text
| dynasty = text
 
| royalanthem = text
 
 
| father = text
 
| father = text
 
| mother = text
 
| mother = text
| dateofbirth = text
+
| dateofbirth = Date
 
| placeofbirth = text
 
| placeofbirth = text
| dateofdeath = text
+
| dateofdeath = Date
 
| placeofdeath = text
 
| placeofdeath = text
| dateofburial = text
+
| dateofburial = Date
 
| placeofburial = text
 
| placeofburial = text
 +
| culture = text
 
}}
 
}}
  
 
==Usage==
 
==Usage==
 +
Empty Template for easy copy/paste:
 
<pre>
 
<pre>
 
{{Infobox monarch
 
{{Infobox monarch
 
| name          =  
 
| name          =  
 
| image        =  
 
| image        =  
| image_caption = image_caption
+
| image_caption =  
 
| reign =
 
| reign =
 
| coronation =
 
| coronation =
Line 101: Line 125:
 
| predecessor =
 
| predecessor =
 
| successor =
 
| successor =
| suc-type = Options?
 
 
| heir =
 
| heir =
 
| queen =
 
| queen =
 
| consort =
 
| consort =
 +
| betrothed =
 
| spouse =
 
| spouse =
 
| issue =
 
| issue =
 
| royalhouse =
 
| royalhouse =
| dynasty =
 
| royalanthem =
 
 
| father =
 
| father =
 
| mother =
 
| mother =
| dateofbirth = use {{Date|XXX}} for Aegon landing dates.
+
| dateofbirth =
 
| placeofbirth =
 
| placeofbirth =
 
| dateofdeath =
 
| dateofdeath =
Line 118: Line 140:
 
| dateofburial =
 
| dateofburial =
 
| placeofburial =
 
| placeofburial =
| Played_by =
+
| culture =
 +
| coat-of-arms =
 
| Books        =
 
| Books        =
 
| Played_by =
 
| Played_by =
Line 126: Line 149:
  
 
Note:Parameters which assigned no value are not shown when the template is used.<br />
 
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 it's fields on your right side.
+
you can see a preview of the template with all of its fields on your right side.
 +
 
 +
<pre>
 +
{{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 =
 +
}}
 +
</pre>
 
[[Category:Infobox templates|Monarch]]</noinclude>
 
[[Category:Infobox templates|Monarch]]</noinclude>

Revision as of 09:20, 15 May 2021


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 In Date, at text
Died In Date, at text
Buried In Date, at 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	= 
}}