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

Шаблон:Аге ин yеарс анд монтхс/док

Izvor: Vojna Enciklopedija

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

    | 

{{#ifeq:show |show

|

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

This template returns the duration between two specified dates as a number of full years and remaining months. If the second set of parameters is not included, the duration is between the specified date and today's date.

Syntax

{{{{#if:age in years and months |age in years and months | tlc|...}}{{#ifeq:year1|year1| |year1 | }}{{#ifeq:month1|month1| |month1 | }}{{#ifeq:day1 |day1 | |day1  | }}{{#ifeq:year2|year2| |year2 | }}{{#ifeq:month2|month2| |month2 | }}{{#ifeq:day2|day2| |day2 | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
{{{{#if:age in years and months |age in years and months | tlc|...}}{{#ifeq:year1|year1| |year1 | }}{{#ifeq:month1|month1| |month1 | }}{{#ifeq:day1|day1| |day1 | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}  (causing the current date to be used as the second date)

Examples

{{#if: ||+ {{{title}}}}} {{#if: |
Викиозначавање Резултат у чланку

}}{{#if:{{age in years and months |1989|7|23 |2003|7|14}}|

{{age in years and months |1989|7|23 |2003|7|14}}

13 godina, 11 meseci

}}{{#if:{{age in years and months |1989|7|23 |1989|8|22}}|

{{age in years and months |1989|7|23 |1989|8|22}}

0 meseci

}}{{#if:{{age in years and months |1989|7|23 |1989|8|23}}|

{{age in years and months |1989|7|23 |1989|8|23}}

1 meseci

}}{{#if:{{age in years and months |1989|7|23 |1990|7|23}}|

{{age in years and months |1989|7|23 |1990|7|23}}

1 godina

}}{{#if:{{age in years and months |1989|7|23}}|

{{age in years and months |1989|7|23}}

36 godina, 6 meseci

}}{{#if:{{age in years and months |1990|7|23 |1989|7|23}}|

{{age in years and months |1990|7|23 |1989|7|23}}

−1 godina

}}{{#if:{{age in years and months |1990|9|23 |1989|7|23}}|

{{age in years and months |1990|9|23 |1989|7|23}}

−1 godina, 2 meseci

}}{{#if:|


}}{{#if:|


}}{{#if:|


}}{{#if:|


}}{{#if:|


}}{{#if:|


}}{{#if:|


}}{{#if:|


}}{{#if:|


}}{{#if:|


}}{{#if:|


}}{{#if:|


}}{{#if:|


}}