Template:Age: Difference between revisions
Appearance
[[w:c:templates:Template:Age]]>Sercuz Update Template to an easier to understand one with a reduction in unnecessary parser functions as suggested in https://community.fandom.com/f/p/4400000000003588773/r/4400000000013400784 |
Winterfoxo (talk | contribs) m 1 revision imported |
(No difference)
| |
Latest revision as of 12:58, 5 December 2025
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