Difference between revisions of "Template:Patch name"

From Team Fortress Wiki
Jump to: navigation, search
m (Test)
m
 
(38 intermediate revisions by 16 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{no-link|}}} | yes | {{lang | {{#if:{{{lang|}}}|force|null}} = {{{lang|}}}
+
<includeonly>{{#ifeq: {{{sort|}}} | yes |<span style="display:none">{{#time:Y-m-d|{{{3|}}}-{{{1|}}}-{{{2|}}}}}</span>}}{{#ifeq: {{{date-only|}}} | yes | {{dictionary/common strings/date-fmt|2={{{1|}}}|3={{{2|}}}|4={{{3|}}}}}
| cs = Patch, {{{2}}} {{lang date|{{{1}}}}} {{{3}}}
+
|{{#ifeq: {{{no-link|}}} | yes
| de = {{{2}}}. {{lang date|{{{1}}}}} {{{3}}} Patch
+
| {{dictionary/common strings/patch-{{{4|default}}}-fmt|1={{{1|07}}}|2={{{2|13}}}|3={{{3|2012}}}|{{#if:{{{lang|}}}|lang|null}}={{{lang|{{{force|}}}}}}}}
| en = {{lang date|{{{1}}}}} {{{2}}}, {{{3}}} Patch
+
| [[{{{link|{{lang date|force=en|1={{{1}}}}} {{{2}}}, {{{3}}} Patch{{#if: {{{4|}}}|{{dictionary/common strings/patch-suffix|{{{4}}}}}}}{{if lang}}}}}|{{dictionary/common strings/patch-{{#ifeq: {{{date|}}}|true|date-}}{{{4|default}}}-fmt|1={{{1|07}}}|2={{{2|13}}}|3={{{3|2012}}}|{{#if:{{{lang|}}}|lang|null}}={{{lang|{{{force|}}}}}}}}]]
| it = Patch del {{{2}}} {{lang date|{{{1}}}}} {{{3}}}
+
}}}}</includeonly><noinclude>
| es = Parche del {{{2}}} {{lang date|{{{1}}}}} {{{3}}}
+
{{Complex template}}
| fi = {{{2}}}. {{lang date|{{{1}}}}} {{{3}}} -päivitys
+
{{translation switching|en, ar, cs, da, de, es, fi, fr, hu, it, ja, ko, nl, no, pl, pt, pt-br, ro, ru, sv, tr, zh-hans, zh-hant}}
| fr = Patch du {{{2}}} {{lang date|{{{1}}}}} {{{3}}}
 
| ja = {{lang date|{{{1}}}}} {{{2}}}, {{{3}}} パッチ]]をご覧ください。
 
| ko = {{{3}}}년 {{{1}}}월 {{{2}}}일 패치]]를 보세요.
 
| nl = {{{2}}} {{lang date|{{{1}}}}} {{{3}}} Patch
 
| no = {{{2}}} {{lang date|{{{1}}}}} {{{3}}} Patch
 
| pl = Aktualizacja z {{{2}}} {{lang date|{{{1}}}}} {{{3}}}
 
| pt = Patch de {{{2}}} de {{lang date|{{{1}}}}} de {{{3}}}
 
| pt-br = Atualização de {{#ifexpr: {{{2}}} < 4 | {{{2}}}º | {{{2}}} }} de {{lang date|{{{1}}}}} de {{{3}}}
 
| ro = {{{2}}} {{lang date|{{{1}}}}} {{{3}}} Patch
 
| ru = Обновление от {{{2}}} {{lang date|{{{1}}}}} {{{3}}}
 
| sv = {{lang date|{{{1}}}}} {{{2}}}, {{{3}}} Patch
 
| tr = {{{2}}} {{lang date|{{{1}}}}} {{{3}}} Patch
 
| zh-hans = {{lang date|{{{1}}}}} {{{2}}}, {{{3}}} Patch
 
| zh-hant = {{{3}}}年{{{1}}}月{{{2}}}日]]更新。
 
}} | [[{{lang date|force=en|1={{{1}}}}} {{{2}}}, {{{3}}} Patch{{if lang}}|{{lang | {{#if:{{{lang|}}}|force|null}} = {{{lang|}}}
 
| cs = Patch, {{{2}}} {{lang date|{{{1}}}}} {{{3}}}
 
| de = {{{2}}}. {{lang date|{{{1}}}}} {{{3}}} Patch
 
| en = {{lang date|{{{1}}}}} {{{2}}}, {{{3}}} Patch
 
| it = Patch del {{{2}}} {{lang date|{{{1}}}}} {{{3}}}
 
| es = Parche del {{{2}}} {{lang date|{{{1}}}}} {{{3}}}
 
| fi = {{{2}}}. {{lang date|{{{1}}}}} {{{3}}} -päivitys
 
| fr = Patch du {{{2}}} {{lang date|{{{1}}}}} {{{3}}}
 
| ja = {{lang date|{{{1}}}}} {{{2}}}, {{{3}}} パッチ]]をご覧ください。
 
| ko = {{{3}}}년 {{{1}}}월 {{{2}}}일 패치]]를 보세요.
 
| nl = {{{2}}} {{lang date|{{{1}}}}} {{{3}}} Patch
 
| no = {{{2}}} {{lang date|{{{1}}}}} {{{3}}} Patch
 
| pl = Aktualizacja z {{{2}}} {{lang date|{{{1}}}}} {{{3}}}
 
| pt = Patch de {{{2}}} de {{lang date|{{{1}}}}} de {{{3}}}
 
| pt-br = Atualização de {{#ifexpr: {{{2}}} < 4 | {{{2}}}º | {{{2}}} }} de {{lang date|{{{1}}}}} de {{{3}}}
 
| ro = {{{2}}} {{lang date|{{{1}}}}} {{{3}}} Patch
 
| ru = Обновление от {{{2}}} {{lang date|{{{1}}}}} {{{3}}}
 
| sv = {{lang date|{{{1}}}}} {{{2}}}, {{{3}}} Patch
 
| tr = {{{2}}} {{lang date|{{{1}}}}} {{{3}}} Patch
 
| zh-hans = {{lang date|{{{1}}}}} {{{2}}}, {{{3}}} Patch
 
| zh-hant = {{{3}}}年{{{1}}}月{{{2}}}]]更新。
 
}}]]}}</includeonly><noinclude>
 
{{translation switching|All languages, except (ar, da, hu)}}
 
 
{{doc begin}}
 
{{doc begin}}
Dates should be inputted in MM-DD-YYYY format with no leading zeros (e.g. {{tlx|patch name|month|day|year}}).
+
Dates should be inputted in MM-DD-YYYY format with no leading zeros (e.g. {{tlx|patch name|month|day|year}}). To edit the date formatting and month names for each language, see '''{{tl|dictionary/common strings}}'''.
  
 
=== Usage ===
 
=== Usage ===
* {{tlx|patch name|4|15|2011}} (where {{code|4}} is the month of April, {{code|15}} is the date and {{code|2011}} the year) produces: [[April 15, 2011 Patch|April 15, 2011 Patch]]
+
* {{tlx|patch name|04|15|2011}} (where {{code|04}} is the month of April, {{code|15}} is the day and {{code|2011}} the year) produces: {{patch name|04|15|2011}}
* {{tlx|patch name|4|15|2011}} on [[Page/pt-br]] produces: [[April 15, 2011 Patch/pt-br|Atualização de 15 de abril de 2011]]
+
* {{tlx|patch name|04|15|2011}} on [[Page/pt-br]] would produce: {{patch name|04|15|2011|lang=pt-br}}
* {{tlx|patch name|4|15|2011|no-link=yes}} produces: April 15, 2011 Patch
+
* {{tlx|patch name|04|15|2011|5=no-link=yes}} produces: {{patch name|04|15|2011|no-link=yes}}
 +
* {{tlx|patch name|04|15|2011|5=link=Test}} produces: {{patch name|04|15|2011|link=Test}}
 +
* {{tlx|patch name|04|15|2011|5=date=true}} produces: {{patch name|04|15|2011|date=true}} (link label contains the date only)
 +
* {{tlx|patch name|04|15|2011|5=date-only=yes}} produces: {{patch name|04|15|2011|date-only=yes}} (no links to patches and label only contains the date. Useful for events not associated with patches)
 +
* {{tlx|patch name|04|15|2011|5=sort=yes}} will add an invisible string ''2011-04-15'' at the start of the result. This can be useful in sortable tables
 +
* {{tlx|patch name|April|15|2011}} produces: {{patch name|April|15|2011}} ('''English''' month names work)
 +
* {{tlx|patch name|4|15|2011}} produces: {{patch name|4|15|2011}} ('''Single-digit''' month numbers work)
 +
* {{tlx|patch name|04|15|2011|in-the}} produces: {{patch name|4|15|2011|in-the}} (No difference in English, but useful in languages for which the wording is different in sentences of the type "In the '''April 15th Patch''', something happened".)
 +
You can also indicate if patch is beta:
 +
* {{tlx|patch name|11|18|2011|beta}} produces: {{patch name|11|18|2011|beta}}
 +
* {{tlx|patch name|11|18|2011|5=beta|6=no-link=yes}} produces: {{patch name|11|18|2011|beta|no-link=yes}}
 +
Or a Xbox patch:
 +
* {{tlx|patch name|07|21|2009|xbox}} produces: {{patch name|07|21|2009|xbox}}
 +
* {{tlx|patch name|07|21|2009|5=xbox|6=no-link=yes}} produces: {{patch name|07|21|2009|xbox|no-link=yes}}
 +
Or a Classic patch:
 +
* {{tlx|patch name|03|23|2004|classic}} produces: {{patch name|03|23|2004|classic}}
 +
* {{tlx|patch name|03|23|2004|5=classic|6=no-link=yes}} produces: {{patch name|03|23|2004|classic|no-link=yes}}
  
 
[[Category:Templates|Patch name]]
 
[[Category:Templates|Patch name]]
 
</noinclude>
 
</noinclude>

Latest revision as of 16:35, 27 January 2024

Documentation for Patch name

Dates should be inputted in MM-DD-YYYY format with no leading zeros (e.g. {{patch name|month|day|year}}). To edit the date formatting and month names for each language, see {{dictionary/common strings}}.

Usage

You can also indicate if patch is beta:

Or a Xbox patch:

Or a Classic patch: