Шаблон:Effect icon — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 2: | Строка 2: | ||
{{#vardefine:smw_icon|{{#show:{{{1|@@@}}}|?Has game icon|link=none|default=File:Miscellaneous effect.png}}}} | {{#vardefine:smw_icon|{{#show:{{{1|@@@}}}|?Has game icon|link=none|default=File:Miscellaneous effect.png}}}} | ||
}}<span class="inline-icon effect">[[File:{{#if:{{{icon|}}}|{{{icon}}}|{{#sub:{{#var:smw_icon}}|5}}}}|{{{size|20}}}px|link={{{1|Effect}}}|{{{2|}}}]]</span>{{#if:{{{stacks|}}}|<sub>{{{stacks}}}</sub>}}</onlyinclude> | }}<span class="inline-icon effect">[[File:{{#if:{{{icon|}}}|{{{icon}}}|{{#sub:{{#var:smw_icon}}|5}}}}|{{{size|20}}}px|link={{{1|Effect}}}|{{{2|}}}]]</span>{{#if:{{{stacks|}}}|<sub>{{{stacks}}}</sub>}}</onlyinclude> | ||
+ | == Description == | ||
+ | Displays the effect icon and possible stacks. | ||
== Usage == | == Usage == | ||
Строка 8: | Строка 10: | ||
</pre> | </pre> | ||
− | == Parameters == | + | === Parameters === |
;Unnamed parameter 1 | ;Unnamed parameter 1 | ||
− | :The article you want the icon to link to. Defaults to [[effect]]. | + | : Required. The article you want the icon to link to. Defaults to [[effect]]. |
;Unnamed parameter 2 | ;Unnamed parameter 2 | ||
− | :Icon tooltip | + | : Optional. Icon tooltip. |
;stacks | ;stacks | ||
− | :Number of stacks of the effect. Only for effects that stack in intensity. | + | : Optional. Number of stacks of the effect. Only for effects that stack in intensity. |
;icon | ;icon | ||
− | : | + | : Optional. Use to override the icon found on the article. Defaults to Miscellaneous effect.png. |
;size | ;size | ||
− | :Icon size, in pixels. Don't specify "px". | + | : Optional. Icon size, in pixels. Don't specify "px". |
− | == Examples == | + | === Examples === |
* {{effect icon|Blur}} is produced from <code><nowiki>{{effect icon|Blur}}</nowiki></code> | * {{effect icon|Blur}} is produced from <code><nowiki>{{effect icon|Blur}}</nowiki></code> | ||
* {{effect icon|Determined}} is produced from <code><nowiki>{{effect icon|Determined}}</nowiki></code> | * {{effect icon|Determined}} is produced from <code><nowiki>{{effect icon|Determined}}</nowiki></code> | ||
* {{effect icon|Shocking Aura (effect)}} is produced from <code><nowiki>{{effect icon|Shocking Aura (effect)}}</nowiki></code> | * {{effect icon|Shocking Aura (effect)}} is produced from <code><nowiki>{{effect icon|Shocking Aura (effect)}}</nowiki></code> | ||
* {{effect icon|bleeding|stacks=3}} is produced from <code><nowiki>{{effect icon|bleeding|stacks=3}}</nowiki></code> | * {{effect icon|bleeding|stacks=3}} is produced from <code><nowiki>{{effect icon|bleeding|stacks=3}}</nowiki></code> | ||
− | * {{effect icon| | + | * {{effect icon|Nonexistent page|Tooltip|icon=Bleeding.png}} is produced from <code><nowiki>{{effect icon|Nonexistent page|Tooltip|icon=Bleeding.png}}</nowiki></code> |
+ | |||
+ | == See also == | ||
+ | * {{tl|Effect}} | ||
+ | * {{tl|Effect description}} | ||
[[Category:Effect templates]] | [[Category:Effect templates]] | ||
[[Category:Icon templates]] | [[Category:Icon templates]] |
Текущая версия на 13:32, 3 мая 2021
Содержание
Description[править]
Displays the effect icon and possible stacks.
Usage[править]
{{effect icon|<effect name>|stacks=<stacks>}}
Parameters[править]
- Unnamed parameter 1
- Required. The article you want the icon to link to. Defaults to effect.
- Unnamed parameter 2
- Optional. Icon tooltip.
- stacks
- Optional. Number of stacks of the effect. Only for effects that stack in intensity.
- icon
- Optional. Use to override the icon found on the article. Defaults to Miscellaneous effect.png.
- size
- Optional. Icon size, in pixels. Don't specify "px".
Examples[править]
-
{{effect icon|Blur}}
is produced from -
{{effect icon|Determined}}
is produced from -
{{effect icon|Shocking Aura (effect)}}
is produced from -
{{effect icon|bleeding|stacks=3}}
3 is produced from -
{{effect icon|Nonexistent page|Tooltip|icon=Bleeding.png}}
is produced from
See also[править]
- {{Effect}}
- {{Effect description}}