Template:Infobox Noble House: Difference between revisions

From feywild

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if:{{{image|}}}{{{caption|}}}{{{name|}}}{{{world|}}}{{{founding|}}}{{{head|}}}{{{heir|}}}{{{allegiance|}}}{{{seat|}}}{{{region|}}}{{{tier|}}}{{{colors|}}}{{{status|}}}{{{motto|}}}|
{{#if:{{{image|}}}{{{caption|}}}{{{name|}}}{{{world|}}}{{{founding|}}}{{{head|}}}{{{heir|}}}{{{allegiance|}}}{{{seat|}}}{{{region|}}}{{{tier|}}}{{{colors|}}}{{{status|}}}{{{motto|}}}|
<div style="float:right; margin:0 0 10px 15px; border:1px solid #AAA; background-color:#F9F9F9; width:300px; padding:10px; font-size:90%; line-height:1.5em;">
{| class="infobox" style="float:right; margin:0.25em 0 10px 15px; width:300px; border:1px solid #AAA; background-color:#F9F9F9; font-size:90%; line-height:1.5em; border-collapse:separate; border-spacing:0;"
|-
! colspan="2" style="background:#EEE; text-align:center; font-weight:bold; font-size:115%; padding:6px;" | {{{name|{{PAGENAME}}}}}


  <!-- Name -->
<!-- Image + Caption -->
  {{#if:{{{name|}}}|<div style="text-align:center; font-weight:bold; font-size:115%; margin-bottom:6px;">{{{name}}}</div>}}
{{#if:{{{image|}}}|
|-
| colspan="2" style="text-align:center; padding:8px 6px 4px 6px;">
[[File:{{{image}}}|250px|center]]
{{#if:{{{caption|}}}|<div style="font-size:85%; color:#555; margin-top:4px;">{{{caption}}}</div>}}
}}
 
<!-- Motto -->
{{#if:{{{motto|}}}|
|-
| colspan="2" style="text-align:center; font-style:italic; padding:6px 8px;">{{{motto}}}</div>
}}
 
<!-- Data Rows -->
{{#if:{{{world|}}}|
|-
| style="width:40%; font-weight:bold; padding:4px 6px; vertical-align:top; border-top:1px solid #AAA;" | World / Realm
| style="padding:4px 6px; border-top:1px solid #AAA;" | {{{world}}}
}}
 
{{#if:{{{founding|}}}|
|-
| style="width:40%; font-weight:bold; padding:4px 6px; vertical-align:top; border-top:1px solid #DDD;" | Founding / Founder
| style="padding:4px 6px; border-top:1px solid #DDD;" | {{{founding}}}
}}
 
{{#if:{{{head|}}}|
|-
| style="width:40%; font-weight:bold; padding:4px 6px; vertical-align:top; border-top:1px solid #DDD;" | Current Head
| style="padding:4px 6px; border-top:1px solid #DDD;" | {{{head}}}
}}
 
{{#if:{{{heir|}}}|
|-
| style="width:40%; font-weight:bold; padding:4px 6px; vertical-align:top; border-top:1px solid #DDD;" | Heir
| style="padding:4px 6px; border-top:1px solid #DDD;" | {{{heir}}}
}}
 
{{#if:{{{allegiance|}}}|
|-
| style="width:40%; font-weight:bold; padding:4px 6px; vertical-align:top; border-top:1px solid #DDD;" | Allegiance
| style="padding:4px 6px; border-top:1px solid #DDD;" | {{{allegiance}}}
}}
 
{{#if:{{{seat|}}}|
|-
| style="width:40%; font-weight:bold; padding:4px 6px; vertical-align:top; border-top:1px solid #DDD;" | Seat
| style="padding:4px 6px; border-top:1px solid #DDD;" | {{{seat}}}
}}


  <!-- Image + Caption -->
{{#if:{{{region|}}}|
  {{#if:{{{image|}}}|
|-
  <div style="text-align:center; margin-bottom:10px;">
| style="width:40%; font-weight:bold; padding:4px 6px; vertical-align:top; border-top:1px solid #DDD;" | Region
    [[File:{{{image}}}|250px|center]]
| style="padding:4px 6px; border-top:1px solid #DDD;" | {{{region}}}
    {{#if:{{{caption|}}}|<div style="font-size:85%; color:#555;">{{{caption}}}</div>}}
}}
  </div>
  }}


  <!-- Motto -->
{{#if:{{{tier|}}}|  
  {{#if:{{{motto|}}}|<div style="text-align:center; font-style:italic; margin-bottom:8px;">“{{{motto}}}”</div>}}
|-
| style="width:40%; font-weight:bold; padding:4px 6px; vertical-align:top; border-top:1px solid #DDD;" | Court Ranking
| style="padding:4px 6px; border-top:1px solid #DDD;" | {{{tier}}}
}}


  <!-- Data Table -->
{{#if:{{{colors|}}}|  
  <table style="width:100%; border-collapse:collapse; font-size:95%;">
|-
    {{#if:{{{world|}}}|<tr><td style="vertical-align:top; width:40%; font-weight:bold; padding:4px;">World / Realm</td><td style="padding:4px;">{{{world}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}}
| style="width:40%; font-weight:bold; padding:4px 6px; vertical-align:top; border-top:1px solid #DDD;" | Colors
    {{#if:{{{founding|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Founding / Founder</td><td style="padding:4px;">{{{founding}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}}
| style="padding:4px 6px; border-top:1px solid #DDD;" | {{{colors}}}
    {{#if:{{{head|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Current Head</td><td style="padding:4px;">{{{head}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}}
}}
    {{#if:{{{heir|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Heir</td><td style="padding:4px;">{{{heir}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}}
 
    {{#if:{{{allegiance|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Allegiance</td><td style="padding:4px;">{{{allegiance}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}}
{{#if:{{{status|}}}|  
    {{#if:{{{seat|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Seat</td><td style="padding:4px;">{{{seat}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}}
|-
    {{#if:{{{region|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Region</td><td style="padding:4px;">{{{region}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}}
| style="width:40%; font-weight:bold; padding:4px 6px; vertical-align:top; border-top:1px solid #DDD;" | Status
    {{#if:{{{tier|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Court Ranking</td><td style="padding:4px;">{{{tier}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}}
| style="padding:4px 6px; border-top:1px solid #DDD;" | {{{status}}}
    {{#if:{{{colors|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Colors</td><td style="padding:4px;">{{{colors}}}</td></tr><tr><td colspan="2" style="border-bottom:1px solid #aaa; height:8px;"></td></tr>}}
}}
    {{#if:{{{status|}}}|<tr><td style="vertical-align:top; font-weight:bold; padding:4px;">Status</td><td style="padding:4px;">{{{status}}}</td></tr>}}
  </table>


</div>
|}
}}
}}
</includeonly>
</includeonly>
Line 38: Line 87:
<templatedata>
<templatedata>
{
{
"description": "Right-floating infobox for noble houses or bloodlines. Displays crest, motto, and key lineage details.",
  "description": "Right-floating infobox for noble houses or bloodlines. Table-based layout that sits snugly under the page title.",
"params": {
  "params": {
"name": {
    "name": {
"label": "House Name",
      "label": "House Name",
"description": "Full name of the noble house",
      "description": "Full name of the noble house",
"type": "string"
      "type": "string"
},
    },
"image": {
    "image": {
"label": "Image",
      "label": "Image",
"description": "Coat of arms or banner image file (omit 'File:')",
      "description": "Coat of arms or banner image file (omit 'File:')",
"type": "string"
      "type": "string"
},
    },
"caption": {
    "caption": {
"label": "Image caption",
      "label": "Image caption",
"type": "string"
      "type": "string"
},
    },
"motto": {
    "motto": {
"label": "House motto or saying",
      "label": "House motto or saying",
"type": "string"
      "type": "string"
},
    },
"world": {
    "world": {
"label": "World or Realm",
      "label": "World or Realm",
"type": "string"
      "type": "string"
},
    },
"founding": {
    "founding": {
"label": "Founding / Founder",
      "label": "Founding / Founder",
"type": "string"
      "type": "string"
},
    },
"head": {
    "head": {
"label": "Current Head of the House",
      "label": "Current Head of the House",
"type": "string"
      "type": "string"
},
    },
"heir": {
    "heir": {
"label": "Current heir of the House (if any)",
      "label": "Current heir of the House (if any)",
"type": "string"
      "type": "string"
},
    },
"allegiance": {
    "allegiance": {
"label": "Overarching allegiance or liege",
      "label": "Overarching allegiance or liege",
"type": "string"
      "type": "string"
},
    },
"seat": {
    "seat": {
"label": "Primary Stronghold or Seat of Power",
      "label": "Primary Stronghold or Seat of Power",
"type": "string"
      "type": "string"
},
    },
"region": {
    "region": {
"label": "Territory or Domain",
      "label": "Territory or Domain",
"type": "string"
      "type": "string"
},
    },
"tier": {
    "tier": {
"label": "Court Ranking",
      "label": "Court Ranking",
"type": "string"
      "type": "string"
},
    },
"colors": {
    "colors": {
"label": "Official House Colors",
      "label": "Official House Colors",
"type": "string"
      "type": "string"
},
    },
"status": {
    "status": {
"label": "Current Status",
      "label": "Current Status",
"type": "string"
      "type": "string"
}
    }
},
  },
"paramOrder": [
  "paramOrder": [
"name",
    "name",
"image",
    "image",
"caption",
    "caption",
"motto",
    "motto",
"world",
    "world",
"founding",
    "founding",
"head",
    "head",
"heir",
    "heir",
"allegiance",
    "allegiance",
"seat",
    "seat",
"region",
    "region",
"tier",
    "tier",
"colors",
    "colors",
"status"
    "status"
]
  ]
}
}
</templatedata>
</templatedata>
Line 137: Line 186:
}}
}}
</pre>
</pre>
This version floats neatly on the **right side** of pages and allows article text to wrap beside it.
</noinclude>
</noinclude>

Revision as of 11:10, 2 November 2025


Right-floating infobox for noble houses or bloodlines. Table-based layout that sits snugly under the page title.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
House Namename

Full name of the noble house

Stringoptional
Imageimage

Coat of arms or banner image file (omit 'File:')

Stringoptional
Image captioncaption

no description

Stringoptional
House motto or sayingmotto

no description

Stringoptional
World or Realmworld

no description

Stringoptional
Founding / Founderfounding

no description

Stringoptional
Current Head of the Househead

no description

Stringoptional
Current heir of the House (if any)heir

no description

Stringoptional
Overarching allegiance or liegeallegiance

no description

Stringoptional
Primary Stronghold or Seat of Powerseat

no description

Stringoptional
Territory or Domainregion

no description

Stringoptional
Court Rankingtier

no description

Stringoptional
Official House Colorscolors

no description

Stringoptional
Current Statusstatus

no description

Stringoptional

Usage

{{Infobox Noble House
| name        = House Vaeari
| image       = Vaeari_Crest.png
| caption     = Crest of House Vaeari
| motto       = "Family Is Everything"
| world       = Feywild
| founding    = Age of Silver — Lord Aethon Vaeari
| head        = Valkaénnar Vaeari
| heir        = Daryndel Vaeari
| allegiance  = The Rísieth
| seat        = Vaeari Manor
| region      = Unseelie Dominion
| tier        = Tier One (Lord Sovereign)
| colors      = Silver and Black
| status      = Active
}}