Difference between revisions of "Template:Age"

From Conservapedia
Jump to navigation Jump to search
m (Unprotected "Template:Age": iduan to work)
m (Protected "Template:Age": Template protection policy ([Edit=Administrators only] (indefinite) [Move=Administrators only] (indefinite)) [cascading])
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude>
 
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude>
 +
This template allows the displayof a person's current calculated age. It will always be up to date, because it's calculated by the server based on the year, month and day of their birth. This can be especially useful in biographical articles.
 +
 +
==Documentation==
 +
Usage of this template is fairly straightforward.  It takes in three required numerical parameters: year, month, and day, in that order.<br />
 +
<code>'''<nowiki>{{age|YYYY|MM|DD}}</nowiki>'''</code>
 +
 +
For example, the birth date of June 12, 1986 would be entered as <code><nowiki>{{age|1986|06|12}}</nowiki></code>
 +
[[Category:Navigation box]]
 
</noinclude>
 
</noinclude>
−
[[Category:Navigation box]]
 

Latest revision as of 04:30, April 28, 2017

This template allows the displayof a person's current calculated age. It will always be up to date, because it's calculated by the server based on the year, month and day of their birth. This can be especially useful in biographical articles.

Documentation

Usage of this template is fairly straightforward. It takes in three required numerical parameters: year, month, and day, in that order.
{{age|YYYY|MM|DD}}

For example, the birth date of June 12, 1986 would be entered as {{age|1986|06|12}}