Template:Days ago: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(plural)
(Undid revision 272332326 by Gary King (talk))
Line 1: Line 1:
<includeonly><span title="{{#time: j F Y | {{{1}}}-{{{2}}}-{{{3}}}}}">{{#ifexpr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} > 365
<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 | &nbsp;{{plural:floor{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 365}}|year|years}} ago }}
| {{#expr: floor{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 365}}}}{{#ifeq: {{{short|}}} | yes | y | &nbsp;years ago }}
| {{#ifexpr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} > 60
| {{#ifexpr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} > 60
| {{#expr: floor{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 30}}}}{{#ifeq: {{{short|}}} | yes | m | &nbsp;{{plural:floor{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 30}}|month|months}} ago }}
| {{#expr: floor{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 30}}}}{{#ifeq: {{{short|}}} | yes | m | &nbsp;months ago }}
| {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}{{#ifeq: {{{short|}}} | yes | d | &nbsp;{{plural:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|day|days}} ago }}
| {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}{{#ifeq: {{{short|}}} | yes | d | &nbsp;days ago }}
}}
}}
}}</span></includeonly><noinclude>{{documentation}}</noinclude>
}}</span></includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 20:27, 21 February 2009