Difference between revisions of "Template:Patch layout"
m (fixed) |
m (Adding in xbox logic (from sandbox)) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{{displaytitle|}}}||{{#if:{{{year|}}}|{{DISPLAYTITLE:{{patch name|{{{month}}}|{{{day}}}|{{{year}}}|date=true|no-link=yes}}}}}}}}</includeonly>{{Navbox | + | <includeonly>{{#if:{{{displaytitle|}}}||{{#if:{{{year|}}}|{{DISPLAYTITLE:{{patch name|{{{month}}}|{{{day}}}|{{{year}}}|date=true|no-link=yes|{{#if:{{{game|}}}|4|void}}={{#switch:{{{game}}}|tf2beta=beta|tfc=classic|xbox=xbox}}}}}}}}}}</includeonly>{{Navbox |
| bodystyle = margin-bottom: 0.75em; border: 1px solid #aaa; | | bodystyle = margin-bottom: 0.75em; border: 1px solid #aaa; | ||
Line 7: | Line 7: | ||
| tfc = Patches (Classic) | | tfc = Patches (Classic) | ||
| tf2beta = Patches (Beta) | | tf2beta = Patches (Beta) | ||
+ | | xbox = Patches (Xbox) | ||
| #default = Patches | | #default = Patches | ||
}}{{if lang}}|{{lang | }}{{if lang}}|{{lang | ||
Line 33: | Line 34: | ||
}}]]{{#switch:{{lc:{{{game|}}}}} | }}]]{{#switch:{{lc:{{{game|}}}}} | ||
| tfc | | tfc | ||
+ | | xbox | ||
| tf2beta = {{ns:0}}<!-- Hide this for TFC and TF2 Beta patches --> | | tf2beta = {{ns:0}}<!-- Hide this for TFC and TF2 Beta patches --> | ||
| #default = <span style="color:#555;"> ([[{{lang date|force=en|1={{updates|type=patch-month}}}} {{updates|type=patch-day}}, {{updates|type=patch-year}} Patch{{if lang}}|{{lang | | #default = <span style="color:#555;"> ([[{{lang date|force=en|1={{updates|type=patch-month}}}} {{updates|type=patch-day}}, {{updates|type=patch-year}} Patch{{if lang}}|{{lang | ||
Line 65: | Line 67: | ||
| col1 = ← {{#if: {{{before|}}} | {{{before}}} | {{common string|N/A}}}} | | col1 = ← {{#if: {{{before|}}} | {{{before}}} | {{common string|N/A}}}} | ||
− | | col2 = '''{{#if: {{{year|}}}|{{patch name|{{{month}}}|{{{day}}}|{{{year}}}|date=true|no-link=yes}}|{{{current|{{BASEPAGENAME}}}}}}}''' | + | | col2 = '''{{#if:{{{year|}}}|{{patch name|{{{month}}}|{{{day}}}|{{{year}}}|date=true|no-link=yes|{{#if:{{{game|}}}|4|void}}={{#switch:{{{game}}}|tf2beta=beta|tfc=classic|xbox=xbox}}}}|{{{current|{{BASEPAGENAME}}}}}}}''' |
| col3 = {{#if: {{{after|}}} | {{{after}}} | {{common string|N/A}}}} → | | col3 = {{#if: {{{after|}}} | {{{after}}} | {{common string|N/A}}}} → | ||
Line 130: | Line 132: | ||
| nl = TF2-bètaforums | | nl = TF2-bètaforums | ||
| pt-br = Fóruns de TF2 Beta | | pt-br = Fóruns de TF2 Beta | ||
+ | | ru = Форум TF2 Бета | ||
}}]{{if lang|1=|2= {{lang icon|en}}}} | }}]{{if lang|1=|2= {{lang icon|en}}}} | ||
| {{lang | | {{lang | ||
Line 265: | Line 268: | ||
| tfc = Patches (Classic) | | tfc = Patches (Classic) | ||
| tf2beta = Patches (Beta) | | tf2beta = Patches (Beta) | ||
+ | | xbox = Xbox 360 | ||
| #default = Patches | | #default = Patches | ||
}}}} | | }}}} | |
Revision as of 21:45, 8 March 2015
|
Note: No source link has been provided.
Contents
Patch notes
{{{notes}}}
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Patch layout/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: fi, pt-br, ru (add) |
Usage
Please see Help:Patch notes for full instructions on adding patch notes to the wiki.
This template keeps the style of patch note pages consistent. This template supersedes {{Patch}}
and {{Succession box}}
.
This template uses other helper templates for some parts of its translation. See also: {{Patch layout/Diff header}}
Parameters
Parameter | Example | Required? | Description |
---|---|---|---|
notes
|
|
yes | The actual patch notes. |
game
|
tfc
|
no | This isn't necessary for TF2 patches. If set to "tfc ", this will change the links and categories accordingly (i.e. link to Patches (Classic)) and categorize into Category:Patches (Classic).
|
Next / Previous | |||
before
|
August 2, 2010 Patch
|
yes | A link to the previous patch. |
day , month , year
|
17 . august , 2010
|
Automatically set by WindBOT | The date the current patch was released on. Required for translated patches in order to have DISPLAYTITLE automatically populated.
|
after
|
August 20, 2010 Patch
|
yes | A link to the next patch. If none, put N/A. |
Sources | |||
source<n>
|
http://store.steampowered.com/news/4102/
|
yes | The URL of the Steam news article on the patch. Supports up to 3 individual sources. |
source<n>-title
|
22 Jul 2010 – Team Fortress 2 Update Released
|
no | Optional name override on source link. Supports up to 3 individual sources. |
updatelink
|
http://www.teamfortress.com/war/part1/index.htm
|
no | URL of official update page (only for major updates). |
update
|
The WAR! Update
|
no | Name of major update to be displayed with the link. |
Diffs | |||
Nothing | If it exists, the page at Template:PatchDiff/Patch page name will be transcluded. If Template:PatchDiff/Patch page name n exists, where n is an integer, it will also be transcluded.
| ||
hide-diff
|
| hide-diff = yes
|
no | Override to not transclude the patch diff. |
Other | |||
displaytitle
|
| displaytitle = no
|
no | Template will automatically set the displayed title of the page (i.e. {{DISPLAYTITLE:Title}} ) unless this is parameter is defined. The automatic title used is the text of the current parameter; if this is not defined, no display title is set.
|
no-category
|
| no-category = yes
|
no | Disables automatic categorization. Should be used for pages such as user sandboxes. |
crowdin
|
| crowdin = yes
|
no | Removes automatic {{lang icon}} from patches that have been translated and published on Steam.
|
Examples
{{Patch layout | source = http://store.steampowered.com/news/4102/ | source-title = Team Fortress 2 Update Released | before = [[July 19, 2010 Patch]] | after = [[July 23, 2010 Patch]] | notes = === Server Browser === * Fixed the server browser not saving filter settings properly === Team Fortress 2 === * Fixed a speed exploit related to benchmarks * Fixed Parasite hat not being posed correctly on class loadout panels * Fixed a level change crash }}