Difference between revisions of "Template:Updates/core"

From Team Fortress Wiki
Jump to: navigation, search
(Testing (# days ago) functionality, will revert if it fails.)
m
 
(102 intermediate revisions by 27 users not shown)
Line 1: Line 1:
<div align="right" style="right:25px; top: 14px; display:none; font-size:1em; font-style: italic;" class="topicon">
+
<includeonly>{{#switch:{{{1|{{{type|}}}}}}
[[File:Tf2-logo-transparent.png|18px|link=Patches]] The latest [[Patches|patch]] was on '''[[{{#switch: {{{MONTH}}}
+
 
|1=January
+
| 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}}}}}]]
|2=February
+
 
|3=March
+
| 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}}}}}]]
|4=April
+
 
|5=May
+
| blog = [https://www.teamfortress.com/post.php?id={{{blog-id}}} {{date fmt|1={{{blog-month}}}|2={{{blog-day}}}|3={{{blog-year}}}}}]
|6=June
+
 
|7=July
+
| patch-daysago      = {{Days ago|1={{{patch-year}}}|2={{{patch-month}}}|3={{{patch-day}}}}}
|8=August
+
| patch-beta-daysago = {{Days ago|1={{{patch-beta-year}}}|2={{{patch-beta-month}}}|3={{{patch-beta-day}}}}}
|9=September
+
| blog-daysago      = {{Days ago|1={{{blog-year}}}|2={{{blog-month}}}|3={{{blog-day}}}}}
|10=October
+
 
|11=November
+
| patch-month = {{{patch-month|}}}
|12=December}} {{{DAY}}}, {{#switch: {{{YEAR}}}
+
| patch-day = {{{patch-day|}}}
|10=2010
+
| patch-year = {{{patch-year|}}}
|09=2009
+
| patch-num = {{{patch-num|}}}
|08=2008}} Patch|{{#switch: {{{MONTH}}}
+
 
|1=January
+
| patch-beta-month = {{{patch-beta-month|}}}
|2=February
+
| patch-beta-day = {{{patch-beta-day|}}}
|3=March
+
| patch-beta-year = {{{patch-beta-year|}}}
|4=April
+
| patch-beta-num = {{{patch-beta-num|}}}
|5=May
+
 
|6=June
+
| blog-month = {{{blog-month|}}}
|7=July
+
| blog-day = {{{blog-day|}}}
|8=August
+
| blog-year = {{{blog-year|}}}
|9=September
+
| blog-id = {{{blog-id|}}}
|10=October
+
 
|11=November
+
| community-title  = {{{community-title|}}}
|12=December}} {{{DAY}}}, {{#switch: {{{YEAR}}}
+
| community-article = {{{community-article|}}}
|10=2010
+
| community-blog    = https://store.steampowered.com/news/app/440/view/{{{community-id}}}
|09=2009
+
| community-start  = {{{community-start|}}}
|08=2008}}]] <small>({{#expr:{{CURRENTDAY}}-{{{DAY|15}}}}} day{{#if:{{{DAY}}}==1|s|}} ago)</small>'''
+
| community-end    = {{{community-end|}}}
<br>
+
 
[[File:Tf2-logo-transparent.png|18px|link=TF2 Official Blog]] The [[TF2 Official Blog|blog]] was last updated on '''<span class="plainlinks">[http://www.tf2.com/post.php?id={{{BID}}} {{#switch: {{{BMONTH}}}
+
| wiki-cap-recipient = {{{wiki-cap-recipient|}}}
|1=January
+
 
|2=February
+
| #default = <span class="error small">ERROR {{tl|Updates/core}}: type doesn't match.</span>
|3=March
+
 
|4=April
+
}}</includeonly><noinclude>
|5=May
+
{{doc begin}}
|6=June
+
This template takes values from '''{{tl|Updates}}''' and displays them in different ways.
|7=July
+
 
|8=August
+
=== Parameters ===
|9=September
+
'''Links'''
|10=October
+
 
|11=November
+
:; ''patch''
|12=December}} {{{BDAY}}}, {{#switch: {{{BYEAR}}}
+
:: Provides a lang-formatted proper link to the latest patch article.
|10=2010
+
 
|09=2009
+
:; ''patch-beta''
|08=2008}}]<small>({{#expr:{{CURRENTDAY}}-{{{BDAY|15}}}}} day{{#if:{{{BDAY}}}==1|s|}} ago)</small></span>'''
+
:: Provides a lang-formatted proper link to [[Patches (Beta)]].
</div>
+
 
 +
:; ''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 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