Difference between revisions of "Template: Infobox monarch"
From A Wiki of Ice and Fire
(revert) |
|||
(30 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
− | | | + | | above = {{#invoke:Infobox character/name|main|name={{{monarch_name|{{{name|{{PAGENAME}}}}}}}}<!-- deprecated -->}} |
− | + | | abovestyle = {{{abovestyle|font-weight:bold; background: none; line-height: 1.1em;}}} | |
− | |||
− | | abovestyle = {{{abovestyle|background: | ||
− | | image = {{{image|[[ | + | | image = {{#if:{{{image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|maxsize=400px|sizedefault=350px|border=no|suppressplaceholder={{Main other|yes|no}}}}|[[Category:Characters without images]]}} |
| caption = {{{image_caption|}}} | | caption = {{{image_caption|}}} | ||
| imagestyle = {{{imagestyle|}}} | | imagestyle = {{{imagestyle|}}} | ||
Line 15: | Line 13: | ||
| imageclass = | | imageclass = | ||
--> | --> | ||
+ | | headerstyle = background-color:#B0C4DE; | ||
− | <!-- | + | <!-- Monarch Section --> |
− | | | + | | header1 = Monarch |
| label2 = Reign | | label2 = Reign | ||
Line 24: | Line 23: | ||
| data3 = {{{coronation|}}} | | data3 = {{{coronation|}}} | ||
− | | label5 = Full | + | | label5 = Full name |
| data5 = {{{fullname|}}} | | data5 = {{{fullname|}}} | ||
− | | label6 = | + | | label6 = {{Infobox label|s=Title|p=Titles|{{{othertitles|}}}}} |
− | | data6 = {{{ | + | | data6 = {{Infobox value|class=plainlist|{{{othertitles|}}}}} |
− | | label7 = | + | | label7 = {{Infobox label|s=Allegiance|p=Allegiances|{{{allegiance|}}}}} |
− | | data7 = {{{ | + | | data7 = {{Infobox value|class=plainlist|{{{allegiance|}}}}} |
− | | label10 = Born | + | | 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|}}}}} |
− | | label16 = Culture | + | |
− | | | + | <!-- 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 {{{dateofbirth}}}, at {{{placeofbirth}}}|In {{{dateofbirth}}}}}|{{#if:{{{placeofbirth|}}}|At {{{placeofbirth}}}|}}|}} | ||
+ | | label14 = Died | ||
+ | | data14 = {{#if:{{{dateofdeath|}}}|{{#if:{{{placeofdeath|}}}|In {{{dateofdeath}}}, at {{{placeofdeath}}}|In {{{dateofdeath}}}}}|{{#if:{{{placeofdeath|}}}|At {{{placeofdeath}}}|}}|}} | ||
+ | | label15 = Buried | ||
+ | | data15 = {{#if:{{{dateofburial|}}}|{{#if:{{{placeofburial|}}}|In {{{dateofburial}}}, at {{{placeofburial}}}|In {{{dateofburial}}}}}|{{#if:{{{placeofburial|}}}|At {{{placeofburial}}}|}}|}} | ||
+ | |||
+ | | label16 = Race | ||
+ | | data16 = {{#if:{{{race|}}}|{{{race}}}{{Main other|[[Category:Pages with the race parameter]]}}}} | ||
+ | | label17 = {{Infobox label|s=Culture|p=Cultures|{{{culture|}}}}} | ||
+ | | data17 = {{Infobox value|class=plainlist|{{{culture|}}}}} | ||
<!-- Family Section --> | <!-- Family Section --> | ||
− | | | + | | header18 = {{#if: {{{royalhouse|}}} {{{queen|}}}{{{consort|}}}{{{spouse|}}} {{{issue|}}} {{{father|}}}{{{mother|}}}| Family}} |
− | | label19 = | + | | label19 = Dynasty |
| data19 = {{{royalhouse|}}} | | data19 = {{{royalhouse|}}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | 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 = | + | | label25 = {{Infobox label|s=Betrothed|p=Betrotheds|{{{betrothed|}}}}} |
− | | data25 = {{{spouse1|{{{spouse|}}}}}}<!-- for compatibility--> | + | | data25 = {{Infobox value|class=plainlist|{{{betrothed|}}}}} |
− | | | + | | label26 = {{Infobox label|s=Spouse|p=Spouses|{{{spouse1|{{{spouse|}}}}}}}} |
− | | | + | | data26 = {{Infobox value|class=plainlist|{{{spouse1|{{{spouse|}}}}}}}}<!-- for compatibility--> |
+ | | label27 = {{Infobox label|s=Lover|p=Lovers|{{{lover|}}}}} | ||
+ | | data27 = {{{lover|}}} | ||
− | + | | label28 = Issue | |
− | + | | data28 = {{{issue|}}} | |
− | | label28 = | ||
− | | data28 = {{{ | ||
− | | | + | | label29 = {{Infobox label|s=Father|p=Fathers|{{{father|}}}}} |
− | | | + | | data29 = {{Infobox value|class=plainlist|{{{father|}}}}} |
− | | | + | | label30 = {{Infobox label|s=Mother|p=Mothers|{{{mother|}}}}} |
+ | | data30 = {{Infobox value|class=plainlist|{{{mother|}}}}} | ||
+ | |||
+ | | label31 = Personal arms | ||
+ | | data31 = {{{coat-of-arms|}}} | ||
<!-- References Section --> | <!-- References Section --> | ||
− | | | + | | 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|}}} | ||
− | }} | + | }}{{Main other|[[Category:Character pages in alphabetical order]]}}</includeonly><noinclude>{{Documentation}}</noinclude> |
− | |||
− | |||
− | {{ | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | </ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− |
Revision as of 15:06, 22 January 2023
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.
The above documentation is transcluded from Template:Infobox monarch/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |