Template:Age: Difference between revisions

From WikiGenius
(Created page with "<includeonly>{{#ifexpr:{{CURRENTMONTH}}-{{{2|{{{birth_month|1}}}}}}<0 |{{#expr:{{CURRENTYEAR}}-{{{1|{{{birth_year|1920}}}}}}-1}} |{{#ifexpr:{{CURRENTMONTH}}-{{{2|{{{birth_month|1}}}}}}=0 |{{#ifexpr:{{CURRENTDAY}}-{{{3|{{{birth_day|1}}}}}}>=0 |{{#expr:{{CURRENTYEAR}}-{{{1|{{{birth_year|1920}}}}}}}} |{{#expr:{{CURRENTYEAR}}-{{{1|{{{birth_year|1920}}}}}}-1}} }} |{{#expr:{{CURRENTYEAR}}-{{{1|{{{birth_year|1920}}}}}}}} }} }}</includeonly><noinclude> {{Documentation}}</noinclude>")
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
m (Protected "Template:Age" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(No difference)

Latest revision as of 12:09, 21 August 2023

Your wiki got a version of Template:Documentation that is only relevant to Templates Wiki! Click here to revert it. For a documentation template you can use on your wiki, see Template:Documentation (copy) on Templates Wiki.
Template information, documentation, and installation instructions.
Expand the below text for usage and other information.

Template Documentation:
Note: The template above might be broken without the parameters; this is normal.
View, edit, or check the history of this documentation. (How does this work?)
Editors can experiment with this template's sandbox and testcases.
Description
This template returns the current age of someone with a given birth date.
Sample output
{{Age
|birth_year=1929
|birth_month=1
|birth_day=15
}}
gives...
95
{{Age
|1929
|1
|15
}}
gives...
95Template:Clear

Installation Instructions
Export this template, then import to install it.
Use edit summary: Copied from [[w:c:templates:Template:Age]] to properly attribute this template's editors.
There is no additional installation instructions for this template. If there is any, you may create it at Template:Age/install.