Изменения

Шаблон:Heroability

17 146 байтов добавлено, 17:53, 11 марта 2016
Новая страница: «<onlyinclude>{| class="wikitable" style="background-color:rgba(0,0,0,0.6); text-align:center; min-width:60%; max-width:63%"<!-- START of table --> {{#switch:{{{he…»
<onlyinclude>{| class="wikitable" style="background-color:rgba(0,0,0,0.6); text-align:center; min-width:60%; max-width:63%"<!-- START of table -->
{{#switch:{{{heal|}}}
|yes=!colspan="7" style="color:#FFFFFF;font-weight:bold;background-color:#005C00;"{{!}}{{{name|Умение}}}
{{!}}- style="background-color:#171010;font-weight:bold;"
{{!}}rowspan="2" style="width:76px;background-color:rgba(0,0,0,0.6);"{{!}}[[File:{{{image|Smite.png}}}{{!}}link=]]
{{!}}style="width:60px;"{{!}}Позиция
{{!}}style="width:60px;"{{!}}Цель
{{!}}Heal
{{!}}style="width:5%;"{{!}}КРИТ МОД.
{{!}}style="width:25%;"{{!}}Эффект
{{!}}style="width:25%;"{{!}}Эфф. на себя
{{!}}-
{{!}}<div style="display:block;">{{#if:{{#pos:{{{rank|}}}|4}}|[[File:Yellow_dot.png{{!}}link=]]|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{rank|}}}|3}}|[[File:Yellow_dot.png{{!}}link=]]|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{rank|}}}|2}}|[[File:Yellow_dot.png{{!}}link=]]|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{rank|}}}|1}}|[[File:Yellow_dot.png{{!}}link=]]|[[File:Grey_dot.png{{!}}link=]]}}</div>
{{!}}<div style="display:block;">{{#ifeq:{{{target}}}|self|<span style="font-variant:small-caps">Self</span>|{{#if:{{#pos:{{{target|}}}|4}}|{{#if:{{#pos:{{{target|}}}|+4}}|[[File:Yellow_dotr.png{{!}}link=]]|[[File:Yellow_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{target|}}}|3}}|{{#if:{{#pos:{{{target|}}}|3+}}|{{#if:{{#pos:{{{target|}}}|+3+}}|[[File:Yellow_dotlr.png{{!}}link=]]|[[File:Yellow_dotr.png{{!}}link=]]}}|{{#if:{{#pos:{{{target|}}}|+3}}|[[File:Yellow_dotl.png{{!}}link=]]|[[File:Yellow_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{target|}}}|2}}|{{#if:{{#pos:{{{target|}}}|2+}}|{{#if:{{#pos:{{{target|}}}|+2+}}|[[File:Yellow_dotlr.png{{!}}link=]]|[[File:Yellow_dotr.png{{!}}link=]]}}|{{#if:{{#pos:{{{target|}}}|+2}}|[[File:Yellow_dotl.png{{!}}link=]]|[[File:Yellow_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{target|}}}|1}}|{{#if:{{#pos:{{{target|}}}|1+}}|[[File:Yellow_dotl.png{{!}}link=]]|[[File:Yellow_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}}}</div>
{{!}} {{{value|0}}}
{{!}} {{{crit|0}}}
{{!}}style="text-align:left;"{{!}} {{{effect|None}}}
{{!}}style="text-align:left;"{{!}} {{{self|None}}}
{{!}}-
!colspan="7" style="background:none;padding:0;width:100%"{{!}}
{{{!}} class="wikitable mw-collapsible mw-collapsed" style="width:100%; background-color:rgba(0,0,0,0.6); text-align:center; margin:0; border:none;"
!colspan="8" style="color:#FFFFFF;font-weight:bold;background-color:#171010;border:none;"{{!}}<span style="position:relative;left:2.5em;">Уровни умения</span>
{{!}}- style="font-weight:normal;"
{{!}}style="color:#FFFFFF;font-weight:bold;background-color:#171010;text-align:right;padding-right:3.5%;"{{!}}Level 2
{{!}}style="width:5%;"{{!}} {{{valuelv2|0}}}
{{!}}style="width:5%;"{{!}} {{{critlv2|0}}}
{{!}}style="text-align:left;width:25%;"{{!}} {{{effectlv2|None}}}
{{!}}style="text-align:left;width:25%;"{{!}} {{{selflv2|None}}}
{{!}}- style="font-weight:normal;"
{{!}}style="color:#FFFFFF;font-weight:bold;background-color:#171010;text-align:right;padding-right:3.5%;"{{!}}Level 3
{{!}} {{{valuelv3|0}}}
{{!}} {{{critlv3|0}}}
{{!}}style="text-align:left;"{{!}} {{{effectlv3|None}}}
{{!}}style="text-align:left;"{{!}} {{{selflv3|None}}}
{{!}}- style="font-weight:normal;"
{{!}}style="color:#FFFFFF;font-weight:bold;background-color:#171010;text-align:right;padding-right:3.5%;"{{!}}Level 4
{{!}} {{{valuelv4|0}}}
{{!}} {{{critlv4|0}}}
{{!}}style="text-align:left;"{{!}} {{{effectlv4|None}}}
{{!}}style="text-align:left;"{{!}} {{{selflv4|None}}}
{{!}}- style="font-weight:normal;"
{{!}}style="color:#FFFFFF;font-weight:bold;background-color:#171010;text-align:right;padding-right:3.5%;"{{!}}Level 5
{{!}} {{{valuelv5|0}}}
{{!}} {{{critlv5|0}}}
{{!}}style="text-align:left;"{{!}} {{{effectlv5|None}}}
{{!}}style="text-align:left;"{{!}} {{{selflv5|None}}}
{{!}}}<!-- ------------------------------------------------------------------------------------------------------------------------ END of heal=yes -->
|buff=!colspan="5" style="color:#FFFFFF;font-weight:bold;background-color:#267396;"{{!}}{{{name|Умение}}}
{{!}}- style="background-color:#171010;font-weight:bold;"
{{!}}rowspan="2" style="width:76px;background-color:rgba(0,0,0,0.6);"{{!}}[[File:{{{image|Smite.png}}}{{!}}link=]]
{{!}}style="width:60px;"{{!}}Позиция
{{!}}style="width:60px;"{{!}}Цель
{{!}}style="width:25%;"{{!}}Эффект
{{!}}style="width:25%;"{{!}}Эфф. на себя
{{!}}-
{{!}}<div style="display:block;">{{#if:{{#pos:{{{rank|}}}|4}}|[[File:Yellow_dot.png{{!}}link=]]|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{rank|}}}|3}}|[[File:Yellow_dot.png{{!}}link=]]|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{rank|}}}|2}}|[[File:Yellow_dot.png{{!}}link=]]|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{rank|}}}|1}}|[[File:Yellow_dot.png{{!}}link=]]|[[File:Grey_dot.png{{!}}link=]]}}</div>
{{!}}<div style="display:block;">{{#ifeq:{{{target}}}|self|<span style="font-variant:small-caps">Self</span>|{{#if:{{#pos:{{{target|}}}|4}}|{{#if:{{#pos:{{{target|}}}|+4}}|[[File:Yellow_dotr.png{{!}}link=]]|[[File:Yellow_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{target|}}}|3}}|{{#if:{{#pos:{{{target|}}}|3+}}|{{#if:{{#pos:{{{target|}}}|+3+}}|[[File:Yellow_dotlr.png{{!}}link=]]|[[File:Yellow_dotr.png{{!}}link=]]}}|{{#if:{{#pos:{{{target|}}}|+3}}|[[File:Yellow_dotl.png{{!}}link=]]|[[File:Yellow_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{target|}}}|2}}|{{#if:{{#pos:{{{target|}}}|2+}}|{{#if:{{#pos:{{{target|}}}|+2+}}|[[File:Yellow_dotlr.png{{!}}link=]]|[[File:Yellow_dotr.png{{!}}link=]]}}|{{#if:{{#pos:{{{target|}}}|+2}}|[[File:Yellow_dotl.png{{!}}link=]]|[[File:Yellow_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{target|}}}|1}}|{{#if:{{#pos:{{{target|}}}|1+}}|[[File:Yellow_dotl.png{{!}}link=]]|[[File:Yellow_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}}}</div>
{{!}}style="text-align:left;"{{!}} {{{effect|None}}}
{{!}}style="text-align:left;"{{!}} {{{self|None}}}
{{!}}-
!colspan="5" style="background:none;padding:0;width:100%"{{!}}
{{{!}} class="wikitable mw-collapsible mw-collapsed" style="width:100%; background-color:rgba(0,0,0,0.6); text-align:center; margin:0; border:none;"
!colspan="4" style="color:#FFFFFF;font-weight:bold;background-color:#171010;border:none;"{{!}}<span style="position:relative;left:2.5em;">Further levels</span>
{{!}}- style="font-weight:normal;"
{{!}} style="color:#FFFFFF;font-weight:bold;background-color:#171010;text-align:right;padding-right:3.5%;"{{!}}Level 2
{{!}}style="text-align:left;width:25%;"{{!}} {{{effectlv2|None}}}
{{!}}style="text-align:left;width:25%;"{{!}} {{{selflv2|None}}}
{{!}}- style="font-weight:normal;"
{{!}} style="color:#FFFFFF;font-weight:bold;background-color:#171010;text-align:right;padding-right:3.5%;"{{!}}Level 3
{{!}}style="text-align:left;"{{!}} {{{effectlv3|None}}}
{{!}}style="text-align:left;"{{!}} {{{selflv3|None}}}
{{!}}- style="font-weight:normal;"
{{!}} style="color:#FFFFFF;font-weight:bold;background-color:#171010;text-align:right;padding-right:3.5%;"{{!}}Level 4
{{!}}style="text-align:left;"{{!}} {{{effectlv4|None}}}
{{!}}style="text-align:left;"{{!}} {{{selflv4|None}}}
{{!}}- style="font-weight:normal;"
{{!}}style="color:#FFFFFF;font-weight:bold;background-color:#171010;text-align:right;padding-right:3.5%;"{{!}}Level 5
{{!}}style="text-align:left;"{{!}} {{{effectlv5|None}}}
{{!}}style="text-align:left;"{{!}} {{{selflv5|None}}}
{{!}}}<!-- ------------------------------------------------------------------------------------------------------------------------ END of heal=buff -->
|=!colspan="9" style="color:#FFFFFF;font-weight:bold;background-color:#610804;"{{!}}{{{name|Умение}}}
{{!}}- style="background-color:#171010;font-weight:bold;"
{{!}}rowspan="2" style="width:76px;background-color:rgba(0,0,0,0.6);"{{!}}[[File:{{{image|Smite.png}}}{{!}}link=]]
{{!}}Тип
{{!}}style="width:60px;"{{!}}Позиция
{{!}}style="width:60px;"{{!}}Цель
{{!}} {{!}}Урон
{{!}} {{!}}Точность
{{!}} {{!}}КРИТ МОД.
{{!}}style="width:25%;"{{!}}Эффект
{{!}}style="width:25%;"{{!}}Эфф. на себя
{{!}}-
{{!}}{{#switch:{{{range|}}}|ranged=Ranged|Ranged=Ranged|Melee}}
{{!}}<div style="display:block;">{{#if:{{#pos:{{{rank|}}}|4}}|[[File:Yellow_dot.png{{!}}link=]]|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{rank|}}}|3}}|[[File:Yellow_dot.png{{!}}link=]]|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{rank|}}}|2}}|[[File:Yellow_dot.png{{!}}link=]]|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{rank|}}}|1}}|[[File:Yellow_dot.png{{!}}link=]]|[[File:Grey_dot.png{{!}}link=]]}}</div>
{{!}}<div style="display:block;">{{#ifeq:{{{target}}}|self|<span style="font-variant:small-caps">Self</span>|{{#if:{{#pos:{{{target|}}}|1}}|{{#if:{{#pos:{{{target|}}}|1+}}|[[File:Red_dotr.png{{!}}link=]]|[[File:Red_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{target|}}}|2}}|{{#if:{{#pos:{{{target|}}}|2+}}|{{#if:{{#pos:{{{target|}}}|+2+}}|[[File:Red_dotlr.png{{!}}link=]]|[[File:Red_dotr.png{{!}}link=]]}}|{{#if:{{#pos:{{{target|}}}|+2}}|[[File:Red_dotl.png{{!}}link=]]|[[File:Red_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{target|}}}|3}}|{{#if:{{#pos:{{{target|}}}|3+}}|{{#if:{{#pos:{{{target|}}}|+3+}}|[[File:Red_dotlr.png{{!}}link=]]|[[File:Red_dotr.png{{!}}link=]]}}|{{#if:{{#pos:{{{target|}}}|+3}}|[[File:Red_dotl.png{{!}}link=]]|[[File:Red_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}{{#if:{{#pos:{{{target|}}}|4}}|{{#if:{{#pos:{{{target|}}}|+4}}|[[File:Red_dotl.png{{!}}link=]]|[[File:Red_dot.png{{!}}link=]]}}|[[File:Grey_dot.png{{!}}link=]]}}}}</div>
{{!}} {{{value|<span style{{=}}"font-variant:small-caps;">Base</span>}}}
{{!}} {{{accuracy|100}}}
{{!}} {{{crit|0}}}
{{!}}style="text-align:left;"{{!}} {{{effect|None}}}
{{!}}style="text-align:left;"{{!}} {{{self|None}}}
{{!}}-
!colspan="9" style="background:none;padding:0;width:100%"{{!}}
{{{!}} class="wikitable mw-collapsible mw-collapsed" style="width:100%; background-color:rgba(0,0,0,0.6); text-align:center; margin:0; border:none;"
!colspan="6" style="color:#FFFFFF;font-weight:bold;background-color:#171010;border:none;"{{!}}<span style="position:relative;left:2.5em;">Further levels</span>
{{!}}- style="font-weight:normal;"
{{!}}style="color:#FFFFFF;font-weight:bold;background-color:#171010;text-align:right;padding-right:3.5%;"{{!}}Level 2
{{!}}style="width:5%;"{{!}} {{{valuelv2|<span style{{=}}"font-variant:small-caps;">Base</span>}}}
{{!}}style="width:5%;"{{!}} {{{accuracylv2|100}}}
{{!}}style="width:5%;"{{!}} {{{critlv2|0}}}
{{!}}style="text-align:left;width:25%;"{{!}} {{{effectlv2|None}}}
{{!}}style="text-align:left;width:25%;"{{!}} {{{selflv2|None}}}
{{!}}- style="font-weight:normal;"
{{!}}style="color:#FFFFFF;font-weight:bold;background-color:#171010;text-align:right;padding-right:3.5%;"{{!}}Level 3
{{!}} {{{valuelv3|<span style{{=}}"font-variant:small-caps;">Base</span>}}}
{{!}} {{{accuracylv3|100}}}
{{!}} {{{critlv3|0}}}
{{!}}style="text-align:left;"{{!}} {{{effectlv3|None}}}
{{!}}style="text-align:left;"{{!}} {{{selflv3|None}}}
{{!}}- style="font-weight:normal;"
{{!}}style="color:#FFFFFF;font-weight:bold;background-color:#171010;text-align:right;padding-right:3.5%;"{{!}}Level 4
{{!}} {{{valuelv4|<span style{{=}}"font-variant:small-caps;">Base</span>}}}
{{!}} {{{accuracylv4|100}}}
{{!}} {{{critlv4|0}}}
{{!}}style="text-align:left;"{{!}} {{{effectlv4|None}}}
{{!}}style="text-align:left;"{{!}} {{{selflv4|None}}}
{{!}}- style="font-weight:normal;"
{{!}}style="color:#FFFFFF;font-weight:bold;background-color:#171010;text-align:right;padding-right:3.5%;"{{!}}Level 5
{{!}} {{{valuelv5|<span style{{=}}"font-variant:small-caps;">Base</span>}}}
{{!}} {{{accuracylv5|100}}}
{{!}} {{{critlv5|0}}}
{{!}}style="text-align:left;"{{!}} {{{effectlv5|None}}}
{{!}}style="text-align:left;"{{!}} {{{selflv5|None}}}
{{!}}}
}}<!-- ---------------------------------------------------------------------------------------------------------------------------- END of heal= -->
|}<!-- END of table -->

</onlyinclude>
<noinclude>== Documentation ==
This template will display a table with information about a '''single''' hero ability. The table will shape itself automatically depending on whether it is a healing or damaging ability. Healing ability are those that heal either health, stress or both. Everything else is to be considered a damaging ability, even if it deals no damage.

Levels of the ability from 2 to 5 will be collapsed at first, and are expandable by the user if interested.

=== Usage ===
All variables are required unless specified (see list of variables below). Use the template by entering the following and then filling up each variable accordingly (again, see list of variables):
<pre>{{heroability
|name=
|image=
|heal=
|range=
|rank=
|target=
|value=
|accuracy=
|crit=
|effect=
|self=
|valuelv2=
|accuracylv2=
|critlv2=
|effectlv2=
|selflv2=
|valuelv3=
|accuracylv3=
|critlv3=
|effectlv3=
|selflv3=
|valuelv4=
|accuracylv4=
|critlv4=
|effectlv4=
|selflv4=
|valuelv5=
|accuracylv5=
|critlv5=
|effectlv5=
|selflv5=
}}</pre>

=== Variables ===
{| class="wikitable" style="width:100%;"
!Variable!!Usage
|-
|name||Write the name of the ability.
|-
|image||Write the file name of the ability icon without any prefix or wikicode. For example, for [[:File:Smite.png]], simply write <code>Smite.png</code>.
|-
|heal||Write exactly like so: <code>yes</code> if the ability is a heal. Write <code>buff</code> if the ability is a buff. Write nothing otherwise.
|-
|range||If the ability is a heal, leave blank, otherwise write <code>ranged</code> if the ability is ranged; write <code>melee</code> or leave blank for melee abilities.
|-
|rank||Write the ranks where the hero is allowed to cast the ability; the template will automatically compose the right image. Example: if the ability can be used from all but the front row, write any of the following (all of them work): <code>123</code> or <code>1, 2, 3</code> or <code>1,2,3</code>.
|-
|target||Write the target ranks where the ability will hit; the template will automatically compose the right image. Example: if the ability can target the front two rows, any of the following (all of them work): <code>12</code> or <code>1, 2</code> or <code>1,2</code>.
For abilities that hit more than one rank, put a + sign between the ranks; '''don't put any space between numbers and + signs'''. Example: if the ability will hit every rank except the front, write '''exactly''' as follows: <code>2+3+4</code>. Finally, if the ability can only target the user, write: <code>self</code>, always lower-case.
|-
|value||Write the heal amount or the damage multiplier (including the % sign). If the ability doesn't say anything or the multiplier is 100% (normal damage), leave blank and the template will autocomplete. If the ability is a buff that only affects the user, write <code>None</code> and put the effects under ''self'' (see below).
|-
|accuracy||If the ability is a heal, leave blank. If not, write the accuracy base. If the ability doesn't say anything, leave blank.
|-
|crit||Write the crit modifier. If the ability doesn't say anything, leave blank.
|-
|effect||Write any additional effect, such as Stun, Shuffle, Bleed or +60% DMG vs Marked, etc. Only write effects that affect the '''target''' of the ability. If there is none, leave blank.
|-
|self||Write any additional effect that affects the user. If there is none, leave blank.
|-
|valuelv#||Like ''value'' above, but for ability levels different than 1. You have to enter one per level from 2 to 5. If the value doesn't change by levelling up, copy the level 1 value, '''don't leave blank''' unless the level 1 value is as well.
|-
|accuracylv#||Like ''accuracy'' above, but for ability levels different than 1. You have to enter one per level from 2 to 5. If the value doesn't change by levelling up, copy the level 1 value, '''don't leave blank'''. You can, however, leave this blank at all levels if the ability is a heal.
|-
|critlv#||Like ''crit'' above, but for ability levels different than 1. You have to enter one per level from 2 to 5. If the value doesn't change by levelling up, copy the level 1 value, '''don't leave blank'''.
|-
|effectlv#||Like ''effect'' above, but for ability levels different than 1. You have to enter one per level from 2 to 5. If the value doesn't change by levelling up, copy the level 1 value, '''don't leave blank'''.
|-
|selflv#||Like ''self'' above, but for ability levels different than 1. You have to enter one per level from 2 to 5. If the value doesn't change by levelling up, copy the level 1 value, '''don't leave blank'''.
|}

[[Category:InfoBoxes]]
</noinclude>