Template:Patch layout: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
mNo edit summary
(Extra navbox for when tools and patches share apage)
Line 58: Line 58:
  }}
  }}
}}
}}
{{#if: {{{navbox2|}}}|
{{Navbox
| bodystyle  = margin-bottom: 0.75em; border: 1px solid #aaa;
| groupstyle = font-size: 105%; background: #B2D7E9;
| group1 = [[Patches{{if lang}}|{{lang
  | ar = تحديثات
  | cs = Patche
  | de = Patches
  | en = Patches
  | es = Parches
  | fi = Päivitykset
  | fr = Patchs
  | hu = Patchek
  | it = Patch
  | ja = パッチ
  | ko = 패치
  | nl = Patches
  | pl = Łatki
  | pt = Atualizações
  | pt-br = Atualizações
  | ro = Actualizări
  | ru = Обновления
  | sv = Patchar
  | zh-hans = 更新
  | zh-hant = 更新
  }}]]{{#switch:{{lc:{{{game|}}}}}
  | portal
  | tools = {{ns:0}}<!-- Hide this for Portal and tool patches -->
  | <span style="color:#555;">&nbsp;([[{{lang date|force=en|1={{updates|type=patch-month}}}} {{updates|type=patch-day}}, {{updates|type=patch-year}} Patch{{if lang}}|{{lang
    | ar = أخرى
    | de = neuester
    | en = latest
    | es = última
    | fr = dernier
    | it = ultima
    | ja = 最新
    | nl = nieuwste
    | pl = najnowsza
    | pt = última
    | pt-br = última
    | ro = ultima
    | ru = последнее
    | zh-hans = 最新
    | zh-hant = 最新
    }}]])</span>
  }}
| list1  = {{Navbox with columns|child
| colstyle  = background: #DEE8ED; text-align: center; font-size: 105%;
| fullwidth = true
| col1 = ←&nbsp;{{{before2}}}
| col2 = '''{{{current2|{{BASEPAGENAME}}}}}'''
| col3 = {{{after2}}}&nbsp;→
}}
}}
|}}
<div style="background-color: #FDFAF8; border: 1px solid #aaa; margin: 0.75em 0; padding: 0.75em 1em; padding-bottom: 1em;">
<div style="background-color: #FDFAF8; border: 1px solid #aaa; margin: 0.75em 0; padding: 0.75em 1em; padding-bottom: 1em;">
{{hatnote
{{hatnote

Revision as of 20:57, 17 May 2011


Note: No source link has been provided.

Patch notes

{{{notes}}}

Note: portions of the template sample may not be visible without values provided. This is normal.

Documentation for Patch layout

Usage

Please see Help:Updates for full instructions on adding patch notes to the wiki.

This template keeps the style of patch note pages consistent.

Parameters

Parameter Example Required? Description
notes

* Fixed bug that caused a crash.

* Added a new hat.

yes The actual patch notes.
game portal no This isn't necessary for Portal 2 patches. If set to "portal", this will change the categories accordingly (i.e. Categorize into Category:Patches (Portal).
Next / Previous
before [[July 21, 2010 Patch]] yes A link to the previous patch.
current August 17, 2010 Patch no The name to display for the current patch, only needed in translated pages.
after [[November 12, 2010 Patch]] yes A link to the next patch. If none, put N/A.
Sources
source<n> http://store.steampowered.com/news/5341/ yes The URL of the Steam news article on the patch. Supports up to 3 individual sources.
source<n>-title Portal 2 Update Released no Optional name override on source link. Supports up to 3 individual sources.
source<n>-lang fr no If the source is Steam news then this parameter should be unused. Defaults to "en" on non-English pages. Supports all 3 source links.
Diffs
Nothing If it exists, the page at Template:PatchDiff/Patch page name will be transcluded and assumed to be the only patch diff on that day.
diff-<n> | diff-1 = August 30, 2011 Patch | diff-2 = August 30, 2011 Patch 2 no If there are multiple patches on the same day, list them as their PatchDiff name under multiple diff-<n> arguments.

Example

{{Patch layout
| source       = http://store.steampowered.com/news/5341/
| source-title = Portal 2 Update Released
| before       = [[April 19, 2011 Patch]]
| after        = N/A

| notes  = 
=== Portal 2 ===
* Fixed unrecoverable black screen in elevator save
* Fixed infinite loop on Mac OSX server
* Fixed Mac OSX font rendering and glyph corruption
* Fixed GC memory leak
* Various localization content improvements
* Support for English subtitles in Turkish builds
* Minor string/interface glitches
* Fixes for multiple crashes
* Improved detection and handling for various errors and/or crashes
* Activated UI to enable joystick in-game
}}
{{Languages}}
Template info.png This documentation is transcluded from Template:Patch layout/doc.