Template:Age
Appearance
File:Test Template Info-Icon - Version (2).svg Template documentationviewedithistorypurge
- Description
- This template returns the current age of someone with a given birth date.
- Sample output
<syntaxhighlight lang="html+handlebars"> {{#expr: 2026 - 1929 - 1 + {{#ifexpr: 08 - 1 > 0|1|((08 = 1)and(18 >= 15))}}}}</syntaxhighlight> gives...
- {{#expr: 2026 - 1929 - 1 + {{#ifexpr: 08 - 1 > 0|1|((08 = 1)and(18 >= 15))}}}}
<syntaxhighlight lang="html+handlebars"> {{#expr: 2026 - 1929
- 1 + {{#ifexpr: 08 - 1
> 0|1|((08 = 1
)and(18 >= 15 ))}}}}</syntaxhighlight> gives...
- {{#expr: 2026 - 1929
- 1 + {{#ifexpr: 08 - 1
> 0|1|((08 = 1
)and(18 >= 15 ))}}}} fr:Modèle:Âge