Difference between revisions of "Template:Patch name"

From Team Fortress Wiki
Jump to: navigation, search
(+support for xbox 360 patches)
m (Test)
Line 1: Line 1:
 
<includeonly>{{#ifeq: {{{no-link|}}} | yes
 
<includeonly>{{#ifeq: {{{no-link|}}} | yes
| {{dictionary/common strings/patch-{{#ifeq: {{{4|}}}|beta|beta-|{{#ifeq: {{{4|}}}|xbox|xbox-}}}}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{{#ifeq: {{{4|}}}|beta|_(Beta)|{{#ifeq: {{{4|}}}|xbox|_(Xbox)}}}}{{if lang}}}}}|{{dictionary/common strings/patch{{#if:{{{date|}}}|-date}}-{{#ifeq: {{{4|}}}|beta|beta-|{{#ifeq: {{{4|}}}|xbox|xbox-}}}}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{{#if:{{{date|}}}|-date}}-{{#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 18: Line 18:
 
* {{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=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}}
 
* {{tlx|patch name|11|18|2011|5=beta|6=link=Test}} produces: {{patch name|11|18|2011|beta|link=Test}}
Or a Xbox patch:
 
* {{tlx|patch name|11|18|2011|xbox}} produces: {{patch name|11|18|2011|xbox}}
 
* {{tlx|patch name|11|18|2011|5=xbox|6=no-link=yes}} produces: {{patch name|11|18|2011|xbox|no-link=yes}}
 
* {{tlx|patch name|11|18|2011|5=xbox|6=link=Test}} produces: {{patch name|11|18|2011|xbox|link=Test}}
 
  
 
[[Category:Templates|Patch name]]
 
[[Category:Templates|Patch name]]
 
</noinclude>
 
</noinclude>

Revision as of 12:41, 20 February 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: