Difference between revisions of "Template:Age"

From Geohashing
imported>Tjtrumpet2323
m (Template:Agecalc moved to Template:Age over redirect)
imported>Tjtrumpet2323
m
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>

Revision as of 15:19, 13 June 2008

Usage

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

.