Jump to content

Template:Age: Difference between revisions

From IdeaWazaWiki
wikademia>Misza13
m directing to talk for instructions, adding "Date math" category
wikademia>Wikademia
m 45 revisions
 
(37 intermediate revisions by 23 users not shown)
Line 1: Line 1:
{{tfd|Age}}<includeonly>{{#expr: {{{6|{{CURRENTYEAR}}}}} - {{{3}}} -  
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude>
  {{#ifexpr: {{{1}}} < {{{4|{{CURRENTMONTH}}}}} | 0 |
{{pp-template|small=yes}}
    {{#ifexpr: {{{1}}} > {{{4|{{CURRENTMONTH}}}}} or {{{2}}} > {{{5|{{CURRENTDAY}}}}} | 1 | 0}}
{{template doc}}
  }}
</noinclude>
}}</includeonly>
 
For usage instructions, see [[Template talk:Age|the talk page]].
 
[[Category:Date math]]

Latest revision as of 19:26, 21 March 2009