Difference between revisions of "Template:Updates/core"

From Team Fortress Wiki
Jump to: navigation, search
(Undo edit by Smashman (Talk) (84987))
Line 1: Line 1:
<includeonly><!--
+
<includeonly>{{#switch:{{{1|{{{type|}}}}}}
 +
| patch = {{#switch:{{SUBPAGENAME}}<!--  
  
  # TRANSLATORS:
+
//
 +
// PATCHES
 +
//
  
    - To add a language, simply copy and paste the line from an above existing language and replace it your translation.
+
  // dd mm yyyy -- "Date Month Year" (without comma) DATE FORMATTING -->
    - To add translations of month names, please see Template:Lang date.
+
  | cs
 +
  | de
 +
  | fr
 +
  | pl
 +
  | ro
 +
  | ru = [[{{lang date|force=en|1={{{patch-month}}}}} {{{patch-day}}}, {{{patch-year}}} Patch{{if lang}}|<!--
 +
            -->{{{patch-day}}} {{lang date|1={{{patch-month}}}}} {{{patch-year}}}]]<!--
  
--><div align="right" style="right:25px; top:{{#ifeq:{{FULLPAGENAME}}|Special:RecentChanges|1|3}}em; display:none; font-size:95%;" class="topicon"><!--  
+
  // mm dd, yyyy -- "Month Date, Year" (with comma) DATE FORMATTING <default> -->
 +
  | blank
 +
  | none
 +
  | en
 +
  | #default = [[{{lang date|force=en|1={{{patch-month}}}}} {{{patch-day}}}, {{{patch-year}}} Patch{{if lang}}|<!--
 +
            -->{{lang date|1={{{patch-month}}}}} {{{patch-day}}}, {{{patch-year}}}]]
 +
  }}
  
  # Begin Patches
