Difference between revisions of "Template:Updates/core"

From Team Fortress Wiki
Jump to: navigation, search
(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}}<{{{patch-month}}}|<small>({{#ifexpr:{{{patch-day}}}={{LOCALDAY}}|Today|{{#expr:{{LOCALDAY}}-{{{patch-day}}}}} day{{plural:{{LOCALDAY}}-{{{patch-day}}}||s}} ago}})</small>}}'''
+
--> {{#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}}<{{{blog-month}}}|<small>({{#ifexpr:{{{blog-day}}}={{LOCALDAY}}|Today|{{#expr:{{LOCALDAY}}-{{{blog-day}}}}} day{{plural:{{LOCALDAY}}-{{{blog-day}}}||s}} ago}})</small>}}'''
+
--> {{#ifexpr:{{LOCALMONTH}}>{{{blog-month}}}||<small>({{#ifexpr:{{{blog-day}}}={{LOCALDAY}}|Today|{{#expr:{{LOCALDAY}}-{{{blog-day}}}}} day{{plural:{{LOCALDAY}}-{{{blog-day}}}||s}} ago}})</small>}}'''
 
</div>
 
</div>

Revision as of 03:31, 18 July 2010