Difference between revisions of "Template:Patch name"

From Team Fortress Wiki
Jump to: navigation, search
m (Usage)
(now supports beta patches)
Line 1: Line 1:
 
<includeonly>{{#ifeq: {{{no-link|}}} | yes
 
<includeonly>{{#ifeq: {{{no-link|}}} | yes
| {{dictionary/common strings/patch-fmt|1={{{1|07}}}|2={{{2|13}}}|3={{{3|2012}}}|{{#if:{{{lang|}}}|lang|null}}={{{lang|{{{force|}}}}}}}}
+
| {{dictionary/common strings/patch-{{#ifeq: {{{4|}}}|beta|beta-}}fmt|1={{{1|07}}}|2={{{2|13}}}|3={{{3|2012}}}|{{#if:{{{lang|}}}|lang|null}}={{{lang|{{{force|}}}}}}}}
| [[{{{link|{{lang date|force=en|1={{{1}}}}} {{{2}}}, {{{3}}} Patch{{if lang}}}}}|{{dictionary/common strings/patch-fmt|1={{{1|07}}}|2={{{2|13}}}|3={{{3|2012}}}|{{#if:{{{lang|{{{force|}}}}}}|lang|null}}={{{lang|{{{force|}}}}}}}}]]
+
| [[{{{link|{{lang date|force=en|1={{{1}}}}} {{{2}}}, {{{3}}} Patch{{#ifeq: {{{4|}}}|beta|_(Beta)}}{{if lang}}}}}|{{dictionary/common strings/patch-{{#ifeq: {{{4|}}}|beta|beta-}}fmt|1={{{1|07}}}|2={{{2|13}}}|3={{{3|2012}}}|{{#if:{{{lang|{{{force|}}}}}}|lang|null}}={{{lang|{{{force|}}}}}}}}]]
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{translation switching|All languages, except (ar, da, hu)}}
 
{{translation switching|All languages, except (ar, da, hu)}}
Line 13: Line 13:
 
* {{tlx|patch name|4|15|2011|5=link=Test}} produces: {{patch name|4|15|2011|link=Test}}
 
* {{tlx|patch name|4|15|2011|5=link=Test}} produces: {{patch name|4|15|2011|link=Test}}
 
* {{tlx|patch name|April|15|2011}} produces: {{patch name|April|15|2011}} (english month names work)
 
* {{tlx|patch name|April|15|2011}} produces: {{patch name|April|15|2011}} (english month names work)
 +
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}}
 +
* {{tlx|patch name|11|18|2011|5=beta|6=link=Test}} produces: {{patch name|11|18|2011|beta|link=Test}}
  
 
[[Category:Templates|Patch name]]
 
[[Category:Templates|Patch name]]
 
</noinclude>
 
</noinclude>

Revision as of 09:27, 15 January 2012

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: