Template:Game update helper

From Guild Wars 2 Wiki
Jump to navigationJump to search


Description[edit]

This template is used to substitute the current skill or trait game update notes either in the version history table or in the version history page. It requires the usage of the temporary template {{Game update icon subobject}} and the parameter "note" to get the game update notes. The current infobox is "copied" with dpl. Uses /subst and /subst2 for substituting "{{" and "}}", respectively.

Usage
  1. Copy the game notes into your sandbox
  2. Replace Game update icon with Game update icon subobject
  3. Regex-replace \{\{game update icon subobject\|(.*?)\}\}: (.*) with {{game update icon subobject|$1|note=$2}}.
  4. Use {{subst:game update helper|source=<your sandbox>}} in the version history table and /history page, set unnamed parameter 1 to the date if needed.
Temporarily used properties

Usage[edit]

Code[edit]

Table[edit]

Code
{{subst:game update helper}}
{{subst:game update helper|<date>}}
{{subst:game update helper|<date>|<base page name>}}
Result
{{Version history table row|<date>|<profession as section name>}}
* <game update notes>

Page[edit]

Code
{{subst:game update helper|mode=page}}
{{subst:game update helper|<date>|mode=page}}
{{subst:game update helper|<date>|<base page name>|mode=page}}
Result
{{<Skill or Trait> infobox/historical
| date = <date>
| changes =
* [[<base page name>]]: <game update notes>
| <infobox parameters>
}}

Parameters[edit]

1 (unnamed parameter)
Optional. Date, format: "year-month-day", defaults to the current UTC date.
2 (unnamed parameter)
Optional. Skill or trait page name, defaults to BASEPAGENAME.
mode
Optional. Either "table" or "page", defaults to "table".
heading
Optional. For table mode only. Version table link heading, on default the profession is used. Use e.g. heading = Elementalist 2 to link to the second elementalist heading.
r
Optional. For table mode only. Release.
intro
Optional. Displays the skill or trait page as intro instead of unnamed parameter 2. Leaving this parameter empty disables the intro.
notes
Optional. Default notes if the query doesn't find one.
pre notes
Optional. Additional notes placed before the notes.
infobox
Optional. Can be set to empty to disable copying the current infobox, e.g. when adding an older game update and there has been an another update inbetween.
minor
Optional. For page mode only. If set adds "minor = y" instead of copying current infobox from the base page.
source
Optional. Full source name, e.g. your User:<user>/sandbox.

Example[edit]

Table[edit]

{| {{STDT|elementalist}}
! Patch !! Changes
|-
{{subst:game update helper|2019-10-01|Signet of Air}}
|}
Patch Changes
October 01, 2019
  • This skill can now be activated to break stuns without a target. Activating the skill while out of range of a target or without a target while not under control effects will put it on interrupt cooldown.

Page[edit]

{{subst:game update helper|2019-10-01|Signet of Air|mode=page|minor=y}}

October 01, 2019

  • Signet of Air.png Signet of Air: This skill can now be activated to break stuns without a target. Activating the skill while out of range of a target or without a target while not under control effects will put it on interrupt cooldown.