Difference between revisions of "Template:Enemy"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(remove padding, use justify-content: space between for flexbox)
old>Realpsojed
(remove expand button in tooltips)
Line 1: Line 1:
<includeonly><div style="width: 300px;" class="mw-collapsible mw-collapsed" data-expandtext="Show all statistics" data-collapsetext="Hide all statistics">
<includeonly>{{#ifeq: {{SUBPAGENAME}} | Tooltip |<div style="width: 300px;">|<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}} <!--

Revision as of 19:34, 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%
Nature Enemy%
Magic Enemy%
Slashing Enemy%
Piercing Enemy%
Crushing Enemy%
Rending Enemy%
Fire Enemy%
Frost Enemy%
Shock Enemy%
Poison Enemy%
Caustic 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 xExpression error: Unrecognized punctuation character "[".
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