Difference between revisions of "Template:TimeAgo/Core"
From DoomWiki.org
m (Category:Templates should not be transcluded into article) |
(attribution is kind of important actually, so don't conceal it in comments) |
||
Line 1: | Line 1: | ||
− | + | {{#expr:floor(abs({{#time:U}}-{{#time:U|{{{time|}}}}})/{{#switch:{{#ifexpr:{{{min_magnitude_num|-1}}}>{{{auto_magnitude_num}}} | |
|{{{min_magnitude_num}}} | |{{{min_magnitude_num}}} | ||
|{{{auto_magnitude_num|0}}} | |{{{auto_magnitude_num|0}}} | ||
Line 26: | Line 26: | ||
|' time | |' time | ||
}} | }} | ||
− | <noinclude>[[Category:Templates]]</noinclude> | + | <noinclude> |
+ | |||
+ | == Source == | ||
+ | |||
+ | * [http://www.theoks.net/wiki/Template:Time_ago/core Template:Time_ago/core] on TheOKs Wiki | ||
+ | |||
+ | [[Category:Templates]]</noinclude> |
Latest revision as of 20:39, 18 March 2018
0 seconds ago
Source[edit]
- Template:Time_ago/core on TheOKs Wiki