+
| blog = [http://www.teamfortress.com/post.php?id={{{blog-id}}} {{#switch:{{SUBPAGENAME}}<!--
  
-->[[Image:TF2_crosshair.png|16px|link=Patches{{if lang}}|top]]&#32;{{lang
+
//
 +
// BLOG
 +
//
  
| bg=Последния [[Patches|пач]] беше на
+
  // dd mm yyyy -- "Date Month Year" (without comma) DATE FORMATTING -->
| en=The latest [[Patches|patch]] was on
+
  | cs
| cs=Nejnovější [[Patches/cs|patch]] byl vydán
+
  | de
| de=Das letzte [[Patches/de|Update]] war am
+
  | fr
| fr=Le dernier [[Patches/fr|patch]] date du
+
  | pl
| hu=A legutóbbi [[Patches|patch]] megjelenési napja
+
  | ro
| pl=Najnowszy [[Patches/pl|patch]] został wydany
+
  | ru = {{{blog-day}}} {{lang date|force=de|1={{{blog-month}}}}} {{{blog-year}}}<!--
| ru=Последнее [[Patches/ru|обновление]] игры было
 
| ro=Ultimul [[Patches|patch]] a fost pe
 
  
}}&#32;<span style="font-weight: bold;">{{#switch:{{SUBPAGENAME}}<!-- DD-MM-YYYY formatting for fr and pl - this template defaults to MM-DD-YYYY -->
+
   // mm dd, yyyy -- "Month Date, Year" (with comma) DATE FORMATTING <default> -->
   | de = [[{{lang date|force=en|1={{{patch-month}}}}}&#32;{{{patch-day}}},&#32;{{{patch-year}}}&#32;Patch|{{{patch-day}}}&#32;{{lang date|force=de|1={{{patch-month}}}}}&#32;{{{patch-year}}}]]
+
  | blank
  | fr = [[{{lang date|force=en|1={{{patch-month}}}}}&#32;{{{patch-day}}},&#32;{{{patch-year}}}&#32;Patch|{{{patch-day}}}&#32;{{lang date|force=fr|1={{{patch-month}}}}}&#32;{{{patch-year}}}]]
+
  | none
  | pl = [[{{lang date|force=en|1={{{patch-month}}}}}&#32;{{{patch-day}}},&#32;{{{patch-year}}}&#32;Patch|{{{patch-day}}}&#32;{{lang date|force=pl|1={{{patch-month}}}}}&#32;{{{patch-year}}}]]
+
  | en
  | ru = [[{{lang date|force=en|1={{{patch-month}}}}}&#32;{{{patch-day}}},&#32;{{{patch-year}}}&#32;Patch/ru|{{{patch-day}}}&#32;{{lang date|force=ru|1={{{patch-month}}}}}&#32;{{{patch-year}}}]]
+
  | #default = {{lang date|{{{blog-month}}}}} {{{blog-day}}}, {{{blog-year}}}
  | ro = [[{{lang date|force=ro|1={{{patch-month}}}}}&#32;{{{patch-day}}},&#32;{{{patch-year}}}&#32;Patch|{{{patch-day}}}&#32;{{lang date|force=ro|1={{{patch-month}}}}}&#32;{{{patch-year}}}]]
+
  }}]<!--  
  | cs = [[{{lang date|force=en|1={{{patch-month}}}}}&#32;{{{patch-day}}},&#32;{{{patch-year}}}&#32;Patch|{{{patch-day}}}&#32;{{lang date|force=cs|1={{{patch-month}}}}}&#32;{{{patch-year}}}]]
 
  | blank
 
  | none
 
  | #default = [[{{lang date|force=en|1={{{patch-month}}}}}&#32;{{{patch-day}}},&#32;{{{patch-year}}}&#32;Patch|{{lang date|force=en|1={{{patch-month}}}}}&#32;{{{patch-day}}},&#32;{{{patch-year}}}]]
 
  }}&nbsp;<small>{{Days ago|{{{patch-month}}}|{{{patch-day}}}}}</small></span><!--  
 
  
  # End Patches
+
//
 +
// DAYS AGO
 +
//
  
--><br /><!--  
+
-->
 +
| patch-daysago = {{Days ago|1={{{patch-month}}}|2={{{patch-day}}}}}
 +
| blog-daysago  = {{Days ago|1={{{blog-month}}}|2={{{blog-day}}}}}<!--  
  
  # Begin Blog
+
//
 +
// LOCALIZED TEXT
 +
//
  
-->[[Image:TF2_crosshair.png|16px|link=Patches{{if lang}}|top]]&#32;{{lang
+
-->
 +
| patch-text = {{lang
 +
  | cs = Nejnovější [[Patches/cs|patch]] byl vydán
 +
  | de = Das letzte [[Patches/de|Update]] war am
 +
  | en = The latest [[Patches|patch]] was on
 +
  | fr = Le dernier [[Patches/fr|patch]] date du
 +
  | hu = A legutóbbi [[Patches|patch]] megjelenési napja
 +
  | pl = Najnowszy [[Patches/pl|patch]] został wydany
 +
  | ro = Ultimul [[Patches/ro|patch]] a fost pe
 +
  | ru = Последнее [[Patches/ru|обновление]] игры было
 +
  }}
  
| bg=[[TF2 Official Blog/bg|Блогът]] беше последно обновен на
+
| blog-text = {{lang
| en=The [[TF2 Official Blog|blog]] was last updated on
+
  | cs = [[TF2 Official Blog/cs|Oficiální TF2 blog]] byl naposled aktualizován
| cs=[[TF2 Official Blog/cs|Oficiální TF2 blog]] byl naposled aktualizován
+
  | de = Das letzte Update des [[TF2 Official Blog/de|TF2 Blog]]s war am
| de=Das letzte Update des [[TF2 Official Blog/de|TF2 Blog]]s war am
+
  | en = The [[TF2 Official Blog|blog]] was last updated on
| fr=Le [[TF2 Official Blog/fr|blog]] a été mis à jour le  
+
  | fr = Le [[TF2 Official Blog/fr|blog]] a été mis à jour le  
| hu=A [[TF2 Official Blog/hu|blog]] legutóbbi bejegyzésének megjelenési napja
+
  | hu = A [[TF2 Official Blog/hu|blog]] legutóbbi bejegyzésének megjelenési napja
| pl=[[TF2 Official Blog/pl|Oficjalny blog TF2]] ostatnio zaktualizowano
+
  | pl = [[TF2 Official Blog/pl|Oficjalny blog TF2]] ostatnio zaktualizowano
| ru=Последнее обновление [[TF2 Official Blog/ru|блога]] было
+
  | ro = [[TF2 Official Blog/ro|Blogul]] a fost ultima oară actualizat pe
| ro=[[TF2 Official Blog|Blogul]] a fost ultima oară actualizat pe
+
  | ru = Последнее обновление [[TF2 Official Blog/ru|блога]] было
 +
  }}
  
}}&#32;<span class="plainlinks" style="font-weight: bold;">[http://www.teamfortress.com/post.php?id={{{blog-id}}} {{#switch:{{SUBPAGENAME}} <!-- DD-MM-YYYY formatting for fr and pl - this template defaults to MM-DD-YYYY -->
+
| #default = <span class="error small">ERROR &#123;&#123;[[Template:latest updates|latest updates]]&#125;&#125; failure: no type specified.</span>
  | de = {{{blog-day}}}&#32;{{lang date|force=de|1={{{blog-month}}}}}&#32;{{{blog-year}}}
 
  | fr = {{{blog-day}}}&#32;{{lang date|force=fr|1={{{blog-month}}}}}&#32;{{{blog-year}}}
 
  | pl = {{{blog-day}}}&#32;{{lang date|force=pl|1={{{blog-month}}}}}&#32;{{{blog-year}}}
 
  | ru = {{{blog-day}}}&#32;{{lang date|force=ru|1={{{blog-month}}}}}&#32;{{{blog-year}}}
 
  | ro = {{{blog-day}}}&#32;{{lang date|force=ro|1={{{blog-month}}}}}&#32;{{{blog-year}}}
 
  | cs = {{{blog-day}}}&#32;{{lang date|force=cs|1={{{blog-month}}}}}&#32;{{{blog-year}}}
 
  | blank
 
  | none
 
  | #default = {{lang date|{{{blog-month}}}}}&#32;{{{blog-day}}},&#32;{{{blog-year}}}
 
  }}]&nbsp;<small>{{Days ago|{{{blog-month}}}|{{{blog-day}}}}}</small></span></div><!--
 
  
  # End Template
+
}}</includeonly><noinclude>
 +
{{Translation switching|cs, de, fr, hu, pl, ru}}
 +
