Шаблон:S-ttl/док
{{#ifeq:док |док
|
{{#ifeq:show |show
|
| Ово је документациона подстраница за Шаблон:S-ttl. Садржи информације о коришћењу, категоријама и другом садржају који није део оригиналне странице. |
}}{{#if: |
| {{#ifexist:Шаблон:S-ttl
| [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}
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.
- 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.
- 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
{{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}}}{{#if:{{{district}}}|
Представник за
{{{district}}}|}}{{#if:{{{dynasty}}}|
{{{dynasty}}}|}}{{#if:{{{creation}}}|
{{{creation}}}|}}{{#if:{{{years}}}|
{{{years}}}|}}{{#if:{{{regent1}}}|
са {{{regent1}}}|}} {{#if:{{{years1}}}| ({{{years1}}})|}}{{#if:{{{regent2}}}|
{{{regent2}}}|}} {{#if:{{{years2}}}| ({{{years2}}})|}}{{#if:...|
...|}} {{#if:...| (...)|}}{{#if:|
{{{regent4}}}|}} {{#if:| ({{{years4}}})|}}{{#if:|
{{{regent5}}}|}} {{#if:| ({{{years5}}})|}}{{#if:|
{{{regent6}}}|}} {{#if:| ({{{years6}}})|}}{{#if:|
{{{regent7}}}|}} {{#if:| ({{{years7}}})|}}{{#if:{{{regent8}}}|
{{{regent8}}}|}} {{#if:{{{years8}}}| ({{{years8}}})|}}{{#if:{{{alongside}}}|
Служио/ла поред: {{{alongside}}}|}}{{#if:{{{with}}}|
Са: {{{with}}}{{#if:{{{with2}}}|
{{{with2}}}|}}{{#if:...|
...|}}{{#if:|
{{{with4}}}|}}{{#if:|
{{{with5}}}|}}{{#if:|
{{{with6}}}|}}{{#if:|
{{{with7}}}|}}{{#if:|
{{{with8}}}|}}{{#if:|
{{{with9}}}|}}{{#if:|
{{{with10}}}|}}{{#if:|
{{{with11}}}|}}{{#if:|
{{{with12}}}|}}{{#if:|
{{{with13}}}|}}{{#if:|
{{{with14}}}|}}{{#if:|
{{{with15}}}|}}{{#if:|
{{{with16}}}|}}{{#if:|
{{{with17}}}|}}{{#if:|
{{{with18}}}|}}{{#if:|
{{{with19}}}|}}{{#if:|
{{{with20}}}|}}{{#if:|
{{{with21}}}|}}{{#if:|
{{{with22}}}|}}{{#if:|
{{{with23}}}|}}{{#if:|
{{{with24}}}|}}{{#if:{{{with25}}}|
{{{with25}}}|}}|}}{{#if:{{{lords}}}|
Члан Дома лордова
({{{lords}}})|}}
- Output (as table cell)
| {{{title}}}{{#if:{{{district}}}| Представник за {{{district}}}|}}{{#if:{{{dynasty}}}| |
- Output (in succession box, rows=2)
| Претходник: {{{before}}}{{#if:| {{{before2}}}|}}{{#if:| {{{before3}}}|}}{{#if:| {{{before4}}}|}}{{#if:| {{{before5}}}|}}{{#if:| као }} |
{{{title}}}{{#if:{{{district}}}| Представник за {{{district}}}|}}{{#if:{{{dynasty}}}| |
Нас{{#ifeq:{{safesubst:#switch: | no | n | false | не | ne | н | нетачно | ne | netačno | 0 = no | = | ¬ = | yes | y | true | да | д | тачно | da | d | tačno | 1 = yes | #default = yes
}}|yes|љ|л}}едник: |
| Претходник: {{{before}}}{{#if:| {{{before2}}}|}}{{#if:| {{{before3}}}|}}{{#if:| {{{before4}}}|}}{{#if:| {{{before5}}}|}}{{#if:| као }} |
Нас{{#ifeq:{{safesubst:#switch: | no | n | false | не | ne | н | нетачно | ne | netačno | 0 = no | = | ¬ = | yes | y | true | да | д | тачно | da | d | tačno | 1 = yes | #default = yes
}}|yes|љ|л}}едник: |
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}}
| {{#if: en | Регналне титуле}}{{#switch: en | Регналне титуле}} | arl=Арелатско племство | cm=Камбоџанско племство | cn=Кинеско племство | de=Немачко племство | dk=Данско племство | en=Перство Енглеске | en-bt=Баронетство Енглеске | es=Шпанско племство | fr=Француско племство | gb=Перство Велике Британије | gb-bt=Баронетство Велике Британије | ie-bt=Баронетство Ирске | ie=Перство Ирске | im=Председник државе Острво Мен | it=Италијанско племство | jp=Јапанска краљевска породица | leg=Легендарсне титуле | nv=Наварска краљевска породица | nl=Холандско племство | pt=Португалско племство | sct=Перство Шкотске | sct-bt=Баронетство Нове Шкотске | sr=Српско племство | to=Тонганско племство | uk=Перство Уједињеног Краљевства | uk-bt=Баронетство Уједињеног Краљевства | vn=Вијетнамско племство | other=Титуле племства
}} | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{#switch:creation | award = Нова награда | championship = Нови шампионат | chart = Нови графикон | constituency = Нова конституенција | creation = Ново стварање | diocese = Нови диоциз | district = Нови дистрикт | division = Нова дивизија | institution = Нова институција | first = Прво | loss = Губитак титуле | minister = Нови министарски мандат | office = Нови уред | party = Нова политичка странка | regiment = Нови регимент | seat = Ново место | tv = Нови телевизијски шоу | show = Нови шоу | sports = Нови спортски догађај | parliament = Нови парламент | #default = Нови наслов
}}{{#if:| {{{reason}}} }}
|
Earl of Cornwall{{#if:| Представник за {{{district}}}|}}{{#if:| |
Нас{{#ifeq:{{safesubst:#switch: | no | n | false | не | ne | н | нетачно | ne | netačno | 0 = no | = | ¬ = | yes | y | true | да | д | тачно | da | d | tačno | 1 = yes | #default = yes
}}|yes|љ|л}}едник: |
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}}
| {{#ifexist:Template:S-par/{{ safesubst:#if:1| us-sen}} | us-sen}}}} | {{#if: | {{{raw}}} | {{#if: us-sen | Параметар није препознат | Места у скупштини
}} }} }} | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Претходник: Stephen Adams{{#if:| {{{before2}}}|}}{{#if:| {{{before3}}}|}}{{#if:| {{{before4}}}|}}{{#if:| {{{before5}}}|}}{{#if:| као }} |
Senator from Mississippi (Class 1){{#if:| Представник за {{{district}}}|}}{{#if:| |
Нас{{#ifeq:{{safesubst:#switch: | no | n | false | не | ne | н | нетачно | ne | netačno | 0 = no | = | ¬ = | yes | y | true | да | д | тачно | da | d | tačno | 1 = yes | #default = yes
}}|yes|љ|л}}едник: |
TemplateData
TemplateData за S-ttl
{{#ifeq:док|sandbox||
}} <templatedata> {
"description": "This template creates a single succession box center column to be used with succession boxes for the function of listing titles.",
"params": {
"title": {
"label": "title",
"description": "Text to be displayed for title.",
"type": "string",
"required": true
},
"district": {
"label": "district",
"description": "For use with parliamentary offices. Insert as a wikilink the district represented during the tenure in office.",
"type": "string",
"required": false
},
"dynasty": {
"label": "dynasty",
"description": "Adds a sub-line beneath the title that allows for a 'dynasty' number for certain royal dynastic lines (such as the Pharaohs of Egypt).",
"type": "string",
"required": false
},
"creation": {
"label": "creation",
"description": "Adds a sub-line beneath the title that allows for a 'creation' number for certain noble titles (such as the Dukes of Cornwall).",
"type": "string",
"required": false
},
"years": {
"label": "years",
"description": "Years served in office, typically a range of dates.",
"type": "string",
"required": false
},
"regent1": {
"label": "regent1",
"description": "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.",
"type": "string",
"required": false
},
"years1": {
"label": "years1",
"description": "Time regent1 served. Should only contain years, not days or months.",
"type": "string",
"required": false
},
"regent2": {
"label": "regent2",
"description": "",
"type": "string",
"required": false
},
"years2": {
"label": "years2",
"description": "",
"type": "string",
"required": false
},
"regent3": {
"label": "regent3",
"description": "",
"type": "string",
"required": false
},
"years3": {
"label": "years3",
"description": "",
"type": "string",
"required": false
},
"regent4": {
"label": "regent4",
"description": "",
"type": "string",
"required": false
},
"years4": {
"label": "years4",
"description": "",
"type": "string",
"required": false
},
"regent5": {
"label": "regent5",
"description": "",
"type": "string",
"required": false
},
"years5": {
"label": "years5",
"description": "",
"type": "string",
"required": false
},
"regent6": {
"label": "regent6",
"description": "",
"type": "string",
"required": false
},
"years6": {
"label": "years6",
"description": "",
"type": "string",
"required": false
},
"regent7": {
"label": "regent7",
"description": "",
"type": "string",
"required": false
},
"years7": {
"label": "years7",
"description": "",
"type": "string",
"required": false
},
"regent8": {
"label": "regent8",
"description": "",
"type": "string",
"required": false
},
"years8": {
"label": "years8",
"description": "",
"type": "string",
"required": false
},
"alongside": {
"label": "alongside",
"description": "This parameter is reserved for political positions where two people share power, such as US senators.",
"type": "string",
"required": false
},
"with": {
"label": "with",
"description": "For use when an office is shared with one or more others.",
"type": "string",
"required": false
},
"with2": {
"label": "with2",
"description": "",
"type": "string",
"required": false
},
"with3": {
"label": "with3",
"description": "",
"type": "string",
"required": false
},
"with4": {
"label": "with4",
"description": "",
"type": "string",
"required": false
},
"with5": {
"label": "with5",
"description": "",
"type": "string",
"required": false
},
"with6": {
"label": "with6",
"description": "",
"type": "string",
"required": false
},
"with7": {
"label": "with7",
"description": "",
"type": "string",
"required": false
},
"with8": {
"label": "with8",
"description": "",
"type": "string",
"required": false
},
"with9": {
"label": "with9",
"description": "",
"type": "string",
"required": false
},
"with10": {
"label": "with10",
"description": "",
"type": "string",
"required": false
},
"with11": {
"label": "with11",
"description": "",
"type": "string",
"required": false
},
"with12": {
"label": "with12",
"description": "",
"type": "string",
"required": false
},
"with13": {
"label": "with13",
"description": "",
"type": "string",
"required": false
},
"with14": {
"label": "with14",
"description": "",
"type": "string",
"required": false
},
"with15": {
"label": "with15",
"description": "",
"type": "string",
"required": false
},
"with16": {
"label": "with16",
"description": "",
"type": "string",
"required": false
},
"with17": {
"label": "with17",
"description": "",
"type": "string",
"required": false
},
"with18": {
"label": "with18",
"description": "",
"type": "string",
"required": false
},
"with19": {
"label": "with19",
"description": "",
"type": "string",
"required": false
},
"with20": {
"label": "with20",
"description": "",
"type": "string",
"required": false
},
"with21": {
"label": "with21",
"description": "",
"type": "string",
"required": false
},
"with22": {
"label": "with22",
"description": "",
"type": "string",
"required": false
},
"with23": {
"label": "with23",
"description": "",
"type": "string",
"required": false
},
"with24": {
"label": "with24",
"description": "",
"type": "string",
"required": false
},
"with25": {
"label": "with25",
"description": "",
"type": "string",
"required": false
},
"lords": {
"label": "lords",
"description": "Designates that the person was a member of the House of Lords. The dates they served in the house should be specified.",
"type": "string",
"required": false
},
"rows": {
"label": "rows",
"description": "Number of table rows this entry should span.",
"type": "string",
"required": false
}
}
} </templatedata>
See also
Documentation for creating succession boxes can be found at Template:S-start/doc.