Difference between revisions of "Template:Updates/core"

From Team Fortress Wiki
Jump to: navigation, search
(use {{common string|date-fmt}}, rm translation switching tag since this template no longer has any (now all in dictionary))
(use {{date fmt}}, rm translation switching tag since this template no longer has any (now all in dictionary))
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#switch:{{{1|{{{type|}}}}}}
 
<includeonly>{{#switch:{{{1|{{{type|}}}}}}
  
| patch = [[{{lang date|force=en|1={{{patch-month}}}}} {{{patch-day}}}, {{{patch-year}}} Patch{{if lang}}|{{common string|date-fmt|2={{{patch-month}}}|3={{{patch-day}}}|4={{{patch-year}}}}}]]
+
| patch = [[{{lang date|force=en|1={{{patch-month}}}}} {{{patch-day}}}, {{{patch-year}}} Patch{{if lang}}|{{date fmt|1={{{patch-month}}}|2={{{patch-day}}}|3={{{patch-year}}}}}]]
  
| patch-beta = [[{{lang date|force=en|1={{{patch-beta-month}}}}} {{{patch-beta-day}}}, {{{patch-beta-year}}} Patch (Beta){{if lang}}|{{common string|date-fmt|2={{{patch-beta-month}}}|3={{{patch-beta-day}}}|4={{{patch-beta-year}}}}}]]
+
| patch-beta = [[{{lang date|force=en|1={{{patch-beta-month}}}}} {{{patch-beta-day}}}, {{{patch-beta-year}}} Patch (Beta){{if lang}}|{{date fmt|1={{{patch-beta-month}}}|2={{{patch-beta-day}}}|3={{{patch-beta-year}}}}}]]
  
| blog = [http://www.teamfortress.com/post.php?id={{{blog-id}}} {{common string|date-fmt|2={{{blog-month}}}|3={{{blog-day}}}|4={{{blog-year}}}}}]
+
| blog = [http://www.teamfortress.com/post.php?id={{{blog-id}}} {{date fmt|1={{{blog-month}}}|2={{{blog-day}}}|3={{{blog-year}}}}}]
  
 
| patch-daysago      = {{Days ago|1={{{patch-year}}}|2={{{patch-month}}}|3={{{patch-day}}}}}
 
| patch-daysago      = {{Days ago|1={{{patch-year}}}|2={{{patch-month}}}|3={{{patch-day}}}}}

Revision as of 21:43, 13 January 2012

Documentation for Updates/core

This template takes values from {{Updates}} and displays them in different ways.

Parameters

Links

patch
Provides a lang-formatted proper link to the latest patch article.
patch-beta
Provides a lang-formatted proper link to Patches (Beta).
blog
Provides a lang-formatted proper external link to the latest blog post based on the given ID.

Days ago

patch-daysago, patch-beta-daysago, blog-daysago
Uses {{Days ago}} to render the days since the last patch / blog update (bracketed).

Raw values

The following raw values are available as they are given in {{Updates}} so they can be used anywhere.
| patch-month = 
| patch-day = 
| patch-year = 

| patch-beta-month = 
| patch-beta-day = 
| patch-beta-year = 

| blog-month = 
| blog-day = 
| blog-year = 
| blog-id = 

| wiki-cap-recipient = 

Translation

See also