Difference between revisions of "Template:Updates/core"

From Team Fortress Wiki
Jump to: navigation, search
Line 79: Line 79:
 
   }}
 
   }}
  
| #default = <span class="error small">ERROR &#123;&#123;[[Template:latest updates|latest updates]]&#125;&#125; failure: no type specified.</span>
+
| #default = <span class="error small">{{#ifeq:{{BASEPAGENAME}}|Main Page|<span style="color:#000;">''This Main Page requires updating to the [[Template:Main Page layout|new design]].''</span>|ERROR &#123;&#123;[[Template:latest updates|latest updates]]&#125;&#125; failure: no type specified.}}</span>
  
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>

Revision as of 00:32, 4 September 2010

  • Generates patch & blog update links and text plainly based on the parameter type (or the first unnamed parameter).
  • To update dates of blog updates & patches, see Template:Updates.

Usage

  • Date input parameters:
| patch-month = 
| patch-day   = 
| patch-year  = 
| blog-month  = 
| blog-day    = 
| blog-year   = 
| blog-id     = 
  • Formatting type parameters: type=
    • patch for a language link to the patch article for that date.
    • blog for a link to the blog post (specified by blog-id).
    • patch-daysago and blog-daysago for processing of date input parameters into {{Days ago}}.
  • Localized text parameters:
    • patch-text for a localized version of "The latest patch was on" (language link)
    • blog-text for a localized version of "The blog was last updated on" (language link)