Template:Days ago: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(adding "short" parameter) |
(nsbp) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifexpr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} > 60 | {{#expr: ceil{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 30}}}}{{#ifeq: {{{short|}}} | yes |m | months ago }} | {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}{{#ifeq: {{{short|}}} | yes || days ago }}}}</includeonly><noinclude>{{documentation}}</noinclude> |
<includeonly>{{#ifexpr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} > 60 | {{#expr: ceil{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 30}}}}{{#ifeq: {{{short|}}} | yes | m | &nsbp;months ago }} | {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}{{#ifeq: {{{short|}}} | yes || &nsbp;days ago }}}}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 02:07, 13 September 2008
Usage
{{days ago|2008|1|1}}
Produces:
200&nsbp;months ago
{{days ago|2008|1|1|short=yes}}
Produces:
200m
See also
- {{age in days}}