利用者:Omotecho/sandbox/Template:S-ttl/doc
Copied to translate from 英語版en:Template:S-ttl/docの直近の 1087504940 番すなわち2022-05-12T21:42 (UTC) 時点の Jonesey95 による版を転記。テンプレートに「tl:」をつけて無効化。赤リンク回避のため内部リンクに「:en:」を付与。 {{tl:Documentation subpage}} This template creates a single succession box center column to be used with succession boxes for the function of listing titles.
{{tl:High-risk|200,000+}}
Usage
[編集]The format is {{tl:s-ttl|title=enter title here|years=enter years title was held here|parameter=}}
, where parameter= can be any of the optional parameters listed below.
Usage note: Any parameter displayed in italics or bold in the example below must not contain line breaks in the wikitext; for values with multiple lines, use {{tl:tag|br|s}} instead of a manual line break.
Parameter names
- title (required) — Text to be displayed for title.
- order (optional) — Indicates the nth person to hold a given office. For use with offices that have a recognized sequence. E.g. 28th
- district (optional) — For use with parliamentary offices. Insert as a wikilink the district represented during the tenure in office.
- dynasty (optional) — Adds a sub-line beneath the title that allows for a "dynasty" number for certain royal dynastic lines (such as the Pharaohs of Egypt).
- creation (optional) — Adds a sub-line beneath the title that allows for a "creation" number for certain noble titles (such as the Dukes of Cornwall).
- years (optional) — Years served in office, typically a range of dates.
- regent1–regent8 AND years1–years8 (optional) — These parameters can be used when an office is held in tandem with another person. Examples of this include co-rulers of a country or region and regencies. It does not include consorts or sub-positions such as vice presidencies. The "years" parameter should only contain years, not days or months, but all other guidelines rules apply.
- alongside (optional) — This parameter is reserved for political positions where two people share power, such as US senators.
- under (optional) — This parameter is reserved for political positions that are subordinate to others, such as Lieutenant Governors serving under Governors.
- with–with25 (optional) — Alternative parameter for use when an office is shared with one or more others
- lords (optional) — Designates that the person was a member of the House of Lords. The parameter is asking for the dates they served in the house.
- rows (optional) — Number of table rows this entry should span.
Usage
{{tl:S-ttl | title= | order= | district= | dynasty= | creation= | years= | regent1= | years1= | regent2= | years2= | regent3= | years3= | regent4= | years4= | regent5= | years5= | regent6= | years6= | regent7= | years7= | regent8= | years8= | alongside= | under= | with= | with2= | with3= | with4= | with5= | with6= | with7= | with8= | with9= | with10= | with11= | with12= | with13= | with14= | with15= | with16= | with17= | with18= | with19= | with20= | with21= | with22= | with23= | with24= | with25= | lords= | rows= }}
Output (raw)
{{tl:Parameter names example | title | order | district | dynasty | creation | years | regent1 | years1 | regent2 | years2 | regent3=... | years3=... | regent8 | years8 | alongside | under | with | with2 | with3=... | with25 | lords | rows }}
Output (as table cell)
{{tl:S-start}} {{tl:Parameter names example | title | order | district | dynasty | creation | years | regent1 | years1 | regent2 | years2 | regent3=... | years3=... | regent8 | years8 | alongside | under | with | with2 | with3=... | with25 | lords }} {{tl:S-end}}
Output (in succession box, rows=2)
{{tl:S-start}} {{tl:S-bef}} {{tl:Parameter names example | rows=2 | title | order | district | dynasty | creation | years | regent1 | years1 | regent2 | years2 | regent3=... | years3=... | regent8 | years8 | alongside | under | with | with2 | with3=... | with25 | lords }} {{tl:S-aft}} {{tl:S-bef}} {{tl:S-aft}} {{tl:S-end}}
Examples
[編集]From the en:Richard, 1st Earl of Cornwall article:
{{tl:s-start}} {{tl:s-reg | en}} {{tl:s-new | creation}} {{tl:s-ttl | title=[[:en:Earl of Cornwall]] | creation=7th creation | years=4 March 1857 – 21 January 1861}} {{tl:s-aft | after=[[:en:Edmund, 2nd Earl of Cornwall|Edmund]]}} {{tl:s-end}}
{{tl:s-start}} {{tl:s-reg | en}} {{tl:s-new | creation}} {{tl:s-ttl | title=en:Earl of Cornwall | creation=7th creation | years=4 March 1857 – 21 January 1861}} {{tl:s-aft | after=Edmund}} {{tl:s-end}}
From the en:Jefferson Davis article:
{{tl:s-start}} {{tl:s-par | us-sen}} {{tl:s-bef | before=[[:en:Stephen Adams (politician)|Stephen Adams]]}} {{tl:s-ttl | title=[[:en:List of United States senators from Mississippi|Senator from Mississippi (Class 1)]] | years=March 4, 1857 – January 21, 1861 | alongside=[[:en:Albert G. Brown]]}} {{tl:s-aft|after=[[:en:Adalbert Ames]]}} {{tl:s-end}}
{{tl:s-start}} {{tl:s-par | us-sen}} {{tl:s-bef | before=Stephen Adams}} {{tl:s-ttl | title=Senator from Mississippi (Class 1) | years=March 4, 1857 – January 21, 1861 | alongside=en:Albert G. Brown}} {{tl:s-aft|after=en:Adalbert Ames}} {{tl:s-end}}
From the en:Woodrow Wilson article:
{{tl:s-start}} {{tl:s-off}} {{tl:s-bef|before=[[:en:William Howard Taft]]}} {{tl:s-ttl|title=[[:en:President of the United States]]|order=28th|years=1913–1921}} {{tl:s-aft|After=[[:en:Warren G. Harding]]}} {{tl:s-end}}
{{tl:s-start}} {{tl:s-off}} {{tl:s-bef|before=en:William Howard Taft}} {{tl:s-ttl|title=en:President of the United States|order=28th|years=1913–1921}} {{tl:s-aft|after=en:Warren G. Harding}} {{tl:s-end}}
TemplateData
[編集]{{tl:TemplateData header}}
This template creates a single succession box center column to be used with succession boxes for the function of listing titles.
パラメーター | 説明 | 型 | 状態 | |
---|---|---|---|---|
title | title | Text to be displayed for title. | 文字列 | 必須 |
order | order | Indicates the nth person to hold a given office. Should always be used in numerical, not written form. For use with offices that have a recognized sequence.
| 文字列 | 省略可能 |
district | district | For use with parliamentary offices. Insert as a wikilink the district represented during the tenure in office. | 文字列 | 省略可能 |
dynasty | dynasty | Adds a sub-line beneath the title that allows for a 'dynasty' number for certain royal dynastic lines (such as the Pharaohs of Egypt). | 文字列 | 省略可能 |
creation | creation | Adds a sub-line beneath the title that allows for a 'creation' number for certain noble titles (such as the Dukes of Cornwall). | 文字列 | 省略可能 |
years | years | Years served in office, typically a range of dates. | 文字列 | 推奨 |
regent1 | regent1 | Used when an office is held in tandem with another person. Examples of this include co-rulers of a country or region and regencies. It does not include consorts or sub-positions such as vice presidencies. | 文字列 | 省略可能 |
years1 | years1 | Time regent1 served. Should only contain years, not days or months. | 文字列 | 省略可能 |
regent2 | regent2 | 説明なし | 文字列 | 省略可能 |
years2 | years2 | 説明なし | 文字列 | 省略可能 |
regent3 | regent3 | 説明なし | 文字列 | 省略可能 |
years3 | years3 | 説明なし | 文字列 | 省略可能 |
regent4 | regent4 | 説明なし | 文字列 | 省略可能 |
years4 | years4 | 説明なし | 文字列 | 省略可能 |
regent5 | regent5 | 説明なし | 文字列 | 省略可能 |
years5 | years5 | 説明なし | 文字列 | 省略可能 |
regent6 | regent6 | 説明なし | 文字列 | 省略可能 |
years6 | years6 | 説明なし | 文字列 | 省略可能 |
regent7 | regent7 | 説明なし | 文字列 | 省略可能 |
years7 | years7 | 説明なし | 文字列 | 省略可能 |
regent8 | regent8 | 説明なし | 文字列 | 省略可能 |
years8 | years8 | 説明なし | 文字列 | 省略可能 |
alongside | alongside | This parameter is reserved for political positions where two people share power, such as US senators. | 文字列 | 省略可能 |
under | under | This parameter is reserved for political positions that are subordinate to others. | 文字列 | 省略可能 |
with | with | For use when an office is shared with one or more others. | 文字列 | 省略可能 |
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 | 説明なし | 文字列 | 省略可能 |
lords | lords | Designates that the person was a member of the House of Lords. The dates they served in the house should be specified. | 文字列 | 省略可能 |
rows | rows | Number of table rows this entry should span. | 文字列 | 省略可能 |
See also
[編集]Documentation for creating succession boxes can be found at en:Template:S-start/doc. <includeonly>{{tl:Sandbox other|| [[:en:Category:Succession templates]] }}</includeonly>