Difference between revisions of "Template:Age"

From The Lion King Wiki
Jump to: navigation, search
 
Line 1: Line 1:
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly>
+
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude>
 +
{{/doc}}
 +
[[Category:Templates]]
 +
</noinclude>

Latest revision as of 07:16, 4 April 2011

Template-info.png Documentation

This template is for calculating and displaying the age of something based on a given date.

Usage

{{age|1994|6|24}}

Will Output: 31

The above documentation is transcluded from Template:Age/doc. (edit | history)