Difference between revisions of "Template:Enemy"
Jump to navigation
Jump to search
Defensive stats
Offensive stats
Defensive stats
Offensive stats
old>Realpsojed (styling for collapsible stats) |
old>Realpsojed (5px padding for superior resistance types and removing some linebreaks) |
||
Line 1: | Line 1: | ||
<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 13: | Line 13: | ||
-->{{Tooltip rule}}'''Resistances'''</div><!-- | -->{{Tooltip rule}}'''Resistances'''</div><!-- | ||
--><div style="width: 142px; float: left; padding-right: 5px; min-height: 1px;"><!-- | --><div style="width: 142px; float: left; padding-right: 5px; min-height: 1px;"><!-- | ||
-->{{#ifeq: {{:{{ROOTPAGENAME}}|PhysicalResistance}} | 0 | |Physical <span style="float:right;">{{:{{ROOTPAGENAME}}|PhysicalResistance}}%</span><br>< | -->{{#ifeq: {{:{{ROOTPAGENAME}}|PhysicalResistance}} | 0 | |<div style="padding-bottom: 5px;">Physical <span style="float:right;">{{:{{ROOTPAGENAME}}|PhysicalResistance}}%</span><br></div>}}<!-- | ||
-->{{#ifeq: {{:{{ROOTPAGENAME}}|SlashingResistance}} | 0 | |Slashing <span style="float:right;">{{:{{ROOTPAGENAME}}|SlashingResistance}}%</span><br>}}<!-- | -->{{#ifeq: {{:{{ROOTPAGENAME}}|SlashingResistance}} | 0 | |Slashing <span style="float:right;">{{:{{ROOTPAGENAME}}|SlashingResistance}}%</span><br>}}<!-- | ||
-->{{#ifeq: {{:{{ROOTPAGENAME}}|PiercingResistance}} | 0 | |Piercing <span style="float:right;">{{:{{ROOTPAGENAME}}|PiercingResistance}}%</span><br>}}<!-- | -->{{#ifeq: {{:{{ROOTPAGENAME}}|PiercingResistance}} | 0 | |Piercing <span style="float:right;">{{:{{ROOTPAGENAME}}|PiercingResistance}}%</span><br>}}<!-- | ||
Line 19: | Line 19: | ||
-->{{#ifeq: {{:{{ROOTPAGENAME}}|RendingResistance}} | 0 | |Rending <span style="float:right;">{{:{{ROOTPAGENAME}}|RendingResistance}}%</span><br>}}</div><!-- | -->{{#ifeq: {{:{{ROOTPAGENAME}}|RendingResistance}} | 0 | |Rending <span style="float:right;">{{:{{ROOTPAGENAME}}|RendingResistance}}%</span><br>}}</div><!-- | ||
--><div style="width: 142px; float: left; padding-left: 5px; min-height: 1px;"><!-- | --><div style="width: 142px; float: left; padding-left: 5px; min-height: 1px;"><!-- | ||
-->{{#ifeq: {{:{{ROOTPAGENAME}}|NatureResistance}} | 0 | |Nature <span style="float:right;">{{:{{ROOTPAGENAME}}|NatureResistance}}%</span><br>< | -->{{#ifeq: {{:{{ROOTPAGENAME}}|NatureResistance}} | 0 | |<div style="padding-bottom: 5px;">Nature <span style="float:right;">{{:{{ROOTPAGENAME}}|NatureResistance}}%</span><br></div>}}<!-- | ||
-->{{#ifeq: {{:{{ROOTPAGENAME}}|FireResistance}} | 0 | |Fire <span style="float:right;">{{C|Fire|{{:{{ROOTPAGENAME}}|FireResistance}}%}}</span><br>}}<!-- | -->{{#ifeq: {{:{{ROOTPAGENAME}}|FireResistance}} | 0 | |Fire <span style="float:right;">{{C|Fire|{{:{{ROOTPAGENAME}}|FireResistance}}%}}</span><br>}}<!-- | ||
-->{{#ifeq: {{:{{ROOTPAGENAME}}|FrostResistance}} | 0 | |Frost <span style="float:right;">{{C|Frost|{{:{{ROOTPAGENAME}}|FrostResistance}}%}}</span><br>}}<!-- | -->{{#ifeq: {{:{{ROOTPAGENAME}}|FrostResistance}} | 0 | |Frost <span style="float:right;">{{C|Frost|{{:{{ROOTPAGENAME}}|FrostResistance}}%}}</span><br>}}<!-- | ||
Line 25: | Line 25: | ||
-->{{#ifeq: {{:{{ROOTPAGENAME}}|PoisonResistance}} | 0 | |Poison <span style="float:right;">{{C|Poison|{{:{{ROOTPAGENAME}}|PoisonResistance}}%}}</span><br>}}<!-- | -->{{#ifeq: {{:{{ROOTPAGENAME}}|PoisonResistance}} | 0 | |Poison <span style="float:right;">{{C|Poison|{{:{{ROOTPAGENAME}}|PoisonResistance}}%}}</span><br>}}<!-- | ||
-->{{#ifeq: {{:{{ROOTPAGENAME}}|CausticResistance}} | 0 | |Caustic <span style="float:right;">{{C|Caustic|{{:{{ROOTPAGENAME}}|CausticResistance}}%}}</span><br>}}</div>{{Clear}}<!-- | -->{{#ifeq: {{:{{ROOTPAGENAME}}|CausticResistance}} | 0 | |Caustic <span style="float:right;">{{C|Caustic|{{:{{ROOTPAGENAME}}|CausticResistance}}%}}</span><br>}}</div>{{Clear}}<!-- | ||
--><div style="width: 100%; text-align:center; min-height: 1px;"><!-- | --><div style="width: 100%; text-align:center; min-height: 1px; padding-top: 5px;"><!-- | ||
-->{{#ifeq: {{:{{ROOTPAGENAME}}|MagicResistance}} | 0 | |< | -->{{#ifeq: {{:{{ROOTPAGENAME}}|MagicResistance}} | 0 | |<div style="padding-bottom: 5px;">Magic {{:{{ROOTPAGENAME}}|MagicResistance}}%<br></div>}}</div>{{Clear}}<!-- | ||
--><div style="width: 142px; float: left; padding-right: 5px; min-height: 1px;"><!-- | --><div style="width: 142px; float: left; padding-right: 5px; min-height: 1px;"><!-- | ||
-->{{#ifeq: {{:{{ROOTPAGENAME}}|UnholyResistance}} | 0 | |Unholy <span style="float:right;">{{C|Unholy|{{:{{ROOTPAGENAME}}|UnholyResistance}}%}}</span><br>}}<!-- | -->{{#ifeq: {{:{{ROOTPAGENAME}}|UnholyResistance}} | 0 | |Unholy <span style="float:right;">{{C|Unholy|{{:{{ROOTPAGENAME}}|UnholyResistance}}%}}</span><br>}}<!-- |
Revision as of 17:41, 2 May 2021
Magic Enemy%
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%
</includeonly>
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
Magic Enemy%
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%