Jump to content

Template:Age/doc: Difference between revisions

From The Furrydelphia Wiki
[[w:c:templates:Template:Age]]>Ptxfanatic
Undo revision 30405 by Ptxfanatic (talk)
 
m 1 revision imported
 
(No difference)

Latest revision as of 11:58, 5 December 2025

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

        }}{{#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