Template:Age

From GamingAlliance - GTA RP Wiki
Revision as of 19:51, 7 April 2024 by DrunkMunki (talk | contribs) (Created page with "<includeonly><!-- -->{{#vardefineecho:__age_template_age__<!-- -->|{{#ifexpr:{{CURRENTMONTH}} - {{{2|{{{birth_month|1}}}}}} < 0<!-- -->|{{#expr:{{CURRENTYEAR}} - {{{1|{{{birth_year|1980}}}}}} - 1}}<!-- -->|{{#ifexpr:{{CURRENTMONTH}} - {{{2|{{{birth_month|1}}}}}} = 0<!-- -->|{{#ifexpr:{{CURRENTDAY}} - {{{3|{{{birth_day|10}}}}}} >= 0<!-- -->|{{#expr:{{CURRENTYEAR}} - {{{1|{{{birth_year|1980}}}}}}}}<!-- -->|{{#expr:{{CURRENTYE...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<templatedata> { "params": { "1": { "aliases": [ "birth_year" ], "label": "Year of birth", "description": "Year of birth", "example": "birth_year = 1997", "type": "number", "required": true }, "2": { "aliases": [ "birth_month" ], "label": "Month of birth", "description": "Month of birth", "example": "birth_month = 12", "type": "number", "required": true }, "3": { "aliases": [ "birth_day" ], "label": "Day of birth", "description": "Day of birth", "example": "birth_day = 1", "type": "number", "required": true } }, "format": "inline", "paramOrder": [ "1", "2", "3" ], "description": "Used to calculate age by date of birth." } </templatedata>

Empty syntax

Provided for copy-and-paste usage.

{{age|birth_year = 1997|birth_month = 12|birth_day = 1}}
or
{{age|1997|12|1}}
Template:Clr