* Generates patch & blog update links and text plainly based on the parameter {{code|type}} (or the first unnamed parameter).
 +
* To update dates of blog updates & patches, '''see [[Template:Updates]]'''.
  
--></includeonly><noinclude>
+
== Usage ==
* This page is used to add translations for ''The latest patch was on''. [{{fullurl:Template:Latest_updates|action=edit}} Edit this page] to add language translations.
+
* Date input parameters:
** Please do not localise this template with a new subpage (i.e. do not create Template:Latest updates/ru). Instead add your translations directly to this page.
+
<pre><nowiki>
* To update the actual release dates of patches & blog posts, see [[Template:Updates]].
+
| patch-month =
 +
| patch-day  =
 +
| patch-year  =
 +
| blog-month  =
 +
| blog-day    =
 +
| blog-year  =
 +
| blog-id    =
 +
</nowiki></pre>
 +
* Formatting type parameters: {{code|1=type=}}
 +
** {{code|patch}} for a language link to the patch article for that date.
 +
** {{code|blog}} for a link to the blog post (specified by {{code|blog-id}}).
 +
** {{code|patch-daysago}} and {{code|blog-daysago}} for processing of date input parameters into {{tl|Days ago}}.
 +
* Localized text parameters:
 +
** {{code|patch-text}} for a localized version of "The latest [[Patches|patch]] was on" (language link)
 +
** {{code|blog-text}} for a localized version of "The [[TF2 Official Blog|blog]] was last updated on" (language link)
  
{{Translation switching|bg, cs, de, fr, hu, pl, ru}}
+
[[Category:Templates|Latest updates]]
[[Category:Main Page]]</noinclude>
+
[[Category:Main Page]]
 +
</noinclude>

Revision as of 00:20, 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)