Template:Age: Difference between revisions
(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> |