Template:Infobox-peerage: Difference between revisions
m Fixing redlinked file |
m Add status field (Defunct/Dissolved/Held in memoriam) with tinted banner |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><templatestyles src="Infobox-peerage/styles.css" /> | ||
{| class="sidebar tf-pbox" | |||
|- | |- | ||
| class=" | | class="tf-pbox-name" colspan="2" | '''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''' | ||
| {{ | {{#if:{{{rank|}}}| | ||
| [[File: | {{!}}- | ||
}} | {{!}} 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}}}}} | ||
|- | {{#if:{{{status|}}}| | ||
{{#if: {{{ | {{!}}- | ||
{{!}} class=" | {{!}} class="tf-pbox-status {{#switch:{{lc:{{{status}}}}}|defunct|dissolved|extinct=tf-st-defunct|#default=tf-st-note}}" colspan="2" {{!}} {{{status}}}}} | ||
{{!}} class=" | {{#if:{{{image|}}}| | ||
|- | {{!}}- | ||
{{#if: {{{ | {{!}} class="tf-pbox-img" colspan="2" {{!}} [[File:{{{image}}}|250px]]{{#if:{{{arms_caption|}}}|<div class="tf-pbox-cap">{{{arms_caption}}}</div>}}}} | ||
{{!}} class=" | {{#if:{{{holder|}}}| | ||
{{!}} class=" | {{!}}- | ||
|- | {{!}} class="tf-pbox-l" {{!}} '''{{#if:{{{holder_label|}}}|{{{holder_label}}}|{{#switch:{{lc:{{{rank|}}}}}|steadholding|steading|steadholdership=Holder|senator for life|senatorship=Officeholder|#default=Peer}}}}:''' | ||
{{#if: {{{ | {{!}} class="tf-pbox-r" {{!}} {{{holder}}}}} | ||
{{!}} class=" | {{#if:{{{nation|}}}| | ||
{{!}} class=" | {{!}}- | ||
|} | {{!}} 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 | ||
| | | 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 | |||
}}</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. | |||
[[Category:Templates]] | |||
[[Category:Sidebar templates|Infobox-peerage]] | |||
</noinclude> | |||
| | |||