Изменения

Шаблон:Monsterabilities

6444 байта добавлено, 20:17, 15 февраля 2016
Новая страница: «<includeonly><onlyinclude> {| class="wikitable mw-collapsible {{#switch:{{{level}}}|2=mw-collapsed|3=mw-collapsed|4=mw-collapsed|mw-expanded}}" style="max-width:8…»
<includeonly><onlyinclude>
{| class="wikitable mw-collapsible {{#switch:{{{level}}}|2=mw-collapsed|3=mw-collapsed|4=mw-collapsed|mw-expanded}}" style="max-width:80%;"
!colspan="9" style="font-size:10pt;color:#FFFFFF;font-weight:bold; {{#switch:{{{level|}}}|1=background-color:green;|2=background-color:orange;|3=background-color:darkred;|4=background-color:#312424;|2+=background-color:orange;|3+=background-color:darkred;|4+=background-color:#312424;|}}"| <big>{{#switch:{{{level}}}|1=Apprentice|2=Veteran|3=Champion|4=Darkest|2+=Veteran|3+=Champion|4+=Darkest|}} Level</big>
|-
!style="background-color:#171010;width:12%;"|Ability Name
!style="background-color:#171010;width:8%;"|Attack Type
!style="background-color:#171010;width:8%;"|Rank Requirement
!style="background-color:#171010;width:8%;"|Targetable Rank
!style="background-color:#171010;width:auto;"|Accuracy
!style="background-color:#171010;width:auto;"|Crit Chance
!style="background-color:#171010;width:auto;"|Damage
!style="background-color:#171010;width:auto;"|Effect
!style="background-color:#171010;width:auto;"|Self
|-
|{{{attack1name}}}
|{{#switch:{{{attack1type}}}|ranged = Ranged|Ranged = Ranged|Melee}}
|{{{attack1req}}}
|{{{attack1tar}}}
|{{{attack1acc}}}%
|{{{attack1crit}}}%
|{{{attack1damage}}}
|{{#if:{{{attack1effect}}}|{{{attack1effect}}}|No effect}}
|{{#if:{{{attack1self}}}|{{{attack1self}}}|No effect}}<!---->
{{#if:{{{attack2name|}}}|{{!}}-
{{!}}{{{attack2name}}}
{{!}}{{#switch:{{{attack2type}}}|ranged = Ranged|Ranged = Ranged|Melee}}
{{!}}{{{attack2req}}}
{{!}}{{{attack2tar}}}
{{!}}{{{attack2acc}}}%
{{!}}{{{attack2crit}}}%
{{!}}{{{attack2damage}}}
{{!}}{{#if:{{{attack2effect}}}|{{{attack2effect}}}|No effect}}
{{!}}{{#if:{{{attack2self}}}|{{{attack2self}}}|No effect}}|}}<!--END of #if:attack2name-->
{{#if:{{{attack3name|}}}|{{!}}-
{{!}}{{{attack3name}}}
{{!}}{{#switch:{{{attack3type}}}|ranged = Ranged|Ranged = Ranged|Melee}}
{{!}}{{{attack3req}}}
{{!}}{{{attack3tar}}}
{{!}}{{{attack3acc}}}%
{{!}}{{{attack3crit}}}%
{{!}}{{{attack3damage}}}
{{!}}{{#if:{{{attack3effect}}}|{{{attack3effect}}}|No effect}}
{{!}}{{#if:{{{attack3self}}}|{{{attack3self}}}|No effect}}|}}<!--END of #if:attack3name-->
{{#if:{{{attack4name|}}}|{{!}}-
{{!}}{{{attack4name}}}
{{!}}{{#switch:{{{attack4type}}}|ranged = Ranged|Ranged = Ranged|Melee}}
{{!}}{{{attack4req}}}
{{!}}{{{attack4tar}}}
{{!}}{{{attack4acc}}}%
{{!}}{{{attack4crit}}}%
{{!}}{{{attack4damage}}}
{{!}}{{#if:{{{attack4effect}}}|{{{attack4effect}}}|No effect}}
{{!}}{{#if:{{{attack4self}}}|{{{attack4self}}}|No effect}}|}}<!--END of #if:attack4name-->
{{#if:{{{attack5name|}}}|{{!}}-
{{!}}{{{attack5name}}}
{{!}}{{#switch:{{{attack5type}}}|ranged = Ranged|Ranged = Ranged|Melee}}
{{!}}{{{attack5req}}}
{{!}}{{{attack5tar}}}
{{!}}{{{attack5acc}}}%
{{!}}{{{attack5crit}}}%
{{!}}{{{attack5damage}}}
{{!}}{{#if:{{{attack5effect}}}|{{{attack5effect}}}|No effect}}
{{!}}{{#if:{{{attack5self}}}|{{{attack5self}}}|No effect}}|}}<!--END of #if:attack5name-->
{{#if:{{{attack6name|}}}|{{!}}-
{{!}}{{{attack6name}}}
{{!}}{{#switch:{{{attack6type}}}|ranged = Ranged|Ranged = Ranged|Melee}}
{{!}}{{{attack6req}}}
{{!}}{{{attack6tar}}}
{{!}}{{{attack6acc}}}%
{{!}}{{{attack6crit}}}%
{{!}}{{{attack6damage}}}
{{!}}{{#if:{{{attack6effect}}}|{{{attack6effect}}}|No effect}}
{{!}}{{#if:{{{attack6self}}}|{{{attack6self}}}|No effect}}|}}<!--END of #if:attack6name-->|}<!--END of table-->
</onlyinclude></includeonly>
<noinclude>
{{monsterabilities}}
== Documentation ==
This template will insert a table used to present various information about monster abilities.

=== Code ===
To use it, copypaste the following code, filling in all variables that you need (inserting info after the equal = sign) and removing those you don't.
<pre>{{monsterabilities
|level=
|attack1name=
|attack1type=
|attack1req=
|attack1tar=
|attack1acc=
|attack1crit=
|attack1damage=
|attack1effect=
|attack1self=
}}</pre>

=== Usage ===
You can input up to 6 different attacks by copying any "attack1" variable multiple times, changing the number, for example:
<pre>
{{monsterabilities
|level=
|attack1name=
|attack1type=
|attack1req=
|attack1tar=
|attack1acc=
|attack1crit=
|attack1damage=
|attack1effect=
|attack1self=
|attack2name=
|attack2type=
|attack2req=
|attack2tar=
|attack2acc=
|attack2crit=
|attack2damage=
|attack2effect=
|attack2self=
}}
</pre>
And so on until attack6name et cetera.

==== Variables ====
Here is the list of all possible variables with their usage. Variables with a # can contain a number from 1 to 6 for multiple attacks.
{| class="wikitable" style="width:100%;"
!Variable!!Usage
|-
|level||In the "level" variable, input a number from 1 to 4, where:
*1 = Apprentice (equivalent to Resolve 1). Expanded by default.
*2 = Veteran (equivalent to Resolve 3). Collapsed by default.
**2+ = Veteran. As above, but expanded by default. To use for monsters who do not appear before Veteran.
*3 = Champion (equivalent to Resolve 5). Collapsed by default.
**3+ = Champion. As above, but expanded by default. To use for monsters who do not appear before Champion.
*4 = Darkest (equivalent to Resolve 6, only for monsters in the Darkest Dungeon). Collapsed by default.
**4+ = Darkest. As above, but expanded by default. To use for monsters who do not appear before Veteran.
The name and colour of the table will change accordingly.
|-
|attack#name||Name of the attack
|-
|attack#type||Melee or ranged. If it is a melee attack, you can leave this empty and the table with automatically interpret it.
|-
|attack#req||The position requirement to use this attack. Write like so: 1, 2, 3, 4.
|-
|attack#tar||The possible targets for this attack. Write like so: 1, 2, 3, 4. For AoE attacks, write like so: 1+2+3+4.
|-
|attack#acc||The accuracy % of the attack. Write only the number, without the percentage symbol %.
|-
|attack#crit||The crit chance of the attack. Write only the number, without the percentage symbol %.
|-
|attack#damage||The damage of the attack. Write like so: 2-4.
|-
|attack#effect||Additional effects of the attack on the target. You can insert icons aside the effect name. Leave this blank if there is no additional effect: the table will automatically display "No effect".
|-
|attack#self||Additional effects of the attack on self. You can insert icons aside the effect name. Leave this blank if there is no additional effect: the table will automatically display "No effect".
|}

[[Category:InfoBoxes]]
</noinclude>