الگو: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[ویرایش]

این، توضیحاتِ الگوداده است که توسط TemplateWizard، ویرایشگر دیداری و دیگر ابزارها استفاده می‌شود. گزارش خطای ماهیانه برای این الگو را ببینید.

الگوداده S-bef

Single first-column succession box column for predecessors.

پارامترهای الگو[ویرایش داده‌های الگو]

استفاده از قالب‌بندی قطعه‌ای برای پارامترهای این الگو ارجح است.

پارامترتوضیحاتنوعوضعیت
beforebefore

Predecessor

رشتهضروری
before2before2

Second predecessor

رشتهاختیاری
before3before3

Third predecessor

رشتهاختیاری
before4before4

Forth predecessor

رشتهاختیاری
before5before5

Fifth predecessor

رشتهاختیاری
asas

Adds a title line beneath a predecessor's name to designate a change in title.

رشتهاختیاری
rowsrows

Number of table rows to span

رشتهاختیاری

See also[ویرایش]

Documentation for creating succession boxes can be found at Template:s-start/doc.