Template:S-bef/doc
This is a documentation subpage for Template:S-bef. It may contain usage information, categories and other content that is not part of the original template page. |
This template creates a single first-column succession box column to be used with succession boxes.
Contents
Usage
The format is {{s-bef|before=text|parameters}}
, where text is replaced by the text to be displayed and parameters is replaced by one or more of the optional parameter names shown below.
- Parameter names
- before (required) — Predecessor
- before2 (optional) — Second predecessor
- before3 (optional) — Third predecessor
- before4 (optional) — Fourth successor
- before5 (optional) — Fifth predecessor
- as (optional) — Adds a title line beneath a predecessor's name to designate a change in title
- rows (optional) — Number of table rows to span
- Usage
{{S-bef | before= | before2= | before3= | before4= | before5= | as= | rows= }}
- Output (raw)
|- style="text-align:center;"
|style="width:30%;" rowspan="{{{rows}}}"|Preceded by
{{{before}}}
{{{before2}}}
{{{before3}}}
{{{before4}}}
{{{before5}}}
as {{{as}}}
- Output (as table cell)
Preceded by {{{before}}} {{{before2}}} {{{before3}}} {{{before4}}} {{{before5}}} as {{{as}}} |
- Output (in succession box, rows=2)
Preceded by {{{before}}} {{{before2}}} {{{before3}}} {{{before4}}} {{{before5}}} as {{{as}}} |
{{{title}}} | Succeeded by {{{after}}} |
{{{title}}} | Succeeded by {{{after}}} |
Example
From the Louis XIV of France article:
{{s-start}} {{s-reg}} {{s-bef | before = [[Louis XIII of France|Louis XIII]]}} {{s-ttl | title = [[List of French monarchs|King of France]] and [[List of Navarrese monarchs|Navarre]] | years = 14 May 1643 – 1 September 1715}} {{s-aft | after = [[Louis XV of France|Louis XV]]}} {{s-end}}
Regnal titles | ||
---|---|---|
Preceded by Louis XIII |
King of France and Navarre 14 May 1643 – 1 September 1715 |
Succeeded by Louis XV |
TemplateData
TemplateData for S-bef
<templatedata> { "description": "Single first-column succession box column for predecessors.", "params": { "before": { "label": "before", "description": "Predecessor", "type": "string", "required": true }, "before2": { "label": "before2", "description": "Second predecessor", "type": "string", "required": false }, "before3": { "label": "before3", "description": "Third predecessor", "type": "string", "required": false }, "before4": { "label": "before4", "description": "Forth predecessor", "type": "string", "required": false }, "before5": { "label": "before5", "description": "Fifth predecessor", "type": "string", "required": false }, "as": { "label": "as", "description": "Adds a title line beneath a predecessor's name to designate a change in title.", "type": "string", "required": false }, "rows": { "label": "rows", "description": "Number of table rows to span", "type": "string", "required": false } }, "format": "block" } </templatedata>
See also
Documentation for creating succession boxes can be found at Template:s-start/doc.