Template:Age/doc
Appearance
{{#ifeq:doc |doc
|
{{#ifeq:show |show
|
| icon | Template:Strong for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. |
}}{{#if:|
|{{#ifexist:Template:Age
| [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
|
}}
}}
|
}}
- 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: 05 - 1 > 0|1|((05 = 1)and(14 >= 15))}}}}</syntaxhighlight> gives...
- {{#expr: 2026 - 1929 - 1 + {{#ifexpr: 05 - 1 > 0|1|((05 = 1)and(14 >= 15))}}}}
<syntaxhighlight lang="html+handlebars"> {{#expr: 2026 - 1929
- 1 + {{#ifexpr: 05 - 1
> 0|1|((05 = 1
)and(14 >= 15 ))}}}}</syntaxhighlight> gives...
- {{#expr: 2026 - 1929
- 1 + {{#ifexpr: 05 - 1
> 0|1|((05 = 1
)and(14 >= 15 ))}}}} fr:Modèle:Âge/doc