Difference between revisions of "Template:Enemy"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(min-height to try to keep the div positions, color coding for nature and magic resistances)
old>Realpsojed
(styling for collapsible stats)
Line 1: Line 1:
<div style="width: 300px;" class="mw-collapsible mw-collapsed" data-expandtext="Show all statistics" data-collapsetext="Hide all statistics">
<includeonly><div style="width: 300px;" class="mw-collapsible mw-collapsed" data-expandtext="Show all statistics" data-collapsetext="Hide all statistics">
<div style="text-align:center;"><br><span style="font-size: 20px;">{{#if:{{:{{ROOTPAGENAME}}|Name}}|{{:{{ROOTPAGENAME}}|Name}}|{{ROOTPAGENAME}}}}</span><br><!--
<div style="text-align:center;"><br><span style="font-size: 20px;">{{#if:{{:{{ROOTPAGENAME}}|Name}}|{{:{{ROOTPAGENAME}}|Name}}|{{ROOTPAGENAME}}}}</span><br><!--
-->Level {{:{{ROOTPAGENAME}}|Level}} <!--
-->Level {{:{{ROOTPAGENAME}}|Level}} <!--
Line 35: Line 35:
--><div class="mw-collapsible-content"><!--
--><div class="mw-collapsible-content"><!--
--><div style="text-align:center;">{{Tooltip rule}}'''Defensive stats'''</div><!--
--><div style="text-align:center;">{{Tooltip rule}}'''Defensive stats'''</div><!--
--><div style="width: 142px; float: left; padding-right: 5px;>Protection {{:{{ROOTPAGENAME}}|Protection}}<br><!--
--><div style="width: 142px; float: left; padding-right: 5px; min-height: 1px;"><!--
-->Block Chance {{:{{ROOTPAGENAME}}|BlockChance}}%<br><!--
-->Block Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|BlockChance}}%</span><br><!--
-->Dodge Chance {{:{{ROOTPAGENAME}}|DodgeChance}}%<br><!--
-->Bleed Res. <span style="float:right;">{{:{{ROOTPAGENAME}}|BleedResistance}}%</span><br><!--
-->Control Res. {{:{{ROOTPAGENAME}}|ControlResistance}}%<br><!--
-->Control Res. <span style="float:right;">{{:{{ROOTPAGENAME}}|ControlResistance}}%</span><br><!--
-->Bleed Res. {{:{{ROOTPAGENAME}}|BleedResistance}}%<br></div><!--
-->Protection <span style="float:right;">{{:{{ROOTPAGENAME}}|Protection}}</span></div><!--
--><div style="width: 142px; float: left; padding-left: 5px;>Armor Pen. {{:{{ROOTPAGENAME}}|ArmorPiercing}}%<br><!--
--><div style="width: 142px; float: left; padding-left: 5px; min-height: 1px;"><!--
-->Block Power {{:{{ROOTPAGENAME}}|BlockPower}}<br><!--
-->Block Power <span style="float:right;">{{:{{ROOTPAGENAME}}|BlockPower}}</span><br><!--
-->Pain Res. {{:{{ROOTPAGENAME}}|PainResistance}}%<br><!--
-->Pain Res. <span style="float:right;">{{:{{ROOTPAGENAME}}|PainResistance}}%</span><br><!--
-->Move Res. {{:{{ROOTPAGENAME}}|MoveResistance}}%</div>{{Clear}}<!--
-->Move Res. <span style="float:right;">{{:{{ROOTPAGENAME}}|MoveResistance}}%</span><br><!--
-->Dodge Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|DodgeChance}}%</span></div>{{Clear}}<!--
--><div style="text-align:center;">{{Tooltip rule}}'''Offensive stats'''</div><!--
--><div style="text-align:center;">{{Tooltip rule}}'''Offensive stats'''</div><!--
--><div style="width: 142px; float: left; padding-right: 5px;>Crit Chance {{:{{ROOTPAGENAME}}|CritChance}}%<br><!--
--><div style="width: 142px; float: left; padding-right: 5px; min-height: 1px;"><!--
-->Accuracy {{:{{ROOTPAGENAME}}|Accuracy}}%<br><!--
-->Crit Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|CritChance}}%</span><br><!--
-->Counter Chance {{:{{ROOTPAGENAME}}|CounterChance}}%<br><!--
-->Accuracy <span style="float:right;">{{:{{ROOTPAGENAME}}|Accuracy}}%</span><br><!--
-->Stun Chance {{:{{ROOTPAGENAME}}|StunChance}}%<br><!--
-->Counter Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|CounterChance}}%</span><br><!--
-->Knockb. Chance {{:{{ROOTPAGENAME}}|KnockbackChance}}%<br><!--
-->Stun Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|StunChance}}%</span><br><!--
-->Life Leech {{:{{ROOTPAGENAME}}|LifeLeech}}%<br><!--
-->Knockb. Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|KnockbackChance}}%</span><br><!--
-->Vision {{:{{ROOTPAGENAME}}|Vision}}<br><!--
-->Life Leech <span style="float:right;">{{:{{ROOTPAGENAME}}|LifeLeech}}%</span><br><!--
-->Magic Power {{:{{ROOTPAGENAME}}|MagicPower}}%</div><!--
-->Vision <span style="float:right;">{{:{{ROOTPAGENAME}}|Vision}}</span><br><!--
--><div style="width: 142px; float: left; padding-left: 5px;>Crit Efficiency {{:{{ROOTPAGENAME}}|CritEfficiency}}%<br><!--
-->Magic Power <span style="float:right;">{{:{{ROOTPAGENAME}}|MagicPower}}%</span></div><!--
-->Bleed Chance {{:{{ROOTPAGENAME}}|BleedChance}}%<br><!--
--><div style="width: 142px; float: left; padding-left: 5px; min-height: 1px;"><!--
-->Fumble Chance {{:{{ROOTPAGENAME}}|FumbleChance}}%<br><!--
-->Crit Efficiency <span style="float:right;">{{:{{ROOTPAGENAME}}|CritEfficiency}}%</span><br><!--
-->Daze Chance {{:{{ROOTPAGENAME}}|DazeChance}}%<br><!--
-->Bleed Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|BleedChance}}%</span><br><!--
-->Immob. Chance {{:{{ROOTPAGENAME}}|ImmobilizeChance}}%<br><!--
-->Fumble Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|FumbleChance}}%</span><br><!--
-->Energy Leech {{:{{ROOTPAGENAME}}|EnergyLeech}}%<br><!--
-->Daze Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|DazeChance}}%</span><br><!--
-->Bonus Range {{:{{ROOTPAGENAME}}|BonusRange}}</div>{{Clear}}<!--
-->Immob. Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|ImmobilizeChance}}%</span><br><!--
-->Energy Leech <span style="float:right;">{{:{{ROOTPAGENAME}}|EnergyLeech}}%</span><br><!--
-->Bonus Range <span style="float:right;">{{:{{ROOTPAGENAME}}|BonusRange}}%</span><br><!--
-->Armor Pen. <span style="float:right;">{{:{{ROOTPAGENAME}}|ArmorPiercing}}%</span></div>{{Clear}}<!--
--><div style="text-align:center;">{{Tooltip rule}}'''Attributes'''<br><!--
--><div style="text-align:center;">{{Tooltip rule}}'''Attributes'''<br><!--
--><div style="width:15%;display:inline-block;">STR</div><!--
--><div style="width:15%;display:inline-block;">STR</div><!--
Line 65: Line 69:
--><div style="width:15%;display:inline-block;">PRC</div><!--
--><div style="width:15%;display:inline-block;">PRC</div><!--
--><div style="width:15%;display:inline-block;">VIT</div><!--
--><div style="width:15%;display:inline-block;">VIT</div><!--
--><div style="width:15%;display:inline-block;">WIL</div><!--
--><div style="width:15%;display:inline-block;">WIL</div><br><!--
--><div style="width:15%;display:inline-block;">{{:{{ROOTPAGENAME}}|STR}}</div><!--
--><div style="width:15%;display:inline-block;">{{:{{ROOTPAGENAME}}|STR}}</div><!--
--><div style="width:15%;display:inline-block;">{{:{{ROOTPAGENAME}}|AGL}}</div><!--
--><div style="width:15%;display:inline-block;">{{:{{ROOTPAGENAME}}|AGL}}</div><!--

