Jump to content

Template:Infobox royalty: Difference between revisions

From Encyclopædia Mundus
Created page with "<includeonly> {| class="infobox vcard" style="width: 320px; font-size: 90%;" |- ! colspan="2" class="infobox-above fn" style="text-align:center; font-size: 125%;" | {{{name|{{PAGENAME}}}}} |- | colspan="2" style="text-align:center;" | {{#if: {{{title|}}} | <div class="infobox-subheader" style="font-size: 95%;">{{{title}}}</div> | }} |- | colspan="2" style="text-align:center;" | {{#if: {{{image|}}} | [[File:{{{image}}}|frameless|250px|alt={{{image_alt|}}}]] {{#if: {..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Template:Infobox royalty (HTML-safe, auto-links for selected fields) -->
<table class="infobox infobox-royalty">
  <tr>
    <th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th>
  </tr>
  <!-- Primary image (below nameplate) -->
  {{#if: {{{image|}}} |
  <tr>
    <td class="infobox-image mw-no-invert" colspan="2">
      [[File:{{{image}}}|{{{imagesize|250px}}}|alt={{{image_alt|}}}|center]]
      {{#if: {{{image_caption|}}} | <div class="infobox-caption">{{{image_caption}}}</div> }}
    </td>
  </tr>
  }}
  {{#if: {{{title|}}} |
  <tr>
    <th scope="row">Title</th>
    <td>{{{title}}}</td>
  </tr>
  }}
  {{#if: {{{reign|}}} |
  <tr>
    <th scope="row">Reign</th>
    <td>{{{reign}}}</td>
  </tr>
  }}
  {{#if: {{{coronation|}}} |
  <tr>
    <th scope="row">Coronation</th>
    <td>{{{coronation}}}</td>
  </tr>
  }}
  {{#if: {{{predecessor|}}} |
  <tr>
    <th scope="row">Predecessor</th>
    <td>[[{{{predecessor}}}]]</td>
  </tr>
  }}
  {{#if: {{{successor|}}} |
  <tr>
    <th scope="row">Successor</th>
    <td>[[{{{successor}}}]]</td>
  </tr>
  }}
  {{#if: {{{spouse|}}} |
  <tr>
    <th scope="row">Spouse</th>
    <td>[[{{{spouse}}}]]</td>
  </tr>
  }}
  {{#if: {{{issue|}}} |
  <tr>
    <th scope="row">Issue</th>
    <td>{{{issue}}}</td>
  </tr>
  }}
  <!-- House (above Father), plus coat of arms image below -->
  {{#if: {{{house|}}} |
  <tr>
    <th scope="row">House</th>
    <td>[[{{{house}}}]]</td>
  </tr>
  }}
  {{#if: {{{house_coa|}}} |
  <tr>
    <td class="infobox-image mw-no-invert" colspan="2">
      [[File:{{{house_coa}}}|{{{house_coa_size|200px}}}|alt={{{house_coa_alt|}}}|center]]
      {{#if: {{{house_coa_caption|}}} | <div class="infobox-caption">{{{house_coa_caption}}}</div> }}
    </td>
  </tr>
  }}
  {{#if: {{{father|}}} |
  <tr>
    <th scope="row">Father</th>
    <td>[[{{{father}}}]]</td>
  </tr>
  }}
  {{#if: {{{mother|}}} |
  <tr>
    <th scope="row">Mother</th>
    <td>[[{{{mother}}}]]</td>
  </tr>
  }}
  {{#if: {{{birth_date|}}} |
  <tr>
    <th scope="row">Born</th>
    <td>{{{birth_date}}}</td>
  </tr>
  }}
  {{#if: {{{death_date|}}} |
  <tr>
  <th scope="row">Age at death</th>
    <td>{{{death_date}}}</td>
  </tr>
  }}
  {{#if: {{{known_for|}}} |
  <tr>
    <th scope="row">Known for</th>
    <td>{{{known_for}}}</td>
  </tr>
  }}
</table>
<includeonly>
<includeonly>
{|
  {{#ifeq:{{NAMESPACE}}| |
class="infobox vcard"
     {{#if:{{{nocat|}}}| | [[Category:{{{category|Characters}}}]]}}
style="width: 320px; font-size: 90%;"
   }}
|-
! colspan="2" class="infobox-above fn" style="text-align:center; font-size: 125%;"
| {{{name|{{PAGENAME}}}}}
|-
| colspan="2" style="text-align:center;"
| {{#if: {{{title|}}} | <div class="infobox-subheader" style="font-size: 95%;">{{{title}}}</div> | }}
|-
| colspan="2" style="text-align:center;"
| {{#if: {{{image|}}}
  | [[File:{{{image}}}|frameless|250px|alt={{{image_alt|}}}]]
     {{#if: {{{caption|}}} | <div class="infobox-caption" style="font-size: 90%;">{{{caption}}}</div> | }}
  | <!-- no image -->
}}
|-
! scope="row" style="text-align:left;"
| Reign
| {{{reign|}}}
|-
! scope="row" style="text-align:left;"
| Coronation
| {{{coronation|}}}
|-
! scope="row" style="text-align:left;"
| Predecessor
| {{{predecessor|}}}
|-
! scope="row" style="text-align:left;"
| Successor
| {{{successor|}}}
|-
! scope="row" style="text-align:left;"
| Spouse
| {{{spouse|}}}
|-
! scope="row" style="text-align:left;"
| Issue
| {{{issue|}}}
|-
! scope="row" style="text-align:left;"
| House
| {{{house|}}}
|-
| colspan="2" style="text-align:center;"
| {{#if: {{{house_arms_image|}}}
  | [[File:{{{house_arms_image}}}|frameless|180px|alt={{{house_arms_alt|}}}]]
    {{#if: {{{house_arms_caption|}}} | <div class="infobox-caption" style="font-size: 90%;">{{{house_arms_caption}}}</div> | }}
   | <!-- no house arms image -->
}}
|-
! scope="row" style="text-align:left;"
| Father
| {{{father|}}}
|-
! scope="row" style="text-align:left;"
| Mother
| {{{mother|}}}
|-
! scope="row" style="text-align:left;"
| Born
| {{{birth_date|}}}{{#if: {{{birth_place|}}} | <br/>{{{birth_place}}} | }}
|-
! scope="row" style="text-align:left;"
| Died
| {{{death_date|}}}{{#if: {{{death_place|}}} | <br/>{{{death_place}}} | }}
|-
! scope="row" style="text-align:left;"
| Burial place
| {{{burial_place|}}}
|-
! scope="row" style="text-align:left;"
| Religion
| {{{religion|}}}
|-
! scope="row" style="text-align:left;"
| Known for
| {{{known_for|}}}
|}
</includeonly>
</includeonly>


<noinclude>
<noinclude>
{{Documentation}}
== Usage ==
<pre>
{{Infobox royalty
| name =
| title =
| image =
| caption =
| reign =
| coronation =
| predecessor =
| successor =
| spouse =
| issue =
| house =
| house_arms_image =
| house_arms_caption =
| father =
| mother =
| birth_date =
| birth_place =
| death_date =
| death_place =
| burial_place =
| religion =
| known_for =
}}
</pre>
== TemplateData ==
<templatedata>
<templatedata>
{
{
   "description": "Infobox for monarchs and royal figures.",
   "description": "Royalty infobox for Mundus. Auto-links predecessor, successor, spouse, house, father, and mother. For non-linked fields, enter normal text.",
   "params": {
   "params": {
     "name": { "label": "Name", "type": "string" },
     "name": { "label": "Name", "type": "string", "example": "Empress Ylva" },
    "title": { "label": "Title", "type": "string" },
    "image": { "label": "Image (file name)", "type": "string" },
    "image_alt": { "label": "Image alt text", "type": "string" },
    "caption": { "label": "Image caption", "type": "string" },


     "reign": { "label": "Reign", "type": "string" },
     "image": { "label": "Primary image filename", "description": "Filename only (no \"File:\" prefix).", "type": "string", "example": "EmpressYlva.png" },
     "coronation": { "label": "Coronation", "type": "string" },
     "imagesize": { "label": "Primary image size", "type": "string", "default": "250px" },
     "predecessor": { "label": "Predecessor", "type": "string" },
     "image_alt": { "label": "Primary image alt text", "type": "string" },
     "successor": { "label": "Successor", "type": "string" },
     "image_caption": { "label": "Primary image caption", "type": "string" },


     "spouse": { "label": "Spouse", "type": "string" },
     "title": { "label": "Title", "type": "string", "example": "Empress of Directionland" },
     "issue": { "label": "Issue", "type": "string" },
    "reign": { "label": "Reign", "type": "string", "example": "Unknown (ascended aged 15; crowned aged 18)" },
     "coronation": { "label": "Coronation", "type": "string", "example": "Aged 18" },


     "house": { "label": "House", "type": "string" },
     "predecessor": { "label": "Predecessor (page name only)", "type": "string", "example": "Emperor Maximilian II" },
    "house_arms_image": { "label": "House coat of arms image (file name)", "type": "string" },
     "successor": { "label": "Successor (page name only)", "type": "string", "example": "Emperor Farrion III" },
     "house_arms_alt": { "label": "House arms alt text", "type": "string" },
    "house_arms_caption": { "label": "House arms caption", "type": "string" },


     "father": { "label": "Father", "type": "string" },
     "spouse": { "label": "Spouse (page name only)", "type": "string", "example": "Prince Xander of Directionland" },
     "mother": { "label": "Mother", "type": "string" },
     "issue": { "label": "Issue", "type": "string", "example": "Prince Farrion (later Emperor Farrion III)<br/>Princess Amelia" },


     "birth_date": { "label": "Born (date)", "type": "string" },
     "house": { "label": "House (page name only)", "type": "string", "example": "House Example" },
     "birth_place": { "label": "Born (place)", "type": "string" },
     "house_coa": { "label": "House coat of arms filename", "description": "Filename only (no \"File:\" prefix).", "type": "string", "example": "HouseExample_CoA.png" },
     "death_date": { "label": "Died (date)", "type": "string" },
     "house_coa_size": { "label": "House coat of arms size", "type": "string", "default": "200px" },
     "death_place": { "label": "Died (place)", "type": "string" },
    "house_coa_alt": { "label": "House coat of arms alt text", "type": "string" },
     "house_coa_caption": { "label": "House coat of arms caption", "type": "string" },


     "burial_place": { "label": "Burial place", "type": "string" },
     "father": { "label": "Father (page name only)", "type": "string", "example": "Emperor Maximilian II" },
     "religion": { "label": "Religion", "type": "string" },
    "mother": { "label": "Mother (page name only)", "type": "string", "example": "Empress Maria" },
     "known_for": { "label": "Known for", "type": "string" }
 
   }
    "birth_date": { "label": "Born", "type": "string", "example": "Unknown" },
     "death_date": { "label": "Died", "type": "string", "example": "Aged 82" },
 
     "known_for": { "label": "Known for", "type": "string", "example": "Introduction of cherry trees to Directionland; origin of the cherry blossom as national flower" },
 
    "category": { "label": "Category (optional)", "type": "string", "default": "Characters" },
    "nocat": { "label": "Disable auto-category", "type": "string" }
   },
  "paramOrder": [
    "name",
    "image","imagesize","image_alt","image_caption",
    "title","reign","coronation",
    "predecessor","successor",
    "spouse","issue",
    "house","house_coa","house_coa_size","house_coa_alt","house_coa_caption",
    "father","mother",
    "birth_date","death_date",
    "known_for",
    "category","nocat"
  ]
}
}
</templatedata>
</templatedata>
== Usage ==
<pre>
{{Infobox royalty
| name        = Empress Ylva
| image      = EmpressYlva.png
| image_caption = Official portrait
| title      = Empress of Directionland
| reign      = Unknown (ascended aged 15; crowned aged 18)
| coronation  = Aged 18
| predecessor = Emperor Maximilian II
| successor  = Emperor Farrion III
| spouse      = Prince Xander of Directionland
| issue      = Prince Farrion (later Emperor Farrion III)<br/>Princess Amelia
| house      = House Example
| house_coa  = HouseExample_CoA.png
| father      = Emperor Maximilian II
| mother      = Empress Maria
| death_date  = Aged 82
| known_for  = Introduction of cherry trees to Directionland; origin of the cherry blossom as national flower
}}
</pre>
</noinclude>
</noinclude>

Latest revision as of 06:09, 17 December 2025

Infobox royalty



Royalty infobox for Mundus. Auto-links predecessor, successor, spouse, house, father, and mother. For non-linked fields, enter normal text.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

no description

Example
Empress Ylva
Stringoptional
Primary image filenameimage

Filename only (no "File:" prefix).

Example
EmpressYlva.png
Stringoptional
Primary image sizeimagesize

no description

Default
250px
Stringoptional
Primary image alt textimage_alt

no description

Stringoptional
Primary image captionimage_caption

no description

Stringoptional
Titletitle

no description

Example
Empress of Directionland
Stringoptional
Reignreign

no description

Example
Unknown (ascended aged 15; crowned aged 18)
Stringoptional
Coronationcoronation

no description

Example
Aged 18
Stringoptional
Predecessor (page name only)predecessor

no description

Example
Emperor Maximilian II
Stringoptional
Successor (page name only)successor

no description

Example
Emperor Farrion III
Stringoptional
Spouse (page name only)spouse

no description

Example
Prince Xander of Directionland
Stringoptional
Issueissue

no description

Example
Prince Farrion (later Emperor Farrion III)<br/>Princess Amelia
Stringoptional
House (page name only)house

no description

Example
House Example
Stringoptional
House coat of arms filenamehouse_coa

Filename only (no "File:" prefix).

Example
HouseExample_CoA.png
Stringoptional
House coat of arms sizehouse_coa_size

no description

Default
200px
Stringoptional
House coat of arms alt texthouse_coa_alt

no description

Stringoptional
House coat of arms captionhouse_coa_caption

no description

Stringoptional
Father (page name only)father

no description

Example
Emperor Maximilian II
Stringoptional
Mother (page name only)mother

no description

Example
Empress Maria
Stringoptional
Bornbirth_date

no description

Example
Unknown
Stringoptional
Dieddeath_date

no description

Example
Aged 82
Stringoptional
Known forknown_for

no description

Example
Introduction of cherry trees to Directionland; origin of the cherry blossom as national flower
Stringoptional
Category (optional)category

no description

Default
Characters
Stringoptional
Disable auto-categorynocat

no description

Stringoptional

Usage

{{Infobox royalty
| name        = Empress Ylva
| image       = EmpressYlva.png
| image_caption = Official portrait
| title       = Empress of Directionland
| reign       = Unknown (ascended aged 15; crowned aged 18)
| coronation  = Aged 18
| predecessor = Emperor Maximilian II
| successor   = Emperor Farrion III
| spouse      = Prince Xander of Directionland
| issue       = Prince Farrion (later Emperor Farrion III)<br/>Princess Amelia
| house       = House Example
| house_coa   = HouseExample_CoA.png
| father      = Emperor Maximilian II
| mother      = Empress Maria
| death_date  = Aged 82
| known_for   = Introduction of cherry trees to Directionland; origin of the cherry blossom as national flower
}}