Template:S-vac: Difference between revisions
No edit summary |
convert param to lower case before testing |
||
(65 intermediate revisions by 16 users not shown) | |||
Line 1: | Line 1: | ||
| |
<includeonly>| style="width: 30%; text-align: center;" rowspan="{{{rows|1}}}"|{{#if:{{{1|}}}|{{#switch:{{lc:{{{1}}}}} |
||
|#default={{#if:{{{1}}}|'''Vacant'''}} |
|||
|ab='''In abeyance''' |
|||
|co='''In commission''' |
|||
|di='''Disclaimed''' |
|||
|do='''Dormant''' |
|||
|re='''Recreated''' |
|||
|su='''Suspended''' |
|||
|sede='''''[[Sede vacante]]''''' |
|||
|unkn='''Unknown''' |
|||
|abeyance='''In abeyance''' |
|||
|commission='''In commission''' |
|||
|disclaimed='''Disclaimed''' |
|||
|dormant='''Dormant''' |
|||
|extinct='''Extinct''' |
|||
|forfeit='''Forfeit''' |
|||
|recreated='''Recreated''' |
|||
|suspended='''Suspended''' |
|||
|sedevacante='''''[[Sede vacante]]''''' |
|||
|unknown='''Unknown''' |
|||
}}|'''Vacant'''}}{{#if:{{{reason|}}}|<div style="font-size:90%">{{{reason}}}</div>}}{{#if:{{{last|}}}|<div style="font-size:90%">Title last held by</div>'''{{{last}}} '''}}{{#if:{{{next|}}}|<div style="font-size:90%">Title next held by</div>'''{{{next}}} '''}}{{#if:{{{unknlast|}}}|<div style="font-size:90%">Last known title holder:</div>'''{{{unknlast}}} '''}}{{#if:{{{unknnext|}}}|<div style="font-size:90%">Next known title holder:</div>'''{{{unknnext}}} '''}}{{#if:{{{as|}}}|<br><small>'''''as {{{as}}} '''''</small>}}</includeonly><noinclude> |
|||
{{Documentation}} |
|||
<!-- Add categories and interwikis to the /doc subpage, not here. --> |
|||
</noinclude> |
Latest revision as of 12:07, 25 August 2023
This template is used on approximately 6,800 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template creates a single succession box column to be used with succession boxes.
Usage
The format is {{s-vac|parameter=}}
, where parameter= is replaced by one or more of the parameter names shown in the following table.
This template allows for exactly ONE "before" field, ONE "after" field, ONE "subline", and ONE "header".
IMPORTANT: All uses must be either preceded (if initial) or followed (if other rows follow) with the |- characters, lest the table not display properly.
- "Before" fields
- last — Designates the last title-holder; enter the name of the last title-holder after entering this parameter.
- unknlast — Designates the last known title-holder; enter the name of the last known title-holder after entering this parameter.
- Note: This parameter should be used under the header: unknown.
- "After" fields
- next — Designates the next title-holder; enter the name of the next title-holder after entering this parameter.
- unknnext — Designates the next known title-holder; enter the name of the next known title-holder after entering this parameter.
- Note: This parameter should be used under the header: unknown.
- Sublines
- as — Designates a change in title; enter the title of the title-holder after entering this parameter if different than title found in s-ttl.
- Header replacements
- reason — Designates the reason(s) for the vacancy; enter a short explanation after entering this parameter, if necessary.
- abeyance — Replaces "Vacant" with "In abeyance"
- commission — Replaces "Vacant" with "In commission"
- disclaimed — Replaces "Vacant" with "Disclaimed"
- dormant — Replaces "Vacant" with "Dormant"
- extinct — Replaces "Vacant" with "Extinct"
- forfeit — Replaces "Vacant" with "Forfeit"
- recreated — Replaces "Vacant" with "Recreated"
- sedevacante — Replaces "Vacant" with "Sede vacante"
- suspended — Replaces "Vacant" with "Suspended"
- unknown — Replaces "Vacant" with "Unknown"
This template allows for multiple row-spans using the parameter |rows=| between the template name and the first parameter.
Example
From the Charles I of England article:
{{s-start}} {{s-reg}} {{s-bef | before = [[James I of England|James I]]}} {{s-ttl | title = [[King of England]] | years = 27 March 1625 – 30 January 1649}} {{s-vac | next = [[Charles II of England|Charles II]] | reason = [[English Civil War]]}} {{s-end}}
TemplateData
TemplateData for S-vac
A succession-box cell for vacant titles (predecessor or successor).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Code | 1 | Code for reason, if not specified its taken as Vacant. Can be one of - 'abeyance' or 'ab': In abeyance, 'recreated' or 're': Recreated, 'suspended' or 'su': Suspended, 'disclaimed' or 'di': Disclaimed, 'commission' or 'co': In commission, 'dormant' or 'do': Dormant, 'forfeit': Forfeit, 'unkn' or 'unknown': Unknown. | String | optional |
reason | reason | the reason(s) for the vacancy | String | optional |
last | last | Name of the last title-holder. 'last' and 'unknlast' cannot both be specified | String | optional |
unknlast | unknlast | Name of the last known title-holder, use with code as unknown. 'last' and 'unknlast' cannot both be specified | String | optional |
next | next | Name of the next title-holder, 'next' and 'unknnext' cannot both be specified. | String | optional |
unknnext | unknnext | Name of the next known title-holder, use with code as unknown, 'next' and 'unknnext' cannot both be specified. | String | optional |
as | as | Designates a change in title; enter the title of the title-holder after entering this parameter if different than title found in {{s-ttl}}. | String | optional |
rows | rows | Number of table rows to span. | String | optional |
See also
Documentation for creating succession boxes can be found at Template:S-start/doc.