Jump to content

Template:Age/doc

From The Furrydelphia Wiki

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