Редактирование: Шаблон:Effect
Материал из Guild Wars 2 wiki
Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.
Текущая версия | Ваш текст | ||
Строка 1: | Строка 1: | ||
<onlyinclude>{{#switch: {{lc:{{{icon|}}}}} | <onlyinclude>{{#switch: {{lc:{{{icon|}}}}} | ||
− | | | + | | only = {{effect icon|{{ucfirst:{{{1|Effect}}}}}|{{effect description|{{{1|Effect}}}}}|stacks={{{stacks|}}}}} |
− | | | + | | no = {{#if:{{{2|}}}|[[{{{1|Effect}}}|{{{2}}}]]|[[{{{1|Effect}}}|{{ucfirst:{{#show:{{{1|**}}}|?Has canonical name|default={{{1|Effect}}}}}}}]]}} |
− | + | | #default = {{effect icon|{{ucfirst:{{{1|Effect}}}}}|{{effect description|{{{1|Effect}}}}}|stacks={{{stacks|}}}|icon={{{icon|}}}}} {{#if:{{{2|}}}|[[{{{1|Effect}}}|{{ucfirst:{{{2}}}}}]]|[[{{ucfirst:{{{1|Effect}}}}}|{{ucfirst:{{#show:{{{1|**}}}|?Has canonical name|default={{{1|Effect}}}}}}}]]}} | |
}}</onlyinclude><noinclude> | }}</onlyinclude><noinclude> | ||
− | |||
− | |||
− | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
Строка 12: | Строка 9: | ||
</pre> | </pre> | ||
− | + | == Parameters == | |
;Unnamed parameter 1 | ;Unnamed parameter 1 | ||
− | : | + | :Name of effect article |
;Unnamed parameter 2 | ;Unnamed parameter 2 | ||
− | : | + | :Alternate text |
;stacks | ;stacks | ||
− | : Optional. The number of stacks | + | :Optional. The number of stacks |
;icon | ;icon | ||
− | : | + | :Icon to use. Use to override the icon found on the article. Defaults to Skill.png. |
− | : Can be set to "only" to remove the text. (where possible please use {{tl|effect icon}} directly) | + | :Can be set to "only" to remove the text. (deprecated, where possible please use {{tl|effect icon}} directly) |
− | : Can be set to "no" to only display the description. (where possible please use {{tl|effect description}} directly) | + | :Can be set to "no" to only display the description. (deprecated, where possible please use {{tl|effect description}} directly) |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Examples == | |
− | </ | + | * {{effect|Blur}} is produced from <code><nowiki>{{effect|Blur}}</nowiki></code> |
+ | * {{effect|Shocking Aura (effect)}} is produced from <code><nowiki>{{effect|Shocking Aura (effect)}}</nowiki></code> | ||
+ | * {{effect|Shocking Aura (effect)|Alternate text}} is produced from <code><nowiki>{{effect|Shocking Aura (effect)|Alternate text}}</nowiki></code> | ||
+ | * {{effect|Bleeding|stacks=3}} is produced from <code><nowiki>{{effect|Bleeding|stacks=3}}</nowiki></code> | ||
+ | * {{effect|Nonexistent effect}} is produced from <code><nowiki>{{effect|Nonexistent effect}}</nowiki></code> | ||
+ | * {{effect|Nonexistent effect|icon=Bleeding.png}} is produced from <code><nowiki>{{effect|Nonexistent effect|icon=Bleeding.png}}</nowiki></code> |