Template:Days since: Difference between revisions
Jump to navigation
Jump to search
(https://en.wikipedia.org/wiki/Template:Days_since) |
No edit summary |
||
Line 8: | Line 8: | ||
}}{{ | }}{{ | ||
#ifexpr: {{age in days|{{{1|2011}}}|{{{2|3}}}|{{{3|4}}}}} > 365 | #ifexpr: {{age in days|{{{1|2011}}}|{{{2|3}}}|{{{3|4}}}}} > 365 | ||
| {{#expr: floor( {{age in days|{{{1|2011}}}|{{{2|3}}}|{{{3|4}}}}} / 365) }} years, {{#expr: {{age in days|{{{1|2011}}}|{{{2|3}}}|{{{3|4}}}}} mod 365}} days | | {{#expr: floor( {{age in days|{{{1|2011}}}|{{{2|3}}}|{{{3|4}}}}} / 365) }} years ago, {{#expr: {{age in days|{{{1|2011}}}|{{{2|3}}}|{{{3|4}}}}} mod 365}} days | ||
| {{#ifexpr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} > 30 | | {{#ifexpr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} > 30 | ||
| {{#expr: floor{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 30}}}}{{#ifeq: {{{short|}}} | yes | m | months ago }} | | {{#expr: floor{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 30}}}}{{#ifeq: {{{short|}}} | yes | m | months ago }} |