الگو:S-bef
This template creates a single first-column succession box column to be used with succession boxes.
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}}}"|پیشین:
{{{before}}}
{{{before2}}}
{{{before3}}}
{{{before4}}}
{{{before5}}}
به عنوان {{{as}}}
- Output (as table cell)
پیشین: {{{before}}} {{{before2}}} {{{before3}}} {{{before4}}} {{{before5}}} به عنوان {{{as}}} |
- Output (in succession box, rows=2)
پیشین: {{{before}}} {{{before2}}} {{{before3}}} {{{before4}}} {{{before5}}} به عنوان {{{as}}} |
پسین: | |
پسین: |
Example
ویرایشFrom the لوئی چهاردهم article:
{{جعبه آغازی}} {{S-reg}} {{S-bef| before = [[لوئی سیزدهم]]}} {{S-ttl| title = [[فهرست شاهان فرانسه]] and [[List of Navarrese monarchs|Navarre]] | years = 14 May 1643 – 1 September 1715}} {{S-aft| after = [[لوئی پانزدهم]]}} {{S-end}}
عنوان سلطنتی | ||
---|---|---|
پیشین: لوئی سیزدهم |
فهرست شاهان فرانسه and Navarre 14 May 1643 – 1 September 1715 |
پسین: لوئی پانزدهم |
TemplateData
ویرایشالگوداده S-bef
Single first-column succession box column for predecessors.
پارامتر | توضیحات | نوع | وضعیت | |
---|---|---|---|---|
before | before | Predecessor | رشته | ضروری |
before2 | before2 | Second predecessor | رشته | اختیاری |
before3 | before3 | Third predecessor | رشته | اختیاری |
before4 | before4 | Forth predecessor | رشته | اختیاری |
before5 | before5 | Fifth predecessor | رشته | اختیاری |
as | as | Adds a title line beneath a predecessor's name to designate a change in title. | رشته | اختیاری |
rows | rows | Number of table rows to span | رشته | اختیاری |
See also
ویرایشDocumentation for creating succession boxes can be found at Template:s-start/doc.