Шаблон:S-ttl

Из Википедије, слободне енциклопедије
Иди на навигацију Иди на претрагу
Документација шаблона[погледај] [уреди] [историја] [освежи]

This template creates a single succession box center column to be used with succession boxes for the function of listing titles.

Usage[уреди]

The format is {{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.

Parameter names
  • title (required) — Text to be displayed for title.
  • 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.
  • regent1regent8 AND years1years8 (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.
  • withwith25 (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
{{S-ttl | title= | district= | dynasty= | creation= | years= | regent1= | years1= | regent2= | years2= | regent3= | years3= | regent4= | years4= | regent5= | years5= | regent6= | years6= | regent7= | years7= | regent8= | years8= | alongside= | 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)

| style="width: 40%; text-align: center;" rowspan="{{{rows}}}"|{{{title}}}
Представник за {{{district}}}
{{{dynasty}}}
{{{creation}}}
{{{years}}}
са {{{regent1}}} ({{{years1}}})
{{{regent2}}} ({{{years2}}})
... (...)
{{{regent8}}} ({{{years8}}})
Служио/ла поред:
{{{alongside}}}
Са:
{{{with}}}
{{{with2}}}
...
{{{with25}}}

Члан Дома лордова

({{{lords}}})

Output (as table cell)
{{{title}}}
Представник за

{{{district}}}
{{{dynasty}}}
{{{creation}}}
{{{years}}}
са {{{regent1}}} ({{{years1}}})
{{{regent2}}} ({{{years2}}})
... (...)
{{{regent8}}} ({{{years8}}})
Служио/ла поред:
{{{alongside}}}
Са:
{{{with}}}
{{{with2}}}
...
{{{with25}}}

Члан Дома лордова

({{{lords}}})

Output (in succession box, rows=2)
Претходник:
{{{before}}}
{{{title}}}
Представник за

{{{district}}}
{{{dynasty}}}
{{{creation}}}
{{{years}}}
са {{{regent1}}} ({{{years1}}})
{{{regent2}}} ({{{years2}}})
... (...)
{{{regent8}}} ({{{years8}}})
Служио/ла поред:
{{{alongside}}}
Са:
{{{with}}}
{{{with2}}}
...
{{{with25}}}

Члан Дома лордова

({{{lords}}})

Наследник:
{{{after}}}
Претходник:
{{{before}}}
Наследник:
{{{after}}}

Examples[уреди]

From the Richard, 1st Earl of Cornwall article:

{{s-start}}
{{s-reg | en}}
{{s-new | creation}}
{{s-ttl | title=[[Earl of Cornwall]]
| creation=7th creation
| years=4 March 1857 – 21 January 1861}}
{{s-aft | after=[[Edmund, 2nd Earl of Cornwall|Edmund]]}}
{{s-end}}
Перство Енглеске
Ново стварање Earl of Cornwall
7th creation
4 March 1857 – 21 January 1861
Наследник:
Edmund

From the Jefferson Davis article:

{{s-start}}
{{s-par | us-sen}}
{{s-bef | before=[[Stephen Adams (politician)|Stephen Adams]]}}
{{s-ttl | title=[[List of United States Senators from Mississippi|Senator from Mississippi (Class 1)]]
| years=March 4, 1857 – January 21, 1861
| alongside=[[Albert G. Brown]]}}
{{s-aft|after=[[Adalbert Ames]]}}
{{s-end}}
Сенат САД
Претходник:
Stephen Adams
Senator from Mississippi (Class 1)
March 4, 1857 – January 21, 1861
Служио/ла поред: Albert G. Brown
Наследник:
Adalbert Ames

TemplateData[уреди]

Ово је TemplateData документација за овај шаблон, коришћена у Визуелном уређивачу и у другим алаткама; погледајте месечни извештај о грешкама за овај шаблон.

TemplateData за S-ttl

This template creates a single succession box center column to be used with succession boxes for the function of listing titles.

Параметри шаблона

ПараметарОписТипСтатус
titletitle

Text to be displayed for title.

Нискаобавезно
districtdistrict

For use with parliamentary offices. Insert as a wikilink the district represented during the tenure in office.

Нискаопционално
dynastydynasty

Adds a sub-line beneath the title that allows for a 'dynasty' number for certain royal dynastic lines (such as the Pharaohs of Egypt).

Нискаопционално
creationcreation

Adds a sub-line beneath the title that allows for a 'creation' number for certain noble titles (such as the Dukes of Cornwall).

Нискаопционално
yearsyears

Years served in office, typically a range of dates.

Нискаопционално
regent1regent1

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.

Нискаопционално
years1years1

Time regent1 served. Should only contain years, not days or months.

Нискаопционално
regent2regent2

Нискаопционално
years2years2

Нискаопционално
regent3regent3

Нискаопционално
years3years3

Нискаопционално
regent4regent4

Нискаопционално
years4years4

Нискаопционално
regent5regent5

Нискаопционално
years5years5

Нискаопционално
regent6regent6

Нискаопционално
years6years6

Нискаопционално
regent7regent7

Нискаопционално
years7years7

Нискаопционално
regent8regent8

Нискаопционално
years8years8

Нискаопционално
alongsidealongside

This parameter is reserved for political positions where two people share power, such as US senators.

Нискаопционално
withwith

For use when an office is shared with one or more others.

Нискаопционално
with2with2

Нискаопционално
with3with3

Нискаопционално
with4with4

Нискаопционално
with5with5

Нискаопционално
with6with6

Нискаопционално
with7with7

Нискаопционално
with8with8

Нискаопционално
with9with9

Нискаопционално
with10with10

Нискаопционално
with11with11

Нискаопционално
with12with12

Нискаопционално
with13with13

Нискаопционално
with14with14

Нискаопционално
with15with15

Нискаопционално
with16with16

Нискаопционално
with17with17

Нискаопционално
with18with18

Нискаопционално
with19with19

Нискаопционално
with20with20

Нискаопционално
with21with21

Нискаопционално
with22with22

Нискаопционално
with23with23

Нискаопционално
with24with24

Нискаопционално
with25with25

Нискаопционално
lordslords

Designates that the person was a member of the House of Lords. The dates they served in the house should be specified.

Нискаопционално
rowsrows

Number of table rows this entry should span.

Нискаопционално

See also[уреди]

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