Template:ActiveDev: Difference between revisions
m ago |
m bold red how long ago |
||
| Line 1: | Line 1: | ||
{{#ifexpr: ( {{#time:U|now}} - {{#time:U|{{{1}}}-{{{2}}}-{{{3}}}}} ) > 15552000 | {{#ifexpr: ( {{#time:U|now}} - {{#time:U|{{{1}}}-{{{2}}}-{{{3}}}}} ) > 15552000 | ||
| <span style="color:#ff0000; font-weight: bold"> | | <span style="color:#ff0000; font-weight: bold">{{AgeYMWD|year1={{{1}}}|month1={{{2}}}|day1={{{3}}}}}</span> | ||
| {{AgeYMWD|year1={{{1}}}|month1={{{2}}}|day1={{{3}}}}} | | {{AgeYMWD|year1={{{1}}}|month1={{{2}}}|day1={{{3}}}}} | ||
}} ago | }} ago | ||
| Line 7: | Line 7: | ||
This template is dedicated for [[Community projects]]. It converts date to: | This template is dedicated for [[Community projects]]. It converts date to: | ||
* "How long ago" if it was less than 6 months ago, | * "How long ago" if it was less than 6 months ago, | ||
* | * Above, but in bold red if otherwise. | ||
15552000 seconds, included in template's code is 6 months. <br> | 15552000 seconds, included in template's code is 6 months. <br> | ||
Ignore the "Expression error: Unexpected < operator." written here. | Ignore the "Expression error: Unexpected < operator." written here. | ||
</noinclude> | </noinclude> | ||