Difference between revisions of "Template:Updates/core"
(Renamed parameters, change date calculations to server time (Not UTC, open for discussion), made code easier to read) |
m |
||
Line 33: | Line 33: | ||
--> {{{patch-year}}}]] <!-- | --> {{{patch-year}}}]] <!-- | ||
− | --> {{#ifexpr:{{LOCALMONTH}} | + | --> {{#ifexpr:{{LOCALMONTH}}>{{{patch-month}}}||<small>({{#ifexpr:{{{patch-day}}}={{LOCALDAY}}|Today|{{#expr:{{LOCALDAY}}-{{{patch-day}}}}} day{{plural:{{LOCALDAY}}-{{{patch-day}}}||s}} ago}})</small>}}''' |
<br> | <br> | ||
[[File:Tf2-logo-transparent.png|18px|link=TF2 Official Blog|top]] The [[TF2 Official Blog|blog]] was last updated on '''<span class="plainlinks">[http://www.teamfortress.com/post.php?id={{{blog-id}}} {{#switch: {{{blog-month}}} | [[File:Tf2-logo-transparent.png|18px|link=TF2 Official Blog|top]] The [[TF2 Official Blog|blog]] was last updated on '''<span class="plainlinks">[http://www.teamfortress.com/post.php?id={{{blog-id}}} {{#switch: {{{blog-month}}} | ||
Line 51: | Line 51: | ||
--> {{{blog-year}}}]</span> <!-- | --> {{{blog-year}}}]</span> <!-- | ||
− | --> {{#ifexpr:{{LOCALMONTH}} | + | --> {{#ifexpr:{{LOCALMONTH}}>{{{blog-month}}}||<small>({{#ifexpr:{{{blog-day}}}={{LOCALDAY}}|Today|{{#expr:{{LOCALDAY}}-{{{blog-day}}}}} day{{plural:{{LOCALDAY}}-{{{blog-day}}}||s}} ago}})</small>}}''' |
</div> | </div> |