الگو:جعبه توالی
طرز استفاده
[ویرایش]طریقه کلی استفاده از این الگو به صورت زیر است:
{{جعبه آغازی}} {{جعبه توالی | قبل= | عنوان= | سالها= | بعد= }} {{جعبه توالی | قبل= | عنوان= | سالها= | بعد= }} ... {{جعبه پایانی}}
بین الگوهای آغازی و پایانی میتوان چندین الگوی توالی قرار داد و در این صورت نتیجه به شکل یک جدول درمیآید.
به طور کلی، مکان استفاده از این الگو در آخرین قسمت مقاله و قبل از الگوهای معمولی دیگر است. (یعنی بعد از پیوند به بیرون) اما اگر این جعبه به بخشی از مقاله مربوط باشد باید آن را در انتهای آن بخش آورد (برای مثال در قسمت جایزههای یک بازیگر).
نمونه
[ویرایش]با وارد کردن کد زیر:
{{جعبه آغازی}} {{جعبه توالی | قبل= [[اکبر هاشمی رفسنجانی]]| عنوان= [[رئیسجمهور ایران]]| سالها= [[۱۳۷۶ (خورشیدی)|۱۳۷۶]] - [[۱۳۸۴ (خورشیدی)|۱۳۸۴]]| بعد= [[محمود احمدینژاد]] }} {{جعبه پایانی}}
جعبهٔ زیر نمایش مییابد:
This template creates a standard line for succession boxes. Deprecated in favour of the الگو:جعبه آغازی, the succession box template might be used only for the simplest succession lines. These are single succession lines showing nothing more than a succession of three people holding exactly the same title. For succession lines sharing cells with other lines, for new or expired titles, for incumbencies or vacancies, for titular rulers or pretenders, for titles which change their name before or after the subject, and for lines requiring other additional information, the specialised templates of the {{s-start}} series should be used instead of this one. For purposes of consistency and simplicity, it is preferable to use {{s-start}} series templates in all cases.Syntax
[ویرایش]Basic usage:
{{جعبه آغازی}} {{جعبه توالی | title = | years = | with = | before = | after = }} {{S-end}}
Full usage:
{{جعبه آغازی}} {{جعبه توالی | title = | years = | with = | with2 = | with3 = | with4 = | with5 = | with6 = | with7 = | with8 = | with9 = | with10 = | before = | before2 = | before3 = | before4 = | before5 = | after = | after2 = | after3 = | after4 = | after5 = }} {{S-end}}
Usage
[ویرایش]A succession box may start with a single {{S-start}}
and end with one {{S-end}}
. Alternatively, the old versions may be used, namely {{Start box}}
as the initial template and {{End box}}
as the finishing one; the two formats are compatible with each other.
Within each succession box, one or more lines may be created. One {{Succession box}}
is used for each line, and parameters are used to insert data into the template: "before" for the predecessor of the subject, "title" for the subject's title, "years" for the time period during which they held the title, and "after" for the name of their successor.
Parameters
[ویرایش]- Years
Mandatory; a value is required. The value may be years or full dates. A range is not required, such as if a term of office was one year.
Usage with multiple office-holders
[ویرایش]Where a post was held by more than one person at a time, extra parameters should be used to include them.
- Predecessors
- For multiple predecessors use "before", "before2", "before3", etc. (max 5)
- Successors
- For multiple successors use "after", "after2", "after3", etc. (max 5)
- Concurrent office-holders
- For concurrent office-holders use "with", "with2", "with3", etc. (max 25)
Examples
[ویرایش]Example with single office-holder
[ویرایش]From the article وینستون چرچیل:
{{جعبه آغازی}} {{جعبه توالی | before = [[کلمنت اتلی]] | title = [[نخستوزیر بریتانیا]] | years = ۲۶ اکتبر ۱۹۵۱ – ۷ آوریل ۱۹۵۵ | after = [[آنتونی ایدن]] }} {{جعبه توالی | before = [[Emanuel Shinwell]] | title = [[Minister of Defence (UK)|Minister of Defence]] | years = ۱۹۵۱–۱۹۵۲ | after = [[هارولد الکساندر]] }} {{S-end}}
پیشین: اکبر هاشمی رفسنجانی |
رئیسجمهور ایران ۱۳۷۶ - ۱۳۸۴ |
پسین: محمود احمدینژاد |
پیشین: کلمنت اتلی |
نخستوزیر بریتانیا ۲۶ اکتبر ۱۹۵۱ – ۷ آوریل ۱۹۵۵ |
پسین: آنتونی ایدن |
پیشین: Emanuel Shinwell |
Minister of Defence ۱۹۵۱–۱۹۵۲ |
پسین: هارولد الکساندر |
Example with multiple office-holders
[ویرایش]From the article Richard Temple-Grenville, 2nd Duke of Buckingham and Chandos:
{{جعبه آغازی}} {{S-par|gb}} {{جعبه توالی | title = [[نماینده مجلس]] for [[Buckinghamshire (UK Parliament constituency)|Buckinghamshire]] | with = [[William Selby Lowndes]] 1818–1820 | with2 = [[Robert Carrington, 2nd Baron Carrington|Robert Smith]] 1820–1831 | with3 = [[John Smith (Wendover MP)|John Smith]] 1831–1835 | with4 = [[Sir George Dashwood, 5th Baronet|Sir George Dashwood, Bt]] 1832–1835 | with5 = [[Sir William Young, 4th Baronet|Sir William Young, Bt]] 1835–1839 | with6 = [[George Simon Harcourt]] 1835–1839 | years = 1818–1839 | before = [[William Selby Lowndes]] | before2 = [[Thomas Grenville]] | after = [[Sir William Young, 4th Baronet|Sir William Young, Bt]] | after2 = [[George Simon Harcourt]] | after3 = [[Caledon Du Pré]] }} {{S-end}}
Parliament of Great Britain | ||
---|---|---|
پیشین: William Selby Lowndes Thomas Grenville |
نماینده مجلس for Buckinghamshire 1818–1839 با: William Selby Lowndes 1818–1820 Robert Smith 1820–1831 John Smith 1831–1835 Sir George Dashwood, Bt 1832–1835 Sir William Young, Bt 1835–1839 George Simon Harcourt 1835–1839 |
پسین: Sir William Young, Bt George Simon Harcourt Caledon Du Pré |
TemplateData
[ویرایش]الگوداده جعبه توالی
This template creates a standard line for succession boxes. It is normally preceded by {{جعبه آغازی}} and followed by {{S-end}}
پارامتر | توضیحات | نوع | وضعیت | |
---|---|---|---|---|
Title | title | Title of the office
| رشته | پیشنهادشده |
Years | years | The years the office held, value may be years or full dates, a range is not require if the post was only held for a year
| رشته | پیشنهادشده |
Before | before | First predecessor | رشته | پیشنهادشده |
before2 | before2 | Second predecessor. | رشته | اختیاری |
before3 | before3 | Third predecessor. | رشته | اختیاری |
before4 | before4 | Forth predecessor. | رشته | اختیاری |
before5 | before5 | Fifth predecessor. | رشته | اختیاری |
after | after | First successors. | رشته | پیشنهادشده |
after2 | after2 | Second successors. | رشته | اختیاری |
after3 | after3 | Third successors. | رشته | اختیاری |
after4 | after4 | Forth successors. | رشته | اختیاری |
after5 | after5 | Fifth successors. | رشته | اختیاری |
alongside | alongside | Used when they 'Served alongside' another person. | رشته | اختیاری |
with | with | Concurrent office-holders, up to 25 people | رشته | اختیاری |
with2 | with2 | بدون توصیف | رشته | اختیاری |
with3 | with3 | بدون توصیف | رشته | اختیاری |
with4 | with4 | بدون توصیف | رشته | اختیاری |
with5 | with5 | بدون توصیف | رشته | اختیاری |
with6 | with6 | بدون توصیف | رشته | اختیاری |
with7 | with7 | بدون توصیف | رشته | اختیاری |
with8 | with8 | بدون توصیف | رشته | اختیاری |
with9 | with9 | بدون توصیف | رشته | اختیاری |
with10 | with10 | بدون توصیف | رشته | اختیاری |
with11 | with11 | بدون توصیف | رشته | اختیاری |
with12 | with12 | بدون توصیف | رشته | اختیاری |
with13 | with13 | بدون توصیف | رشته | اختیاری |
with14 | with14 | بدون توصیف | رشته | اختیاری |
with15 | with15 | بدون توصیف | رشته | اختیاری |
with16 | with16 | بدون توصیف | رشته | اختیاری |
with17 | with17 | بدون توصیف | رشته | اختیاری |
with18 | with18 | بدون توصیف | رشته | اختیاری |
with19 | with19 | بدون توصیف | رشته | اختیاری |
with20 | with20 | بدون توصیف | رشته | اختیاری |
with21 | with21 | بدون توصیف | رشته | اختیاری |
with22 | with22 | بدون توصیف | رشته | اختیاری |
with23 | with23 | بدون توصیف | رشته | اختیاری |
with24 | with24 | بدون توصیف | رشته | اختیاری |
with25 | with25 | بدون توصیف | رشته | اختیاری |
Rows | rows | Number of rows to cover | شماره | اختیاری |
See also
[ویرایش]- Documentation for creating more complex succession boxes can be found at الگو:جعبه آغازی.
- A quick overview of the various templates and parameters of the s-start series can be found at the Cheatsheet.
- {{Sequence}}