Jump to content

Template:Age: Difference between revisions

32 bytes added ,  18 years ago
3 additional (optional) parameters - to specify the date on which the age is measured
(includeonly expression)
(3 additional (optional) parameters - to specify the date on which the age is measured)
Line 1: Line 1:
{{tfd|Age}}<includeonly>{{#expr: {{CURRENTYEAR}} - {{{3}}} -  
{{tfd|Age}}<includeonly>{{#expr: {{{6|{{CURRENTYEAR}}}}} - {{{3}}} -  
   {{#ifexpr: {{{1}}} < {{CURRENTMONTH}} | 0 |
   {{#ifexpr: {{{1}}} < {{{4|{{CURRENTMONTH}}}}} | 0 |
     {{#ifexpr: {{{1}}} > {{CURRENTMONTH}} or {{{2}}} > {{CURRENTDAY}} | 1 | 0}}
     {{#ifexpr: {{{1}}} > {{{4|{{CURRENTMONTH}}}}} or {{{2}}} > {{{5|{{CURRENTDAY}}}}} | 1 | 0}}
   }}
   }}
}}</includeonly>
}}</includeonly>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.