Difference between revisions of "Template:Days ago"

From Team Fortress Wiki
Jump to: navigation, search
(Just realised the over 1 month ago would be incorrect. Returns a null value now)
(Changed back to more stable UTC. Would be better if we could base it off the user's time in their settings, however I can't find anything like that in the MediaWiki documentation.)
Line 1: Line 1:
{{#ifexpr:{{LOCALMONTH}}={{{1|}}}|{{#ifexpr:{{LOCALDAY}}={{{2|}}}|Today|{{#ifexpr:{{LOCALDAY}}-{{{2|}}}=1|Yesterday|{{#expr:{{LOCALDAY}}-{{{2|}}}}} days ago}}}}|}}
+
{{#ifexpr:{{CURRENTMONTH}}={{{1|}}}|{{#ifexpr:{{CURRENTDAY}}={{{2|}}}|(Today)|{{#ifexpr:{{CURRENTDAY}}-{{{2|}}}=1|(Yesterday)|({{#expr:{{CURRENTDAY}}-{{{2|}}}}} days ago)}}}}|}}

Revision as of 04:38, 18 July 2010

Expression error: Missing operand for =.