Revision as of 17:30, 2 May 2021

Template-info.png Documentation

This is template created for use together with the Template:Tooltip hover box template. Copy this code to a specific Enemy page (for example, Skeleton Swordsman):

{{ {{{1|Tooltip hover box}}}|title= {{Enemy}} }}

It will automatically load the attrbutes from Enemy data and fill them into the format you see below.

You can provide the enemy name as first parameter, otherwise the pagename is used.

Enemy body types

Enemies gain certain additional attributes (mainly Resistances) from their body types. These bonuses are hardcoded in the Enemy template as the "Matter" variable and added to each enemy's base attributes.

Example

Physical Enemy%

Slashing Enemy%
Piercing Enemy%
Crushing Enemy%
Rending Enemy%
Nature Enemy%

Fire Enemy%
Frost Enemy%
Shock Enemy%
Poison Enemy%
Caustic Enemy%

Magic Enemy%

Unholy Enemy%
Arcane Enemy%
Sacred Enemy%
Psionic Enemy%

Defensive stats
Block Chance Enemy%
Bleed Res. Enemy%
Control Res. Enemy%
Protection Enemy
Block Power Enemy
Pain Res. Enemy%
Move Res. Enemy%
Dodge Chance Enemy%

Offensive stats
Crit Chance Enemy%
Accuracy Enemy%
Counter Chance Enemy%
Stun Chance Enemy%
Knockb. Chance Enemy%
Life Leech Enemy%
Vision Enemy
Magic Power Enemy%
Crit Efficiency Enemy%
Bleed Chance Enemy%
Fumble Chance Enemy%
Daze Chance Enemy%
Immob. Chance Enemy%
Energy Leech Enemy%
Bonus Range Enemy%
Armor Pen. Enemy%

Attributes
STR
AGL
PRC
VIT
WIL


Miscellaneous
Faction:
Enemy
Size:
Enemy