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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
 
(не показана 1 промежуточная версия этого же участника)
Строка 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|Example}}</nowiki></code> || {{effect|Example}}
 +
|-
 +
| <code><nowiki>{{effect|Example|icon=Bleeding.png}}</nowiki></code> || {{effect|Example|icon=Bleeding.png}}
 +
|}
 +
 
 +
[[Category:Effect icon templates|Effect]]
 +
</noinclude>

Текущая версия на 12:29, 23 декабря 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|Example}} Miscellaneous effect.png Example
{{effect|Example|icon=Bleeding.png}} Bleeding.png Example