Difference between revisions of "Template:Updates/core"

From Team Fortress Wiki
Jump to: navigation, search
m
m (+ community-article)
 
(77 intermediate revisions by 26 users not shown)
Line 1: Line 1:
<!--
+
<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: 14px; display:none; font-size:1em; font-style: italic;" class="topicon"><!--  
+
| blog = [http://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}}}}}
  
-->[[File:Tf2-logo-transparent.png|18px|link=Patches|top]]&#32;{{lang
+
| patch-month = {{{patch-month|}}}
 +
| patch-day = {{{patch-day|}}}
 +
| patch-year = {{{patch-year|}}}
 +
| patch-num = {{{patch-num|}}}
  
| en=The latest [[Patches|patch]] was on
+
| patch-beta-month = {{{patch-beta-month|}}}
| cs=Nejnovější [[Patches/cs|patch]] byl vydán
+
| patch-beta-day = {{{patch-beta-day|}}}
| de=Das letzte [[Patches/de|Update]] wurde am
+
| patch-beta-year = {{{patch-beta-year|}}}
| fr=Le dernier [[Patches/fr|patch]] date du
+
| patch-beta-num = {{{patch-beta-num|}}}
| hu=A legutóbbi [[Patches|patch]] megjelenési napja
 
| pl=Najnowszy [[Patches|patch]] został wydany
 
| ru=Последнее [[Patches/ru|обновление]] игры
 
  
}}&#32;'''[[{{lang date|force=en|{{{patch-month|}}}}} {{{patch-day}}}, {{{patch-year}}} Patch|{{lang date|{{{patch-month|}}}}} {{{patch-day}}}, {{{patch-year}}}]]&nbsp;<small>{{Days ago|{{{patch-month}}}|{{{patch-day}}}}}</small>'''<!--
+
| blog-month = {{{blog-month|}}}
 +
| blog-day = {{{blog-day|}}}
 +
| blog-year = {{{blog-year|}}}
 +
| blog-id = {{{blog-id|}}}
  
   # 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>
  
-->[[File:Tf2-logo-transparent.png|18px|link=Patches|top]]&#32;{{lang
+
}}</includeonly><noinclude>
 +
{{doc begin}}
 +
This template takes values from '''{{tl|Updates}}''' and displays them in different ways.
  
| en=The [[TF2 Official Blog|blog]] was last updated on
+
=== Parameters ===
| cs=[[TF2 Official Blog/cs|Oficiální TF2 blog]] byl naposled aktualizovaný
+
'''Links'''
| de=Der [[TF2 Official Blog/de|TF2 Blog]] wurde das letzte mal am
 
| fr=Le [[TF2 Official Blog/fr|blog TF2 officiel]] a été mis à jour pour la dernière fois le
 
| hu=A [[TF2 Official Blog/hu|blog]] legutóbbi bejegyzésének megjelenési napja
 
| pl=[[TF2 Official Blog|Oficjalny blog TF2]] został ostatnio zaktualizowany
 
| ru=Последнее обновление [[TF2 Official Blog/ru|блога]]
 
  
}}&#32;'''<span class="plainlinks">[http://www.teamfortress.com/post.php?id={{{blog-id}}} {{lang date|{{{blog-month}}}}} {{{blog-day}}}, {{{blog-year}}}]</span>&nbsp;<small>{{Days ago|{{{blog-month}}}|{{{blog-day}}}}}'''</small></div><!--  
+
:; ''patch''
 +
:: Provides a lang-formatted proper link to the latest patch article.
  
  # End Template
+
:; ''patch-beta''
 +
:: Provides a lang-formatted proper link to [[Patches (Beta)]].
  
--><noinclude>[[Category:Templates that use translation switching|Latest updates]]</noinclude>
+
:; ''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 {{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 15:08, 1 June 2023

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