Difference between revisions of "Template: Infobox monarch"

From A Wiki of Ice and Fire
Jump to: navigation, search
(42 intermediate revisions by 9 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|}}}
| label3 = Reign
+
| imagestyle = {{{imagestyle|}}}
| data3 = {{{reign|}}}
+
 
| label4 = Coronation
+
<!--
| data4 = {{{coronation|}}}
+
| bodyclass =
| label5 = Other Titles
+
| titleclass    =
| data5 = {{{othertitles|}}}
+
| aboveclass =
| label6 = Full Name
+
| imageclass =
| data6 = {{{fullname|}}}
+
-->
| label7 = Predecessor
+
| headerstyle  = background-color:#B0C4DE;
| data7 = {{{predecessor|}}}
+
<!-- Biographical Information Section -->
| label8 = Successor
+
| header1 = Biographical Information
| data8 = {{{successor|}}}
+
 
| label9 = Suc-Type
+
| label2 = Reign
| data9 = {{{suc-type|}}}
+
| data2 = {{{reign|}}}
| label10 = Heir
+
| label3 = Coronation
| data10 = {{{heir|}}}
+
| data3 = {{{coronation|}}}
| label11 = Queen
+
 
| data11 = {{{queen|}}}
+
| label5 = Full Name
| label12 = Consort
+
| data5 = {{{fullname|}}}
| data12 = {{{consort|}}}
+
| label6 = Alias
| label13 = Wife
+
| data6 = {{{alias|}}}
| data13 = {{{Spouse|}}}
+
| label7 = Titles
| label14 = Issue
+
| data7 = {{{othertitles|}}}
| data14 = {{{issue|}}}
+
| label10 = Born
| label15 = Royal House
+
| data10 = {{#if:{{{dateofbirth|}}}|{{#if:{{{placeofbirth|}}}|In&nbsp;{{{dateofbirth}}},&nbsp;at&nbsp;{{{placeofbirth}}}|In&nbsp;{{{dateofbirth}}}}}|{{#if:{{{placeofbirth|}}}|At&nbsp;{{{placeofbirth}}}|}}|}}
| data15 = {{{royalhouse|}}}
+
| label11 = Died
| label16 = Dynasty
+
| data11 = {{#if:{{{dateofdeath|}}}|{{#if:{{{placeofdeath|}}}|In&nbsp;{{{dateofdeath}}},&nbsp;at&nbsp;{{{placeofdeath}}}|In&nbsp;{{{dateofdeath}}}}}|{{#if:{{{placeofdeath|}}}|At&nbsp;{{{placeofdeath}}}|}}|}}
| data16 = {{{dynasty|}}}
+
| label14 = Buried
| label17 = Royal Anthem
+
| data14 = {{#if:{{{dateofburial|}}}|{{#if:{{{placeofburial|}}}|In&nbsp;{{{dateofburial}}},&nbsp;at&nbsp;{{{placeofburial}}}|In&nbsp;{{{dateofburial}}}}}|{{#if:{{{placeofburial|}}}|At&nbsp;{{{placeofburial}}}|}}|}}
| data17 = {{{royalanthem|}}}
+
| label16 = Culture
| label18 = Father
+
| data16 = {{{culture|}}}
| data18 = {{{father|}}}
+
 
| label19 = Mother
+
<!-- Family Section -->
| data19 = {{{mother|}}}
+
| header18 = {{#if: {{{royalhouse|}}}{{{predecessor|}}}{{{heir|}}}{{{successor|}}} {{{queen|}}}{{{consort|}}}{{{spouse|}}}{{{issue|}}} {{{father|}}}{{{mother|}}}| Family}}
| label20 = Date of birth
+
 
| data20 = {{{dateofbirth|}}}
+
| label19 = Royal House
| label21 = Place of birth
+
| data19 = {{{royalhouse|}}}
| data21 = {{{placeofbirth|}}}
+
| label20 = Predecessor
| label22 = Date of Death
+
| data20 = {{{predecessor|}}}
| data22 = {{{dateofdeath|}}}
+
| label21 = Heir
| label23 = Place of Death
+
| data21 = {{{heir|}}}
| data23 = {{{placeofdeath|}}}
+
| label22 = Successor
| label24 = Date of Burial
+
| data22 = {{{successor|}}}
| data24 = {{{dateofburial|}}}
+
 
| label25 = Place of Burial
+
| label23 = Queen
| data25 = {{{placeofburial|}}}
+
| data23 = {{{queen|}}}
| label25 = Books       
+
| label24 = Consort
| data25 = {{{Books|}}}
+
| 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|}}}
  
| 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
| lable30      = alias
+
| data38 = {{{Played_by|}}}
| data30        = {{{alias}}}
+
| 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
| spouse1 = text
+
| betrothed = text
| issue = text
+
| spouse = 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==
<pre style="width:35em">
+
Empty Template for easy copy/paste:
{{Infobox Monarch
+
<pre>
 +
{{Infobox monarch
 
| name          =  
 
| name          =  
 
| image        =  
 
| image        =  
| image_caption = image_caption
+
| image_caption =  
 
| reign =
 
| reign =
 
| coronation =
 
| coronation =
Line 104: Line 123:
 
| predecessor =
 
| predecessor =
 
| successor =
 
| successor =
| suc-type =  Options?
 
 
| heir =
 
| heir =
 
| queen =
 
| queen =
 
| consort =
 
| consort =
| spouse1 =
+
| betrothed =
 +
| 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 121: Line 138:
 
| dateofburial =
 
| dateofburial =
 
| placeofburial =
 
| placeofburial =
| Played_by =
+
| culture =
 +
| coat-of-arms =
 
| Books        =
 
| Books        =
 
| Played_by =
 
| Played_by =
Line 128: Line 146:
 
</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.
  
Note:Parameters which get no value are not shown when the template is used.<br />
+
<pre>
you can see a preview 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 =
 +
}}
 +
</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 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	= 
}}