Шаблон:Effect — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
(не показаны 2 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
<onlyinclude>{{#switch: {{lc:{{{icon|}}}}} | <onlyinclude>{{#switch: {{lc:{{{icon|}}}}} | ||
− | | | + | | no = {{#if: {{{2|}}} | [[{{{1|Effect}}}|{{{2}}}]] | {{#if: {{{1|}}} | [[{{{1|Effect}}}|{{rus lang|effect|{{ucfirst:{{#show:{{{1|**}}}|?Has canonical name|default={{{1|Effect}}}}}}}}}]] | [[{{{1|Effect}}}]] }} }} |
− | + | | only = {{effect icon|{{ucfirst:{{{1|Effect}}}}}| stacks = {{{stacks|}}} }} | |
− | | #default = {{effect icon|{{ucfirst:{{{1|Effect}}}}}|stacks={{{stacks|}}}|icon={{{icon|}}}}} {{#if:{{{2|}}}|[[{{{1|Effect}}}|{{{2}}}]]| | + | | #default = {{effect icon|{{ucfirst:{{{1|Effect}}}}}| stacks = {{{stacks|}}} | icon = {{{icon|}}} }} {{#if: {{{2|}}} | [[{{{1|Effect}}}|{{{2}}}]] | {{#if: {{{1|}}} | [[{{{1|Effect}}}|{{rus lang|effect|{{ucfirst:{{#show:{{{1|**}}}|?Has canonical name|default={{{1|Effect}}}}}}}}}]] | [[{{{1|Effect}}}]] }} }} |
}}</onlyinclude><noinclude> | }}</onlyinclude><noinclude> | ||
+ | == Description == | ||
+ | Displays a link to the effect and adds an effect icon in front of it. | ||
+ | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
Строка 9: | Строка 12: | ||
</pre> | </pre> | ||
− | == Parameters == | + | === Parameters === |
;Unnamed parameter 1 | ;Unnamed parameter 1 | ||
− | :Name of effect article | + | : Required. Name of effect article. |
;Unnamed parameter 2 | ;Unnamed parameter 2 | ||
− | :Alternate text | + | : Optional. Alternate text. |
;stacks | ;stacks | ||
− | :Optional. The number of stacks | + | : Optional. The number of stacks. |
;icon | ;icon | ||
− | : | + | : Optional. The 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. ( | + | : Can be set to "only" to remove the text. (where possible please use {{tl|effect icon}} directly) |
− | :Can be set to "no" to only display the description. ( | + | : Can be set to "no" to only display the description. (where possible please use {{tl|effect description}} directly) |
− | == Examples == | + | === Examples === |
{| {{STDT}} style="display: table" | {| {{STDT}} style="display: table" | ||
! Code !! Result | ! Code !! Result | ||
Строка 33: | Строка 36: | ||
| <code><nowiki>{{effect|Bleeding|stacks=3}}</nowiki></code> || {{effect|Bleeding|stacks=3}} | | <code><nowiki>{{effect|Bleeding|stacks=3}}</nowiki></code> || {{effect|Bleeding|stacks=3}} | ||
|- | |- | ||
− | | <code><nowiki>{{effect|Nonexistent | + | | <code><nowiki>{{effect|Nonexistent page|Example}}</nowiki></code> || {{effect|Nonexistent page|Example}} |
|- | |- | ||
− | | <code><nowiki>{{effect|Nonexistent | + | | <code><nowiki>{{effect|Nonexistent page|Example|icon=Bleeding.png}}</nowiki></code> || {{effect|Nonexistent page|Example|icon=Bleeding.png}} |
|} | |} | ||
+ | |||
+ | == See also == | ||
+ | * {{tl|Effect icon}} | ||
+ | * {{tl|Effect description}} | ||
[[Category:Effect icon templates|Effect]] | [[Category:Effect icon templates|Effect]] | ||
</noinclude> | </noinclude> |
Текущая версия на 21:10, 5 мая 2021
Содержание
Description[править]
Displays a link to the effect and adds an effect icon in front of it.
Usage[править]
{{effect|<effect name>|<alternate link text>|stacks=<stacks>}}
Parameters[править]
- Unnamed parameter 1
- Required. Name of effect article.
- Unnamed parameter 2
- Optional. Alternate text.
- stacks
- Optional. The number of stacks.
- icon
- Optional. The 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 {{effect icon}} directly)
- Can be set to "no" to only display the description. (where possible please use {{effect description}} directly)
Examples[править]
Code | Result |
---|---|
{{effect|Blur}} |
Blur |
{{effect|Shocking Aura (effect)}} |
Шоковая аура |
{{effect|Shocking Aura (effect)|Alternate text}} |
Alternate text |
{{effect|Bleeding|stacks=3}} |
Кровотечение | 3
{{effect|Nonexistent page|Example}} |
Example |
{{effect|Nonexistent page|Example|icon=Bleeding.png}} |
Example |
See also[править]
- {{Effect icon}}
- {{Effect description}}