Template:Age/doc: Difference between revisions
Appearance
[[w:c:templates:Template:Age]]>Ptxfanatic Undo revision 30405 by Ptxfanatic (talk) |
Winterfoxo (talk | contribs) m 1 revision imported |
(No difference)
| |
Latest revision as of 11:58, 5 December 2025
{{#ifeq:doc |doc
|
{{#ifeq:show |show
|
| icon | This is a documentation subpage for Template:Age{{#if:||.}} 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: 11 - 1 > 0|1|((11 = 1)and(20 >= 15))}}}}</syntaxhighlight> gives...
- {{#expr: 2026 - 1929 - 1 + {{#ifexpr: 11 - 1 > 0|1|((11 = 1)and(20 >= 15))}}}}
<syntaxhighlight lang="html+handlebars"> {{#expr: 2026 - 1929
- 1 + {{#ifexpr: 11 - 1
> 0|1|((11 = 1
)and(20 >= 15 ))}}}}</syntaxhighlight> gives...
- {{#expr: 2026 - 1929
- 1 + {{#ifexpr: 11 - 1
> 0|1|((11 = 1
)and(20 >= 15 ))}}}} fr:Modèle:Âge/doc