Difference between revisions of "Template: Infobox monarch"

From A Wiki of Ice and Fire
Jump to: navigation, search
(added few options for css.)
(46 intermediate revisions by 11 users not shown)
Line 1: Line 1:
 
<includeonly>{{Infobox  
 
<includeonly>{{Infobox  
| title = {{{name|}}}
+
| above = {{#invoke:Infobox character/name|main|name={{{monarch_name|{{{name|{{PAGENAME}}}}}}}}<!-- deprecated -->}}
| above = {{#if:{{{monarch_name|}}}| {{{monarch_name}}} | {{{name|{{PAGENAME}} }}} }}
+
| abovestyle    = {{{abovestyle|font-weight:bold; background: none; line-height: 1.1em;}}}
| aboveclass    = Test
+
 
| abovestyle    = {{{abovestyle|}}}
+
| image = {{#if:{{{image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|maxsize=400px|sizedefault=350px|border=no|suppressplaceholder={{Main other|yes|no}}}}|[[Category:Characters without images]]}}
| imageclass    = Test
 
| imagestyle    = {{{imagestyle|background: #E2DBD1; border: 1px solid #D1BFA6; padding: 3px;}}}
 
 
| caption = {{{image_caption|}}}
 
| caption = {{{image_caption|}}}
 +
| imagestyle = {{{imagestyle|}}}
  
<!-- Biographical Information Section -->
+
<!--  
| data1 = <div style="width:100%;background-color:#B0C4DE;">Biographical Information</div>
+
| bodyclass =
 +
| titleclass    =
 +
| aboveclass =
 +
| imageclass =
 +
-->
 +
| headerstyle  = background-color:#B0C4DE;
 +
 
 +
<!-- Monarch Section -->
 +
| header1 = Monarch
  
 
| label2 = Reign
 
| label2 = Reign
Line 16: 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 = Other Titles
+
| label7 = {{Infobox label|s=Allegiance|p=Allegiances|{{{allegiance|}}}}}
| data7 = {{{othertitles|}}}
+
| data7 = {{Infobox value|class=plainlist|{{{allegiance|}}}}}
 +
 
 +
| label8 = {{Infobox label|s=Predecessor|p=Predecessors|{{{predecessor|}}}}}
 +
| data8 = {{Infobox value|class=plainlist|{{{predecessor|}}}}}
 +
| label9 = {{Infobox label|s=Heir|p=Heirs|{{{heir|}}}}}
 +
| data9 = {{Infobox value|class=plainlist|{{{heir|}}}}}
 +
| label10 = {{Infobox label|s=Successor|p=Successors|{{{successor|}}}}}
 +
| data10 = {{Infobox value|class=plainlist|{{{successor|}}}}}
 +
 
 +
<!-- Personal Information Section -->
 +
| 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}}}|}}|}}
  
| label10 = Born
+
| label16 = Race
| data10 = {{{dateofbirth|}}}
+
| data16 = {{#if:{{{race|}}}|{{{race}}}{{Main other|[[Category:Pages with the race parameter]]}}}}
| label11 = Place of birth
+
| label17 = {{Infobox label|s=Culture|p=Cultures|{{{culture|}}}}}
| data11 = {{{placeofbirth|}}}
+
| data17 = {{Infobox value|class=plainlist|{{{culture|}}}}}
| label12 = Died
 
| data12 = {{{dateofdeath|}}}
 
| label13 = Place of Death
 
| data13 = {{{placeofdeath|}}}
 
| label14 = Buried
 
| data14 = {{{dateofburial|}}}
 
| label15 = Place of Burial
 
| data15 = {{{placeofburial|}}}
 
| label16 = Culture
 
| data16 = {{{culture|}}}
 
  
 
<!-- Family Section -->
 
<!-- Family Section -->
| data18 = {{#if: {{{royalhouse|}}}{{{predecessor|}}}{{{heir|}}}{{{successor|}}} {{{queen|}}}{{{consort|}}}{{{spouse|}}}{{{issue|}}} {{{father|}}}{{{mother|}}}| <div style="width:100%;background-color:#B0C4DE;">Family</div>}}
+
| 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 = Wife
+
| label25 = {{Infobox label|s=Betrothed|p=Betrotheds|{{{betrothed|}}}}}
| data25 = {{{spouse1|{{{spouse|}}}}}}<!-- for compatibility-->
+
| data25 = {{Infobox value|class=plainlist|{{{betrothed|}}}}}
| label26 = Issue
+
| label26 = {{Infobox label|s=Spouse|p=Spouses|{{{spouse1|{{{spouse|}}}}}}}}
| data26 = {{{issue|}}}
+
| data26 = {{Infobox value|class=plainlist|{{{spouse1|{{{spouse|}}}}}}}}<!-- for compatibility-->
 +
| label27 = {{Infobox label|s=Lover|p=Lovers|{{{lover|}}}}}
 +
| data27 = {{{lover|}}}
 +
 
 +
| label28 = Issue
 +
| data28 = {{{issue|}}}
  
| label27 = Father
+
| label29 = {{Infobox label|s=Father|p=Fathers|{{{father|}}}}}
| data27 = {{{father|}}}
+
| data29 = {{Infobox value|class=plainlist|{{{father|}}}}}
| label28 = Mother
+
| label30 = {{Infobox label|s=Mother|p=Mothers|{{{mother|}}}}}
| data28 = {{{mother|}}}
+
| data30 = {{Infobox value|class=plainlist|{{{mother|}}}}}
 +
 
 +
| label31 = Personal arms
 +
| data31 = {{{coat-of-arms|}}}
  
 
<!-- References Section -->
 
<!-- References Section -->
| data36 = {{#if: {{{TV_series|}}}{{{Played_by|}}}{{{Books|}}}|<div style="width:100%;background-color:#B0C4DE;">References</div>}}
+
| 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|}}}
}}</includeonly><noinclude>
+
}}{{Main other|[[Category:Character pages in alphabetical order]]}}</includeonly><noinclude>{{Documentation}}</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
 
| spouse = text
 
| issue = Yes/No (I think)
 
| royalhouse = text
 
| father = text
 
| mother = text
 
| dateofbirth = Date
 
| placeofbirth = text
 
| dateofdeath = Date
 
| placeofdeath = text
 
| dateofburial = Date
 
| placeofburial = text
 
| culture = text
 
}}
 
 
 
==Usage==
 
Empty Template for easy copy/paste:
 
<pre>
 
{{Infobox monarch
 
| name          =
 
| image        =
 
| image_caption =
 
| reign =
 
| coronation =
 
| othertitles =
 
| alias        =
 
| fullname =
 
| predecessor =
 
| successor =
 
| heir =
 
| queen =
 
| consort =
 
| spouse =
 
| issue =
 
| royalhouse =
 
| father =
 
| mother =
 
| dateofbirth =
 
| placeofbirth =
 
| dateofdeath =
 
| placeofdeath =
 
| dateofburial =
 
| placeofburial =
 
| culture =
 
| Played_by =
 
| Books        =
 
| Played_by =
 
| TV_series =
 
}}
 
</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 it's 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 successed him
 
| heir =
 
| queen =
 
| consort =
 
| spouse =
 
| issue = had kids? (I assume Yes/no)
 
| 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>
 

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.