Template:Days ago: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(title) |
(add years) |
||
Line 1: | Line 1: | ||
<includeonly><span title="{{#time: j F Y | {{{1}}}-{{{2}}}-{{{3}}}}}">{{#ifexpr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} > |
<includeonly><span title="{{#time: j F Y | {{{1}}}-{{{2}}}-{{{3}}}}}">{{#ifexpr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} > 365 |
||
| {{#expr: floor{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 365}}}}{{#ifeq: {{{short|}}} | yes | y | years ago }} |
|||
| {{#ifexpr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} > 60 |
|||
| {{#expr: floor{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 30}}}}{{#ifeq: {{{short|}}} | yes | m | months ago }} |
|||
| {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}{{#ifeq: {{{short|}}} | yes | d | days ago }} |
|||
}} |
|||
}}</span></includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 20:21, 21 February 2009
Usage
{{days ago|2008|1|1}}
Produces:
16 years ago
{{days ago|2008|1|1|short=yes}}
Produces:
16y
See also
- {{age in days}}