Template:Infobox-peerage: Difference between revisions

m Create Infobox-peerage: at-a-glance peerage-land sidebar (rank-tinted banner, arms, holder, nation, planet, parent, creation, coronet, seat, motto)
m Realm-based holder label (Peer/Holder/Officeholder); split Created/Elevated; name = place only; doc update
Line 11: Line 11:
{{#if:{{{holder|}}}|
{{#if:{{{holder|}}}|
{{!}}-
{{!}}-
{{!}} class="tf-pbox-l" {{!}} '''Holder:'''
{{!}} class="tf-pbox-l" {{!}} '''{{#if:{{{holder_label|}}}|{{{holder_label}}}|{{#switch:{{lc:{{{rank|}}}}}|steadholding|steading|steadholdership=Holder|senator for life|senatorship=Officeholder|#default=Peer}}}}:'''
{{!}} class="tf-pbox-r" {{!}} {{{holder}}}}}
{{!}} class="tf-pbox-r" {{!}} {{{holder}}}}}
{{#if:{{{nation|}}}|
{{#if:{{{nation|}}}|
Line 29: Line 29:
{{!}} class="tf-pbox-l" {{!}} '''Created:'''
{{!}} class="tf-pbox-l" {{!}} '''Created:'''
{{!}} class="tf-pbox-r" {{!}} {{{created}}}}}
{{!}} class="tf-pbox-r" {{!}} {{{created}}}}}
{{#if:{{{elevated|}}}|
{{!}}-
{{!}} class="tf-pbox-l" {{!}} '''{{{elevated_label|Elevated}}}:'''
{{!}} class="tf-pbox-r" {{!}} {{{elevated}}}}}
{{#if:{{{created_by|}}}|
{{#if:{{{created_by|}}}|
{{!}}-
{{!}}-
Line 58: Line 62:
== Usage ==
== Usage ==
<pre>{{Infobox-peerage
<pre>{{Infobox-peerage
| name        = County of McCovey Cove
| name        = McCovey Cove     (place only — the rank banner supplies "County";
| rank        = County       (Barony / Earldom / County / Dukedom / Grand Dukedom /
|                                  defaults to the page name if omitted)
|                               Steadholding / Senator for Life / Principality)
| rank        = County           (Barony / Earldom / County / Dukedom / Grand Dukedom /
|                                   Steadholding / Senator for Life / Principality)
| image        = McCoveyCove.png
| image        = McCoveyCove.png
| arms_caption = Arms of the County of McCovey Cove
| arms_caption = Arms of the County of McCovey Cove
| holder      = [[ADM]] Sir Michael Garcia (Earl)
| holder      = [[ADM]] Sir Michael Garcia
| nation      = [[Star Empire of Manticore]]
| nation      = [[Star Empire of Manticore]]
| planet      = [[honorverse:Manticore|Manticore]]
| planet      = [[honorverse:Manticore|Manticore]]
| parent      = Duchy of the Golden Gate
| parent      = Duchy of the Golden Gate   (omit for a Duchy / Grand Duchy / top-level peerage)
| created      = 27 May 2018 (Earldom 1 July 2023)
| created      = 27 May 2018 (as Baron, at [[MantiCon]] 2018)
| created_by  = [[MantiCon]] 2018
| elevated    = 1 July 2023 (to County, at [[MantiCon]] 2023)
| predecessor  =
| created_by  = [[Elizabeth III]]           (the granting sovereign)
| coronet      = Manticoran Earl
| coronet      = Manticoran Earl
| seat        = [[House of Lords]]
| seat        = [[House of Lords]]
Line 75: Line 80:
| website      = http://mccoveycove.org
| website      = http://mccoveycove.org
}}</pre>
}}</pre>
The <code>rank</code> value is shown verbatim and also tints the banner (Grand Dukedom/Dukedom = purple, Earldom/County = crimson, Barony = gold, Steadholding = green, Senator for Life = blue). All fields are optional; omit any that do not apply.
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.


[[Category:Templates]]
[[Category:Templates]]
[[Category:Sidebar templates|Infobox-peerage]]
[[Category:Sidebar templates|Infobox-peerage]]
</noinclude>
</noinclude>