Difference between revisions of "Template:Updates/core"

From Team Fortress Wiki
Jump to: navigation, search
m
 
(44 intermediate revisions by 20 users not shown)
Line 1: Line 1:
<includeonly><!--
+
<includeonly>{{#switch:{{{1|{{{type|}}}}}}
  
  # TRANSLATORS:
+
| 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}}}}}]]
  
    - To add a language, simply copy and paste the line from an above existing language and replace it your translation.
+
| 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}}}}}]]
    - To add translations of month names, please see Template:Lang date.
 
  
--><div align="right" style="right:25px; top:1.5em; display:none; font-size:95%;" class="topicon"><!--  
+
| blog = [https://www.teamfortress.com/post.php?id={{{blog-id}}} {{date fmt|1={{{blog-month}}}|2={{{blog-day}}}|3={{{blog-year}}}}}]
  
  # Begin Patches
+
| patch-daysago      = {{Days ago|1={{{patch-year}}}|2={{{patch-month}}}|3={{{patch-day}}}}}
 +
| patch-beta-daysago = {{Days ago|1={{{patch-beta-year}}}|2={{{patch-beta-month}}}|3={{{patch-beta-day}}}}}
 +
| blog-daysago      = {{Days ago|1={{{blog-year}}}|2={{{blog-month}}}|3={{{blog-day}}}}}
  
-->[[Image:TF2_crosshair.png|16px|link=Patches{{if lang}}|top]]&#32;{{lang
+
| patch-month = {{{patch-month|}}}
 +
| patch-day = {{{patch-day|}}}
 +
| patch-year = {{{patch-year|}}}
 +
| patch-num = {{{patch-num|}}}
  
| bg=Последния [[Patches|пач]] беше на
+
| patch-beta-month = {{{patch-beta-month|}}}
| en=The latest [[Patches|patch]] was on
+
| patch-beta-day = {{{patch-beta-day|}}}
| cs=Nejnovější [[Patches/cs|patch]] byl vydán
+
| patch-beta-year = {{{patch-beta-year|}}}
| de=Das letzte [[Patches/de|Update]] war am
+
| patch-beta-num = {{{patch-beta-num|}}}
| fr=Le dernier [[Patches/fr|patch]] date du
 
| hu=A legutóbbi [[Patches|patch]] megjelenési napja
 
| pl=Najnowszy [[Patches/pl|patch]] został wydany
 
| 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 -->
+
| blog-month = {{{blog-month|}}}
  | 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}}}]]
+
| blog-day = {{{blog-day|}}}
  | 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}}}]]
+
| blog-year = {{{blog-year|}}}
  | 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}}}]]
+
| blog-id = {{{blog-id|}}}
  | 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}}}]]
 
  | 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
+
| community-title   = {{{community-title|}}}
 +
| community-article = {{{community-article|}}}
 +
| community-blog    = https://store.steampowered.com/news/app/440/view/{{{community-id}}}
 +
| community-start  = {{{community-start|}}}
 +
| community-end    = {{{community-end|}}}
  
--><br /><!--  
+
| wiki-cap-recipient = {{{wiki-cap-recipient|}}}
  
  # Begin Blog
+
| #default = <span class="error small">ERROR {{tl|Updates/core}}: type doesn't match.</span>
  
-->[[Image:TF2_crosshair.png|16px|link=Patches{{if lang}}|top]]&#32;{{lang
+
}}</includeonly><noinclude>
 +
{{doc begin}}
 +
This template takes values from '''{{tl|Updates}}''' and displays them in different ways.
  
| bg=[[TF2 Official Blog/bg|Блогът]] беше последно обновен на
+
=== Parameters ===
| en=The [[TF2 Official Blog|blog]] was last updated on
+
'''Links'''
| 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
 
| 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
 
| pl=[[TF2 Official Blog/pl|Oficjalny blog TF2]] ostatnio zaktualizowano
 
| ru=Последнее обновление [[TF2 Official Blog/ru|блога]] было
 
| ro=[[TF2 Official Blog|Blogul]] a fost ultima oară actualizat pe
 
  
}}&#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 -->
+
:; ''patch''
  | de = {{{blog-day}}}&#32;{{lang date|force=de|1={{{blog-month}}}}}&#32;{{{blog-year}}}
+
:: Provides a lang-formatted proper link to the latest patch article.
  | 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
+
:; ''patch-beta''
 +
:: Provides a lang-formatted proper link to [[Patches (Beta)]].
  
--></includeonly><noinclude>
+
:; ''blog''
* 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.
+
:: Provides a lang-formatted proper external link to the latest blog post based on the given ID.
** 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.
 
* To update the actual release dates of patches & blog posts, see [[Template:Updates]].
 
  
{{Translation switching|bg, cs, de, fr, hu, pl, ru}}
+
'''Days ago'''
[[Category:Main Page]]</noinclude>
+
 
 +
:; ''patch-daysago'', ''patch-beta-daysago'', ''blog-daysago''
 +
:: Uses {{tl|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 {{tl|Updates}} so they can be used anywhere.
 +
 
 +
<pre>
 +
| patch-month =
 +
| patch-day =
 +
| patch-year =
 +
 
 +
| patch-beta-month =
 +
| patch-beta-day =
 +
| patch-beta-year =
 +
 
 +
| blog-month =
 +
| blog-day =
 +
| blog-year =
 +
| blog-id =
 +
 
 +
| community-title =
 +
| community-article =
 +
| community-blog =
 +
| community-start =
 +
| community-end =
 +
 
 +
| wiki-cap-recipient =
 +
</pre>
 +
 
 +
=== Translation ===
 +
* To edit date formats, see [[Template:Dictionary/common strings#patch names]].
 +
 
 +
=== See also ===
 +
* {{tl|Updates}}
 +
* {{tl|Days ago}}
 +
 
 +
[[Category:Templates|Updates/core]]
 +
[[Category:Main Page]]
 +
</noinclude>

Latest revision as of 16:19, 15 June 2024

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 = 

| community-title = 
| community-article =
| community-blog = 
| community-start = 
| community-end = 

| wiki-cap-recipient = 

Translation

See also