Template:Infobox-peerage: Difference between revisions

From TenthFleet
Jump to navigation Jump to search
Created page with "<includeonly>{| class="sidebar" align="right" colSpan="2" width="250px" cellpadding="4" cellspacing="0" |- | class="class" width="250px" colSpan="2" align="center" | '''{{PAG..."
 
m Add status field (Defunct/Dissolved/Held in memoriam) with tinted banner
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| class="sidebar" align="right" colSpan="2" width="250px" cellpadding="4" cellspacing="0"
<includeonly><templatestyles src="Infobox-peerage/styles.css" />
|-  
{| class="sidebar tf-pbox"
| class="class" width="250px" colSpan="2" align="center" | '''{{PAGENAME}}'''<br>{{#if: {{{type|}}} <font size="-2">({{{type}}})</font>
|-
|-
| class="image" colspan="2" align="center" | {{#if: {{{crest|}}}
| class="tf-pbox-name" colspan="2" | '''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
| {{sidebar image|{{{crest}}}}}
{{#if:{{{rank|}}}|
| [[File:SKMFlag.png|250px]]
{{!}}-
}}
{{!}} class="tf-pbox-rank {{#switch:{{lc:{{{rank}}}}}|grand duchy|grand dukedom=tf-pk-gd|principality|fürstentum|furstentum=tf-pk-gd|duchy|dukedom=tf-pk-duke|earldom|county|countship|grafschaft=tf-pk-earl|barony|baronie|freiherrschaft=tf-pk-baron|steadholding|steading|steadholdership=tf-pk-stead|senator for life|senatorship=tf-pk-senator}}" colspan="2" {{!}} {{{rank}}}}}
|- valign="top"
{{#if:{{{status|}}}|
{{#if: {{{peer|}}}|
{{!}}-
{{!}} class="left" {{!}} '''Peer:'''
{{!}} class="tf-pbox-status {{#switch:{{lc:{{{status}}}}}|defunct|dissolved|extinct=tf-st-defunct|#default=tf-st-note}}" colspan="2" {{!}} {{{status}}}}}
{{!}} class="righta" {{!}} {{{sl}}}}}
{{#if:{{{image|}}}|
|- valign="top"
{{!}}-
{{#if: {{{spouse|}}}|
{{!}} class="tf-pbox-img" colspan="2" {{!}} [[File:{{{image}}}|250px]]{{#if:{{{arms_caption|}}}|<div class="tf-pbox-cap">{{{arms_caption}}}</div>}}}}
{{!}} class="left" {{!}} '''Spouse:'''
{{#if:{{{holder|}}}|
{{!}} class="righta" {{!}} {{{dsl}}}}}
{{!}}-
|- valign="top"
{{!}} class="tf-pbox-l" {{!}} '''{{#if:{{{holder_label|}}}|{{{holder_label}}}|{{#switch:{{lc:{{{rank|}}}}}|steadholding|steading|steadholdership=Holder|senator for life|senatorship=Officeholder|#default=Peer}}}}:'''
{{#if: {{{cos|}}}|
{{!}} class="tf-pbox-r" {{!}} {{{holder}}}}}
{{!}} class="left" {{!}} '''[[Chief of Staff]]:'''
{{#if:{{{nation|}}}|
{{!}} class="righta" {{!}} {{{cos}}}}}
{{!}}-
|}
{{!}} class="tf-pbox-l" {{!}} '''Star nation:'''
</includeonly><noinclude>
{{!}} class="tf-pbox-r" {{!}} {{{nation}}}}}
{{#if:{{{planet|}}}|
{{!}}-
{{!}} class="tf-pbox-l" {{!}} '''Planet:'''
{{!}} class="tf-pbox-r" {{!}} {{{planet}}}}}
{{#if:{{{parent|}}}|
{{!}}-
{{!}} class="tf-pbox-l" {{!}} '''Part of:'''
{{!}} class="tf-pbox-r" {{!}} {{{parent}}}}}
{{#if:{{{created|}}}|
{{!}}-
{{!}} class="tf-pbox-l" {{!}} '''Created:'''
{{!}} class="tf-pbox-r" {{!}} {{{created}}}}}
{{#if:{{{elevated|}}}|
{{!}}-
{{!}} class="tf-pbox-l" {{!}} '''{{{elevated_label|Elevated}}}:'''
{{!}} class="tf-pbox-r" {{!}} {{{elevated}}}}}
{{#if:{{{created_by|}}}|
{{!}}-
{{!}} class="tf-pbox-l" {{!}} '''Created by:'''
{{!}} class="tf-pbox-r" {{!}} {{{created_by}}}}}
{{#if:{{{predecessor|}}}|
{{!}}-
{{!}} class="tf-pbox-l" {{!}} '''Former title:'''
{{!}} class="tf-pbox-r" {{!}} {{{predecessor}}}}}
{{#if:{{{coronet|}}}|
{{!}}-
{{!}} class="tf-pbox-l" {{!}} '''Coronet:'''
{{!}} class="tf-pbox-r" {{!}} {{{coronet}}}}}
{{#if:{{{seat|}}}|
{{!}}-
{{!}} class="tf-pbox-l" {{!}} '''Seat:'''
{{!}} class="tf-pbox-r" {{!}} {{{seat}}}}}
{{#if:{{{motto|}}}|
{{!}}-
{{!}} class="tf-pbox-motto" colspan="2" {{!}} ''“{{{motto}}}”''}}
{{#if:{{{website|}}}|
{{!}}-
{{!}} class="tf-pbox-l" {{!}} '''Website:'''
{{!}} class="tf-pbox-r" {{!}} [{{{website}}} {{{website}}}]}}
|}</includeonly><noinclude>
{{disclaimer}}
'''Infobox-peerage''' is an at-a-glance sidebar for [[peerage]] "land" pages (baronies, earldoms/counties, dukedoms, grand dukedoms, Grayson steadholdings, Andermani and Havenite peerages). It matches the tf-cbox house style, with a rank banner tinted by peerage tier.


==Usage==
== Usage ==
<pre>{{Infobox-peerage
<pre>{{Infobox-peerage
| type       =
| name        = McCovey Cove      (place only — the rank banner supplies "County";
| crest       =  
|                                  defaults to the page name if omitted)
| peer       =  
| rank        = County            (Barony / Earldom / County / Dukedom / Grand Dukedom /
| spouse     =
|                                  Steadholding / Senator for Life / Principality)
| status      =                  (omit for active lands; Defunct / Dissolved / Held in memoriam)
| image       = McCoveyCove.png
| arms_caption = Arms of the County of McCovey Cove
| holder      = [[ADM]] Sir Michael Garcia
| nation      = [[Star Empire of Manticore]]
| planet      = [[honorverse:Manticore|Manticore]]
| parent       = Duchy of the Golden Gate  (omit for a Duchy / Grand Duchy / top-level peerage)
| created      = 27 May 2018 (as Baron, at [[MantiCon]] 2018)
| elevated    = 1 July 2023 (to County, at [[MantiCon]] 2023)
| created_by  = [[Elizabeth III]]          (the granting sovereign)
| coronet      = Manticoran Earl
| seat        = [[House of Lords]]
| motto       = Platinum in Peace, Silicon Carbide in War
| website     = http://mccoveycove.org
}}</pre>
}}</pre>
The <code>rank</code> banner is shown verbatim and tinted by tier (Grand Dukedom/Dukedom = purple, Earldom/County = crimson, Barony = gold, Steadholding = green, Senator for Life = blue). The holder's label follows the realm — '''Peer''' (Manticore/Andermani), '''Holder''' (Grayson Steadholder), or '''Officeholder''' (Havenite Senator-for-Life) — derived from <code>rank</code> (override with <code>holder_label</code>). Use <code>elevated</code> for a later promotion (label overridable via <code>elevated_label</code>, e.g. "Promoted"), and <code>created_by</code> for the granting sovereign. All fields optional; the "Part of" row is meant to be omitted for duchies and grand duchies.


==Parameters==
[[Category:Templates]]
Parameters in '''bold''' are required fields. ''Not'' bold = optional.
[[Category:Sidebar templates|Infobox-peerage]]
{| border=1 cellpadding=4 cellspacing=0 style="margin: 0 0 1em 1em; border: 1px #aaaaaa solid; border-collapse: collapse; font-size: 95%;"
</noinclude>
! Parameter
! Explanation
|-
| type
| The Peerage classification (Barony, Earldom, Duchy, Grand Duchy)
|-
| crest
| The Peerage's crest image. If no image is available, omit this parameter and <nowiki>[[File:SKMFlag.png]]</nowiki> will automatically be used.
|-
| peer
| The Title and Name of the Peer (ie: Sir/Dame Firstname Lastname), without post-nominals or other titles.
|-
| spouse
| The Title and Name of the Spouse (ie: Sir/Dame Firstname Lastname), without post-nominals or other titles.
|
|}
 
==Example when done==
{{Infobox-peerage
| type          = Earldom
| crest        = Westmarch.png
| peer          = [[VADM]] Sir John Neitz
| spouse        = Lady Christina Neitz
}}
<br clear=all>
 
<pre>
{{Infobox-peerage
| type          = Earldom
| crest        = Westmarch.png
| peer          = [[VADM]] Sir John Neitz
| spouse        = Lady Christina Neitz
}}
</pre>
 
[[Category:Sidebar templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 17:06, 15 July 2026

⚠ UnofficialThe Tenth Fleet wiki is an unofficial repository of TRMN orders and records. Per TRMN policy, the official sources are the TRMN Forums (all orders and information) and Mantipedia (the official wiki).

Infobox-peerage is an at-a-glance sidebar for peerage "land" pages (baronies, earldoms/counties, dukedoms, grand dukedoms, Grayson steadholdings, Andermani and Havenite peerages). It matches the tf-cbox house style, with a rank banner tinted by peerage tier.

Usage

{{Infobox-peerage
| name         = McCovey Cove      (place only — the rank banner supplies "County";
|                                   defaults to the page name if omitted)
| rank         = County            (Barony / Earldom / County / Dukedom / Grand Dukedom /
|                                   Steadholding / Senator for Life / Principality)
| status       =                   (omit for active lands; Defunct / Dissolved / Held in memoriam)
| image        = McCoveyCove.png
| arms_caption = Arms of the County of McCovey Cove
| holder       = [[ADM]] Sir Michael Garcia
| nation       = [[Star Empire of Manticore]]
| planet       = [[honorverse:Manticore|Manticore]]
| parent       = Duchy of the Golden Gate   (omit for a Duchy / Grand Duchy / top-level peerage)
| created      = 27 May 2018 (as Baron, at [[MantiCon]] 2018)
| elevated     = 1 July 2023 (to County, at [[MantiCon]] 2023)
| created_by   = [[Elizabeth III]]           (the granting sovereign)
| coronet      = Manticoran Earl
| seat         = [[House of Lords]]
| motto        = Platinum in Peace, Silicon Carbide in War
| website      = http://mccoveycove.org
}}

The rank banner is shown verbatim and tinted by tier (Grand Dukedom/Dukedom = purple, Earldom/County = crimson, Barony = gold, Steadholding = green, Senator for Life = blue). The holder's label follows the realm — Peer (Manticore/Andermani), Holder (Grayson Steadholder), or Officeholder (Havenite Senator-for-Life) — derived from rank (override with holder_label). Use elevated for a later promotion (label overridable via elevated_label, e.g. "Promoted"), and created_by for the granting sovereign. All fields optional; the "Part of" row is meant to be omitted for duchies and grand duchies.