Template:Game update icon

From Guild Wars 2 Wiki
Jump to navigationJump to search

Description[edit]

A template that provides skill and trait icons for game update pages. Format using {{Game update icon result format}}.

Usage[edit]

{{Game update icon|<page name>}}

Parameters[edit]

1 (unnamed parameter)
Required. Skill or trait page name.
2 (unnamed parameter)
Optional. Displayed skill or trait name. This one may differ from the page name, for example upper-/lowercase mistakes in the game update notes.
icon
Optional. Specify a valid filename without the "File:" prefix.

Example[edit]

* {{Game update icon|Retribution (trait)}}

Notes[edit]

// Scripts to use when viewing game updates
if (mw.config.get('wgPageName').substring(0, 12) == 'Game_updates') {
    $('li .skillicon, li .effecticon, li .traiticon').each(function(){
      $(this).parent('li').addClass('patchnote');
    });
}
.patchnote { line-height: 2.7em; }
.patchnote .skillicon img, .patchnote .traiticon img { background-color: black; }