Difference between revisions of "Template:Age"

From Geohashing
imported>Tjtrumpet2323
imported>Tjtrumpet2323
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{ #expr: ({{CURRENTYEAR}})-({{{1}}}) - ( ( {{CURRENTMONTH}} ) < ( 0 + {{{2}}} ) or ( {{CURRENTMONTH}} ) = ( 0 + {{{2}}} ) and ( {{CURRENTDAY}} )<( 0 + {{{3}}} )) }}</includeonly>
+
<includeonly>{{#expr:({{CURRENTYEAR}})-({{{1}}})-(({{CURRENTMONTH}}) < (0+{{{2}}}) or ({{CURRENTMONTH}}) = (0+{{{2}}}) and ({{CURRENTDAY}})<(0+{{{3}}}))}}</includeonly>
 
<noinclude>== Usage ==
 
<noinclude>== Usage ==
 
* <code><nowiki>{{age|YYYY|MM|DD}}</nowiki></code>
 
* <code><nowiki>{{age|YYYY|MM|DD}}</nowiki></code>
 
* '''Ex.:''' <code><nowiki>{{age|1988|01|04}}</nowiki></code> produces {{age|1988|01|04}}.
 
* '''Ex.:''' <code><nowiki>{{age|1988|01|04}}</nowiki></code> produces {{age|1988|01|04}}.
 
</noinclude>
 
</noinclude>

Latest revision as of 15:19, 13 June 2008

Usage

  • {{age|YYYY|MM|DD}}
  • Ex.: {{age|1988|01|04}} produces 36

.