Пређи на садржај

Шаблон:S-inc/док

Iz Vojne Enciklopedije

{{#ifeq:док |док

    | 

{{#ifeq:show |show

|

        }}{{#if: |
         |   {{#ifexist:Шаблон:S-inc
                  | [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
                  | 
                 }}
        }}
    | 
   }}

This template creates a single succession box column for incumbents to be used with succession boxes. It is only meant to be used in the right column of succession boxes.

Usage

The format is {{s-inc|parameter=}}, where parameter= is replaced by one or more of the parameter names shown in the following table. The code without any parameters defaults to Incumbent.

current — Replaces Incumbent with Current holder
recent — Replaces Incumbent with Most recent
heir — Designates the heir of the current incumbent, thus allowing the succession chain to continue as a list of heirs
heir-type — Replaces "Heir" with the inserted text, preferably one of "Heir apparent", "Heir presumptive", "Coadjutor bishop"

Note: Template:s-ttl does not allow for a template to have an incumbent, so editors must add "– present" after the first date. If using the "recent" parameter, this is not necessary.

This template allows for multiple row-spans using the parameter |rows=| between the template name and the first parameter.

Example

From the Elizabeth II of the United Kingdom article:

{{s-start}}
{{s-reg}}
{{s-bef | before = [[George VI of the United Kingdom|George VI]]}}
{{s-ttl | title = [[Queen of the United Kingdom]] | years = 6 February 1952 – present}}
{{s-inc | heir = [[Charles, Prince of Wales]] | heir-type = Heir apparent}}
{{s-end}}
{{#if:{{{1}}} Регналне титуле}}{{#switch:{{{1}}} Регналне титуле}} 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=Титуле племства

}}

Претходник:
George VI{{#if:|
{{{before2}}}|}}{{#if:|
{{{before3}}}|}}{{#if:|
{{{before4}}}|}}{{#if:|
{{{before5}}}|}}
{{#if:|
као }}
Queen of the United Kingdom{{#if:|
Представник за

{{{district}}}|}}{{#if:|
{{{dynasty}}}|}}{{#if:|
{{{creation}}}|}}{{#if:6 February 1952 – present|
6 February 1952 – present|}}{{#if:|
са {{{regent1}}}|}} {{#if:| ({{{years1}}})|}}{{#if:|
{{{regent2}}}|}} {{#if:| ({{{years2}}})|}}{{#if:|
{{{regent3}}}|}} {{#if:| ({{{years3}}})|}}{{#if:|
{{{regent4}}}|}} {{#if:| ({{{years4}}})|}}{{#if:|
{{{regent5}}}|}} {{#if:| ({{{years5}}})|}}{{#if:|
{{{regent6}}}|}} {{#if:| ({{{years6}}})|}}{{#if:|
{{{regent7}}}|}} {{#if:| ({{{years7}}})|}}{{#if:|
{{{regent8}}}|}} {{#if:| ({{{years8}}})|}}{{#if:|
Служио/ла поред:
{{{alongside}}}|}}{{#if:|
Са:
{{{with}}}{{#if:|
{{{with2}}}|}}{{#if:|
{{{with3}}}|}}{{#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}}}|}}
|}}{{#if:|
Члан Дома лордова

({{{lords}}})
|}}

{{#if:|{{#switch:{{{1}}} current=Тренутно recent=Најскорије Актуелно}}

}}|Тренутно}}{{#if:Charles, Prince of Wales|
{{#if:Heir apparent|Heir apparent|Наследник}}:
Charles, Prince of Wales
}}

TemplateData

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

TemplateData за S-inc

{{#ifeq:док|sandbox||

}} <templatedata> {

   "description": "Used in third column of a succession box to indicate the current holder is incumbent.",
   "params": {
       "1": {
           "label": "Type",
           "description": "Can be 'current' which gives 'Current holder' or 'recent' which gives 'Most recent'. If unset gives the default 'Incumbent'.",
           "type": "string",
           "required": false
       },
       "heir": {
           "label": "heir",
           "description": "Name of heir of the current incumbent, thus allowing the succession chain to continue as a list of heirs",
           "type": "string",
           "required": false
       },
       "heir-type": {
           "label": "heir-type",
           "description": "Type of heir, preferably one of 'Heir apparent', 'Heir presumptive', 'Coadjutor bishop', default gives just 'Heir'.",
           "type": "string",
           "required": false
       },
       "rows": {
           "label": "rows",
           "description": "Number of table rows to span.",
           "type": "string",
           "required": false
       }
   }

} </templatedata>

See also

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