Шаблон:Effect — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
Строка 1: Строка 1:
 
<onlyinclude>{{#switch: {{lc:{{{icon|}}}}}
 
<onlyinclude>{{#switch: {{lc:{{{icon|}}}}}
  | only    = {{effect icon|{{ucfirst:{{{1|Effect}}}}}|{{effect description|{{{1|Effect}}}}}|stacks={{{stacks|}}}}}
+
  | only    = {{effect icon|{{ucfirst:{{{1|Effect}}}}}|stacks={{{stacks|}}}}}
 
  | no      = {{#if:{{{2|}}}|[[{{{1|Effect}}}|{{{2}}}]]|[[{{{1|Effect}}}|{{ucfirst:{{#show:{{{1|**}}}|?Has canonical name|default={{{1|Effect}}}}}}}]]}}
 
  | 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|}}}}}&nbsp;{{#if:{{{2|}}}|[[{{{1|Effect}}}|{{ucfirst:{{{2}}}}}]]|[[{{ucfirst:{{{1|Effect}}}}}|{{ucfirst:{{#show:{{{1|**}}}|?Has canonical name|default={{{1|Effect}}}}}}}]]}}
+
  | #default = {{effect icon|{{ucfirst:{{{1|Effect}}}}}|stacks={{{stacks|}}}|icon={{{icon|}}}}}&nbsp;{{#if:{{{2|}}}|[[{{{1|Effect}}}|{{{2}}}]]|[[{{ucfirst:{{{1|Effect}}}}}|{{ucfirst:{{#show:{{{1|**}}}|?Has canonical name|default={{{1|Effect}}}}}}}]]}}
 
}}</onlyinclude><noinclude>
 
}}</onlyinclude><noinclude>
 
== Usage ==
 
== Usage ==
Строка 22: Строка 22:
  
 
== Examples ==
 
== Examples ==
* {{effect|Blur}} is produced from <code><nowiki>{{effect|Blur}}</nowiki></code>
+
{| {{STDT}} style="display: table"
* {{effect|Shocking Aura (effect)}} is produced from <code><nowiki>{{effect|Shocking Aura (effect)}}</nowiki></code>
+
! Code !! Result
* {{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>
+
| <code><nowiki>{{effect|Blur}}</nowiki></code> || {{effect|Blur}}
* {{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>
+
| <code><nowiki>{{effect|Shocking Aura (effect)}}</nowiki></code> || {{effect|Shocking Aura (effect)}}
 +
|-
 +
| <code><nowiki>{{effect|Shocking Aura (effect)|Alternate text}}</nowiki></code> || {{effect|Shocking Aura (effect)|Alternate text}}
 +
|-
 +
| <code><nowiki>{{effect|Bleeding|stacks=3}}</nowiki></code> || {{effect|Bleeding|stacks=3}}
 +
|-
 +
| <code><nowiki>{{effect|Nonexistent effect}}</nowiki></code> || {{effect|Nonexistent effect}}
 +
|-
 +
| <code><nowiki>{{effect|Nonexistent effect|icon=Bleeding.png}}</nowiki></code> || {{effect|Nonexistent effect|icon=Bleeding.png}}
 +
|}
 +
 
 +
[[Category:Effect icon templates|Effect]]
 +
</noinclude>

Версия 19:04, 19 марта 2018

Miscellaneous effect.png Effect

Usage

{{effect|<effect name>|<alternate link text>|stacks=<stacks>}}

Parameters

Unnamed parameter 1
Name of effect article
Unnamed parameter 2
Alternate text
stacks
Optional. The number of stacks
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. (deprecated, where possible please use {{effect icon}} directly)
Can be set to "no" to only display the description. (deprecated, where possible please use {{effect description}} directly)

Examples

Code Result
{{effect|Blur}} Distortion.png Blur
{{effect|Shocking Aura (effect)}} Shocking Aura (effect) fix.png Shocking Aura
{{effect|Shocking Aura (effect)|Alternate text}} Shocking Aura (effect) fix.png Alternate text
{{effect|Bleeding|stacks=3}} Bleeding.png3 Bleeding
{{effect|Nonexistent effect}} Miscellaneous effect.png Nonexistent effect
{{effect|Nonexistent effect|icon=Bleeding.png}} Bleeding.png Nonexistent effect