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

Шаблон:S-new

Iz Vojne Enciklopedije
(разл) ← Старија измена | Тренутна верзија (разл) | Новија измена → (разл)
{{#switch: award = Нова награда championship = Нови шампионат chart = Нови графикон constituency = Нова конституенција creation = Ново стварање diocese = Нови диоциз district = Нови дистрикт division = Нова дивизија institution = Нова институција first = Прво loss = Губитак титуле minister = Нови министарски мандат office = Нови уред party = Нова политичка странка regiment = Нови регимент seat = Ново место tv = Нови телевизијски шоу show = Нови шоу sports = Нови спортски догађај parliament = Нови парламент #default = Нови наслов }}{{#if:{{{reason}}}|
{{{reason}}}
}}
Документација шаблона[прикажи] [уреди] [историја] [освежи]

{{#ifeq:s-new |док

    | 

{{#ifeq:show |show

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

This template creates a single succession box column to be used with succession boxes.

Usage

The format is {{s-new|parameter}}, where parameter is replaced by one of the parameter names shown in the following table. The use of a parameter is optional.

value Replaces "New title" with...
award New award
championship New championship
chart New chart
constituency New constituency
creation New creation
diocese New diocese
district New district
division New division
first First
institution New institution
loss Loss of title
minister New ministerial post
office New office
parliament New parliament
party New political party
regiment New regiment
seat New seat
show New show
sports New sporting event
tv New television show

Note: Only one parameter can be used in a single line of code.

In addition, the parameter, reason, may be used to designate the reason(s) for the title (or loss); enter a short explanation after entering this parameter, if necessary.

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

Example 1

From the James Hamilton, 4th Duke of Hamilton article:

{{s-start}}
{{s-reg|gb}}
{{s-new | creation}}
{{s-ttl | title  = [[Duke of Brandon]] | years = 1711–1712}}
{{s-aft | after  = [[James Hamilton, 5th Duke of Hamilton|James Douglas-Hamilton]]}}
{{s-end}}
{{#if:gb Регналне титуле}}{{#switch:gb Регналне титуле}} 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}}}
}}
Duke of Brandon{{#if:|
Представник за

{{{district}}}|}}{{#if:|
{{{dynasty}}}|}}{{#if:|
{{{creation}}}|}}{{#if:1711–1712|
1711–1712|}}{{#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}}})
|}}

Нас{{#ifeq:{{safesubst:#switch: no n false не ne н нетачно ne netačno 0 = no = ¬ = yes y true да д тачно da d tačno 1 = yes #default = yes

}}|yes|љ|л}}едник:
James Douglas-Hamilton{{#if:|
|}}{{#if:|
|}}{{#if:|
|}}{{#if:|
|}}
{{#if:|
као }}

TemplateData

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

TemplateData за S-new

{{#ifeq:S-new|sandbox||

}} <templatedata> {

   "description": "Indicates creation of a new title, show etc. or loss of a title. Takes 1 table column.",
   "params": {
       "1": {
           "label": "Type",
           "description": "The type of creation one of: award, championship, chart, constituency, creation, diocese, district,  division, first, institution, minister, office, parliament, party (for new political party), regiment, seat, show, sports (for new sporting event), tv (for new television show). Use 'loss' for Loss of title.",
           "type": "string",
           "required": false
       },
       "reason": {
           "label": "reason",
           "description": "Reason for office creation",
           "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/doc.