Шаблон:Game update icon — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 7: | Строка 7: | ||
| userparam = {{{1|}}} | | userparam = {{{1|}}} | ||
| format = template | | format = template | ||
− | | template = Game update icon result format | + | | template = Game update icon result format{{!}}name={{{2|}}} |
| default=[[{{{1|}}}]] | | default=[[{{{1|}}}]] | ||
}} | }} | ||
Строка 19: | Строка 19: | ||
;1 ''(unnamed parameter)'' | ;1 ''(unnamed parameter)'' | ||
:skill or trait page name. | :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 | ;icon | ||
:Optional. Specify a valid filename without the "File:" prefix. | :Optional. Specify a valid filename without the "File:" prefix. |
Версия 21:23, 20 июля 2019
A template that provides skill and trait icons for game update pages. Format template: {{Game update icon result format}}.
Содержание
Usage
{{Game update icon|<page name>}}
Parameters
- 1 (unnamed parameter)
- 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.
- name
- Optional. Only applies if icon is also specified.
Example
{{Game update icon|Retribution (trait)}}Retribution
Notes
- Implementation supported with the following lines in MediaWiki:Common.js:
// 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'); }); }
- And also supported with the following lines in MediaWiki:Common.css:
.patchnote { line-height: 2.7em; } .patchnote .skillicon img, .patchnote .traiticon img { background-color: black; }