Difference between revisions of "Template:Enemy"
Jump to navigation
Jump to search
Defensive stats
Offensive stats
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; | --><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><!-- | ||
--> | -->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><!-- | ||
--> | -->Protection <span style="float:right;">{{:{{ROOTPAGENAME}}|Protection}}</span></div><!-- | ||
--><div style="width: 142px; float: left; padding-left: 5px;> | --><div style="width: 142px; float: left; padding-left: 5px; min-height: 1px;"><!-- | ||
--> | -->Block Power <span style="float:right;">{{:{{ROOTPAGENAME}}|BlockPower}}</span><br><!-- | ||
--> | -->Pain Res. <span style="float:right;">{{:{{ROOTPAGENAME}}|PainResistance}}%</span><br><!-- | ||
--> | -->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
Documentation
[purge]
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
Defensive stats
Offensive stats
Crit Chance Enemy%
Accuracy Enemy%
Counter Chance Enemy%
Stun Chance Enemy%
Knockb. Chance Enemy%
Life Leech Enemy%
Vision Enemy
Magic Power Enemy%
Accuracy Enemy%
Counter Chance Enemy%
Stun Chance Enemy%
Knockb. Chance Enemy%
Life Leech Enemy%
Vision Enemy
Magic Power Enemy%