Шаблон:Датум смрти — разлика између измена
Садржај обрисан Садржај додат
не викивезују се године рођења и смрти |
корисно, да се зна шта је у загради после датума смрти; мислим да измена није контроверзна и да не треба консензус јер не мења ништа суштинско у шаблону, ако постоји боља фраза примените је [нпр. „доб на датум смрти”]; размишљао сам и да се користи датум смрти експлицитно дат али пошто није погодно да се користи у сродном шаблону датум рођења, одустао сам јер би онда овде био један текст неког датума а тамо само текст; ако се примени тамо тренутни датум додати и овде форматирани датум смрти |
||
Ред 9: | Ред 9: | ||
|{{#if:{{{5|}}}<!--begin#2--> |
|{{#if:{{{5|}}}<!--begin#2--> |
||
|{{#if:{{{6|}}}<!--begin#3--> |
|{{#if:{{{6|}}}<!--begin#3--> |
||
|{{if all<!--begin#4-->|{{{2|}}}|{{{3|}}}|{{{4|}}}|n=3|then=<!-- if all values are specified --> ({{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|{{{2}}}|{{{3}}}}} год.)|else={{if both<!--begin#5-->|{{{2|}}}|{{{4|}}}|<!-- if all values except death day are specified |
|{{if all<!--begin#4-->|{{{2|}}}|{{{3|}}}|{{{4|}}}|n=3|then=<!-- if all values are specified --> (<span title="смртна доб">{{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|{{{2}}}|{{{3}}}}} год.</span>)|else={{if both<!--begin#5-->|{{{2|}}}|{{{4|}}}|<!-- if all values except death day are specified |
||
-->{{#ifexpr:{{{2}}}>{{{5}}}<!--begin#6--> |
-->{{#ifexpr:{{{2}}}>{{{5}}}<!--begin#6--> |
||
|<!-- if all values except death day are specified and birth month did not reach death month --> ({{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|12|31}} год.) |
|<!-- if all values except death day are specified and birth month did not reach death month --> (<span title="смртна доб">{{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|12|31}} год.</span>) |
||
|{{#ifexpr:{{{2}}}<{{{5}}}<!--begin#7--><!-- if all values except death day are specified and birth month did reach death month --> |
|{{#ifexpr:{{{2}}}<{{{5}}}<!--begin#7--><!-- if all values except death day are specified and birth month did reach death month --> |
||
| ({{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|1|1}} год.) |
| (<span title="смртна доб">{{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|1|1}} год.</span>) |
||
|<!-- if all values except death day are specified and birth month is death month --> ({{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|1|1}}/{{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|12|31}} год.)}}<!--end#7-->}}<!--end#6--> |
|<!-- if all values except death day are specified and birth month is death month --> (<span title="смртна доб">{{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|1|1}}/{{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|12|31}} год.</span>)}}<!--end#7-->}}<!--end#6--> |
||
|<!--else#5-->{{#if:<!--begin#6-->{{{4|}}}|<!-- if all values except death month or both death month and death day are specified |
|<!--else#5-->{{#if:<!--begin#6-->{{{4|}}}|<!-- if all values except death month or both death month and death day are specified |
||
-->{{#ifexpr:{{{1}}}>{{{4}}}<!--begin#7--> |
-->{{#ifexpr:{{{1}}}>{{{4}}}<!--begin#7--> |
||
|<!-- if all values except death month or both death month and death day are specified and birth year did not reach death year --> ({{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|1|1}}/{{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|12|31}} год.) |
|<!-- if all values except death month or both death month and death day are specified and birth year did not reach death year --> (<span title="смртна доб">{{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|1|1}}/{{age|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|12|31}} год.</span>) |
||
|{{#ifexpr:{{{1}}}<{{{4}}}<!--begin#8--><!-- if all values except death month or both death month and death day are specified and birth year did reach death year... --> |
|{{#ifexpr:{{{1}}}<{{{4}}}<!--begin#8--><!-- if all values except death month or both death month and death day are specified and birth year did reach death year... --> |
||
|<!-- ...then it is an error as birth year must be smaller than or equal to death year |
|<!-- ...then it is an error as birth year must be smaller than or equal to death year |
||
-->|<!-- if all values except death month or both death month and death day are specified and birth year is death year --> (0 год.)}}<!--end#8-->}}<!--end#7-->}}<!--end#6-->}}<!--end#5-->}}<!--end#4--> |
-->|<!-- if all values except death month or both death month and death day are specified and birth year is death year --> (<span title="смртна доб">0 год.</span>)}}<!--end#8-->}}<!--end#7-->}}<!--end#6-->}}<!--end#5-->}}<!--end#4--> |
||
|<!--else#3-->{{if both<!--begin#4-->|{{{2|}}}{{{3|}}}{{{5|}}}|{{{4|}}}|{{#ifexpr:{{#if:{{{2|}}}|{{{2|}}}|0}}>{{{5}}}<!--begin#5--> |
|<!--else#3-->{{if both<!--begin#4-->|{{{2|}}}{{{3|}}}{{{5|}}}|{{{4|}}}|{{#ifexpr:{{#if:{{{2|}}}|{{{2|}}}|0}}>{{{5}}}<!--begin#5--> |
||
|<!-- if all values except birth day or both birth and death day are specified and birth month did not reach death month --> ({{age|{{{4}}}|1|1|{{{1}}}|{{{2}}}|{{#if:{{{3|}}}|{{{3|}}}|31}}}} год.) |
|<!-- if all values except birth day or both birth and death day are specified and birth month did not reach death month --> (<span title="смртна доб">{{age|{{{4}}}|1|1|{{{1}}}|{{{2}}}|{{#if:{{{3|}}}|{{{3|}}}|31}}}} год.</span>) |
||
|{{#ifexpr:{{#if:{{{2|}}}|{{{2|}}}|13}}<{{{5}}}<!--begin#6--><!-- if all values except birth day or both birth and death day are specified and birth month did reach death month --> |
|{{#ifexpr:{{#if:{{{2|}}}|{{{2|}}}|13}}<{{{5}}}<!--begin#6--><!-- if all values except birth day or both birth and death day are specified and birth month did reach death month --> |
||
| ({{age|{{{4}}}|12|31|{{{1}}}|{{{2}}}|{{#if:{{{3|}}}|{{{3|}}}|1}}}} год.) |
| (<span title="смртна доб">{{age|{{{4}}}|12|31|{{{1}}}|{{{2}}}|{{#if:{{{3|}}}|{{{3|}}}|1}}}} год.</span>) |
||
|<!-- if all values except birth day or both birth and death day are specified and birth month is death month --> ({{age|{{{4}}}|{{{5}}}|31|{{{1}}}|{{{5}}}|{{#if:{{{3|}}}|{{{3|}}}|1}}}}/{{age|{{{4}}}|{{{5}}}|1|{{{1}}}|{{{5}}}|{{#if:{{{3|}}}|{{{3|}}}|31}}}} год.)}}<!--end#6-->}}<!--end#5-->}}<!--end#4-->}}<!--end#3--> |
|<!-- if all values except birth day or both birth and death day are specified and birth month is death month --> (<span title="смртна доб">{{age|{{{4}}}|{{{5}}}|31|{{{1}}}|{{{5}}}|{{#if:{{{3|}}}|{{{3|}}}|1}}}}/{{age|{{{4}}}|{{{5}}}|1|{{{1}}}|{{{5}}}|{{#if:{{{3|}}}|{{{3|}}}|31}}}} год.</span>)}}<!--end#6-->}}<!--end#5-->}}<!--end#4-->}}<!--end#3--> |
||
|<!--else#2-->{{if all|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|n=6|then=|else=<!--BEGIN CONDITION TO DECIDE WHETHER TO DO else#2 OR NOT...-->{{if all<!--begin#3-->|{{{2|}}}{{{3|}}}{{{4|}}}|{{{6|}}}{{{3|}}}|{{{4|}}}|n=3|then={{#ifexpr:{{{1}}}>{{{4}}}<!--begin#4--> |
|<!--else#2-->{{if all|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|n=6|then=|else=<!--BEGIN CONDITION TO DECIDE WHETHER TO DO else#2 OR NOT...-->{{if all<!--begin#3-->|{{{2|}}}{{{3|}}}{{{4|}}}|{{{6|}}}{{{3|}}}|{{{4|}}}|n=3|then={{#ifexpr:{{{1}}}>{{{4}}}<!--begin#4--> |
||
|<!-- if two years and either death month or death day or birth day are specified and birth year did not reach death year --> ({{replace|{{Age in years|{{{4}}}|{{{1}}}}}|—|/}} год.<!--Белешка 1, не брисати.-->) |
|<!-- if two years and either death month or death day or birth day are specified and birth year did not reach death year --> (<span title="смртна доб">{{replace|{{Age in years|{{{4}}}|{{{1}}}}}|—|/}} год.</span><!--Белешка 1, не брисати.-->) |
||
|{{#ifexpr:{{{1}}}<{{{4}}}<!--begin#5--><!-- if two years and either death month or death day or birth day are specified and birth year did reach death year --> |
|{{#ifexpr:{{{1}}}<{{{4}}}<!--begin#5--><!-- if two years and either death month or death day or birth day are specified and birth year did reach death year --> |
||
|<!-- ...then it is an error as birth year must be smaller than or equal to death year |
|<!-- ...then it is an error as birth year must be smaller than or equal to death year |
||
-->|<!-- if two years and either death month or death day or birth day are specified and birth year is death year --> (0 год.)}}<!--end#5-->}}<!--end#4-->}}<!--end#3-->{{if both<!--begin#3-->|{{{1|}}}|{{{4|}}}|{{#if:{{{2|}}}{{{3|}}}{{{6|}}}<!--begin#4-->|| ({{replace|{{Age in years|{{{4}}}|{{{1}}}}}|—|/}} год.)}}<!--end#4-->}}<!--end#3-->}}<!--end#2-->{{#if:<!--begin#2-->{{{4|}}}|{{if both|{{{2|}}}|{{{6|}}}||<!-- if all values except both birth and death month or both birth and death month and death day are specified |
-->|<!-- if two years and either death month or death day or birth day are specified and birth year is death year --> (<span title="смртна доб">0 год.</span>)}}<!--end#5-->}}<!--end#4-->}}<!--end#3-->{{if both<!--begin#3-->|{{{1|}}}|{{{4|}}}|{{#if:{{{2|}}}{{{3|}}}{{{6|}}}<!--begin#4-->|| (<span title="смртна доб">{{replace|{{Age in years|{{{4}}}|{{{1}}}}}|—|/}} год.</span>)}}<!--end#4-->}}<!--end#3-->}}<!--end#2-->{{#if:<!--begin#2-->{{{4|}}}|{{if both|{{{2|}}}|{{{6|}}}||<!-- if all values except both birth and death month or both birth and death month and death day are specified |
||
-->{{#ifexpr:{{{1}}}>{{{4}}}<!--begin#3--> |
-->{{#ifexpr:{{{1}}}>{{{4}}}<!--begin#3--> |
||
|<!-- if all values except both birth and death month or both birth and death month and death day are specified and birth year did not reach death year -->{{if both|{{{3|}}}|{{{6|}}}||{{#ifeq:{{{2|}}}{{{3|}}}{{{5|}}}{{{6|}}}|||{{if both|{{#ifeq:{{{5|}}}{{{6|}}}||*}}|{{if all|{{{2|}}}|{{{3|}}}|{{{4|}}}|n=3|then=*}}||{{if both|{{#ifeq:{{{2|}}}{{{3|}}}{{{5|}}}||*}}|{{#if:{{{6|}}}|*}}||{{if both|{{#ifeq:{{{2|}}}{{{5|}}}{{{6|}}}||*}}|{{#if:{{{3|}}}|*}}|| ({{replace|{{Age in years|{{{4}}}|{{{1}}}}}|—|/}} год.<!--Белешка 2, не брисати.-->)}}}}}}}}}} |
|<!-- if all values except both birth and death month or both birth and death month and death day are specified and birth year did not reach death year -->{{if both|{{{3|}}}|{{{6|}}}||{{#ifeq:{{{2|}}}{{{3|}}}{{{5|}}}{{{6|}}}|||{{if both|{{#ifeq:{{{5|}}}{{{6|}}}||*}}|{{if all|{{{2|}}}|{{{3|}}}|{{{4|}}}|n=3|then=*}}||{{if both|{{#ifeq:{{{2|}}}{{{3|}}}{{{5|}}}||*}}|{{#if:{{{6|}}}|*}}||{{if both|{{#ifeq:{{{2|}}}{{{5|}}}{{{6|}}}||*}}|{{#if:{{{3|}}}|*}}|| (<span title="смртна доб">{{replace|{{Age in years|{{{4}}}|{{{1}}}}}|—|/}} год.</span><!--Белешка 2, не брисати.-->)}}}}}}}}}} |
||
|{{#ifexpr:{{{1}}}<{{{4}}}<!--begin#4--><!-- if all values except both birth and death month or both birth and death month and death day are specified and birth year did reach death year... --> |
|{{#ifexpr:{{{1}}}<{{{4}}}<!--begin#4--><!-- if all values except both birth and death month or both birth and death month and death day are specified and birth year did reach death year... --> |
||
|<!-- ...then it is an error as birth year must be smaller than or equal to death year |
|<!-- ...then it is an error as birth year must be smaller than or equal to death year |
||
-->|<!-- if all values except both birth and death month or both birth and death month and death day are specified and birth year is death year --> (0 год.)}}<!--end#4-->}}}}<!--end#3-->}}<!--end#2-->}}<!--END CONDITION TO DECIDE WHETHER TO DO else#2 OR NOT...-->}}<!--end#1--><!--END!!!--></small><!-- |
-->|<!-- if all values except both birth and death month or both birth and death month and death day are specified and birth year is death year --> (<span title="смртна доб">0 год.</span>)}}<!--end#4-->}}}}<!--end#3-->}}<!--end#2-->}}<!--END CONDITION TO DECIDE WHETHER TO DO else#2 OR NOT...-->}}<!--end#1--><!--END!!!--></small><!-- |
||
-- Error checks -- |
-- Error checks -- |
||
--><small>{{if both|{{{1|}}}|{{{4|}}}|{{#ifexpr: ( {{{1|}}} > {{CURRENTYEAR}} ) OR ( {{{4|}}} > {{CURRENTYEAR}} ) OR ( {{{4|}}} > {{{1|}}} ) OR ( {{{1|}}} - {{{4|}}} > 168 ) |
--><small>{{if both|{{{1|}}}|{{{4|}}}|{{#ifexpr: ( {{{1|}}} > {{CURRENTYEAR}} ) OR ( {{{4|}}} > {{CURRENTYEAR}} ) OR ( {{{4|}}} > {{{1|}}} ) OR ( {{{1|}}} - {{{4|}}} > 168 ) |
Верзија на датум 29. фебруар 2020. у 22:46
Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Datum smrti-lat}}. |
Овај шаблон се користи на 22.488 страница, тако да ће промене на њему бити широко примећене. Молимо да било какве измене тестирате на подстраницама шаблона /песак или /тестови, или на сопственој корисничкој подстраници. Размислите и о покретању расправе о изменама које намеравате да унесете на страници за разговор пре њиховог примењивања. |
Употреба
{{датум смрти|година_смрти|месец_смрти|дан_смрти|година_рођења|месец_рођења|дан_рођења}}
Пример
{{датум смрти|2001|12|30|2000|12|30}}
→ 30. децембар 2001.1 год.)
(
Категорија за праћење
Види још
{{Датум рођења}}