Шаблон:Game update icon — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) (Новая страница: «<includeonly>{{#show: {{{1|}}} | ?Has context | ?Has game icon | ? | ?Has canonical name | link = none | format = template | template = Game update icon result fo…») |
Blood (обсуждение | вклад) |
||
Строка 5: | Строка 5: | ||
| ?Has canonical name | | ?Has canonical name | ||
| link = none | | link = none | ||
+ | | userparam = {{{1|}}} | ||
| format = template | | format = template | ||
| template = Game update icon result format | | template = Game update icon result format | ||
+ | | default=[[{{{1|}}}]] | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
− | A template that provides skill and trait icons for game update pages. | + | A template that provides skill and trait icons for game update pages. Format template: {{tl|Game update icon result format}}. |
== Usage == | == Usage == | ||
− | <pre>{{Game update icon | + | <pre>{{Game update icon|<page name>}}</pre> |
=== Parameters === | === Parameters === | ||
Строка 27: | Строка 29: | ||
// Scripts to use when viewing game updates | // Scripts to use when viewing game updates | ||
if (mw.config.get('wgPageName').substring(0, 12) == 'Game_updates') { | if (mw.config.get('wgPageName').substring(0, 12) == 'Game_updates') { | ||
− | $('li .skillicon, li .traiticon').each(function(){ | + | $('li .skillicon, li .effecticon, li .traiticon').each(function(){ |
$(this).parent('li').addClass('patchnote'); | $(this).parent('li').addClass('patchnote'); | ||
}); | }); |
Версия 09:38, 12 мая 2018
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.
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; }