Difference between revisions of "Template: Infobox monarch"

From A Wiki of Ice and Fire
Jump to: navigation, search
m (Finished)
(Undo revision 248779 by Potsk (talk))
(Tag: Undo)
 
(45 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 
<includeonly>{{Infobox  
 
<includeonly>{{Infobox  
| captionstyle = font-size: 130%; margin-bottom:10px; background-color:{{{colour}}};
+
| title = {{#if:{{{monarch_name|}}}|| {{{name|{{PAGENAME}}}}} }}
| title = {{{name}}}
+
| 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|}}}
+
 
| label15 = Royal House
+
| label10 = Born in
| data15 = {{{royalhouse|}}}
+
| data10 = {{{dateofbirth|}}}{{#IF:{{{placeofbirth|}}}|{{#IF:{{{dateofbirth|}}}, at }}}} {{{placeofbirth|}}}
| label16 = Dynasty
+
| label12 = Died in
| data16 = {{{dynasty|}}}
+
| data12 = {{{dateofdeath|}}}{{#IF:{{{placeofdeath|}}}|{{#IF:{{{dateofdeath|}}}, at }}}} {{{placeofdeath|}}}
| label17 = Royal Anthem
+
| label14 = Buried in
| data17 = {{{royalanthem|}}}
+
| data14 = {{{dateofburial|}}}{{#IF:{{{placeofburial|}}}|{{#IF:{{{dateofburial|}}}, at }}}} {{{placeofburial|}}}
| label18 = Father
+
| label16 = Culture
| data18 = {{{father|}}}
+
| data16 = {{{culture|}}}
| label19 = Mother
+
 
| data19 = {{{mother|}}}
+
<!-- Family Section -->
| label20 = Date of birth
+
| header18 = {{#if: {{{royalhouse|}}}{{{predecessor|}}}{{{heir|}}}{{{successor|}}} {{{queen|}}}{{{consort|}}}{{{spouse|}}}{{{issue|}}} {{{father|}}}{{{mother|}}}| Family}}
| data20 = {{{dateofbirth|}}}
+
 
| label21 = Place of birth
+
| label19 = Royal House
| data21 = {{{placeofbirth|}}}
+
| data19 = {{{royalhouse|}}}
| label22 = Date of Death
+
| label20 = Predecessor
| data22 = {{{dateofdeath|}}}
+
| data20 = {{{predecessor|}}}
| label23 = Place of Death
+
| label21 = Heir
| data23 = {{{placeofdeath|}}}
+
| data21 = {{{heir|}}}
| label24 = Date of Burial
+
| label22 = Successor
| data24 = {{{dateofburial|}}}
+
| data22 = {{{successor|}}}
| label25 = Place of Burial
+
 
| data25 = {{{placeofburial|}}}
+
| 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>
 
}}</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
| othertitles = text
+
| alias        = 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:
{{Monarch
+
<pre>
 +
{{Infobox monarch
 
| name          =  
 
| name          =  
 
| image        =  
 
| image        =  
| image_caption = image_caption
+
| image_caption =  
 
| reign =
 
| reign =
 
| coronation =
 
| coronation =
 
| othertitles =
 
| othertitles =
 +
| alias        =
 
| fullname =
 
| fullname =
 
| 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 = Date format?
+
| dateofbirth =
 
| placeofbirth =
 
| placeofbirth =
 
| dateofdeath =
 
| dateofdeath =
Line 110: Line 139:
 
| 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.
  
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>

Latest revision as of 13:04, 25 November 2019


His name
No image.jpg
Biographical Information
Reign From Date to Date
Coronation Date
Full Name text
Alias text
Titles Additional titles
Born in Date text
Died in Date text
Buried in Date text
Culture text
Family
Royal House text
Predecessor text
Heir text
Successor 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	= 
}}