Difference between revisions of "Template:Enemy"
Jump to navigation
Jump to search
old>Realpsojed (changed to margin left and right, added to HP + MP aswell) |
old>Phoe nixx (use uniform horizontal rule) |
||
Line 1: | Line 1: | ||
{| width=300px; | <includeonly>{| width=300px; | ||
|style="text-align:center;"|<span style="font-size: 20px;">{{ROOTPAGENAME}}</span><br>Level {{:{{ROOTPAGENAME}}|Level}} {{:{{ROOTPAGENAME}}|Type}} | |style="text-align:center;"|<span style="font-size: 20px;">{{ROOTPAGENAME}}</span><br>Level {{:{{ROOTPAGENAME}}|Level}} {{:{{ROOTPAGENAME}}|Type}} | ||
|- | |- | ||
|style="text-align:center;"|[[File:{{ROOTPAGENAME}}.png|link={{ROOTPAGENAME}}/Tooltip|alt={{ROOTPAGENAME}}|{{ROOTPAGENAME}}]] | |style="text-align:center;"|[[File:{{ROOTPAGENAME}}.png|link={{ROOTPAGENAME}}/Tooltip|alt={{ROOTPAGENAME}}|{{ROOTPAGENAME}}]] | ||
|- | |- | ||
|style="text-align:center;"|<div style="margin-left:5px;margin-right:5px;display:inline-block;">Health: {{:{{ROOTPAGENAME}}|Health}}</div><div style="margin-left:5px;margin-right:5px;display:inline-block;">Energy: {{:{{ROOTPAGENAME}}|Energy}}</div> | |style="text-align:center;"|<div style="margin-left:5px;margin-right:5px;display:inline-block;">Health: {{:{{ROOTPAGENAME}}|Health}}</div><div style="margin-left:5px;margin-right:5px;display:inline-block;">Energy: {{:{{ROOTPAGENAME}}|Energy}}</div>{{Tooltip rule}} | ||
|- | |- | ||
|style="text-align:center;"|<div style="width:15%;display:inline-block;">STR</div> <div style="width:15%;display:inline-block;">AGL</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;">WIL</div> | |style="text-align:center;"|<div style="width:15%;display:inline-block;">STR</div> <div style="width:15%;display:inline-block;">AGL</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;">WIL</div> | ||
|- | |- | ||
|style="text-align:center;"|<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}}|PRC}}</div> <div style="width:15%;display:inline-block;">{{:{{ROOTPAGENAME}}|VIT}}</div> <div style="width:15%;display:inline-block;">{{:{{ROOTPAGENAME}}|WIL}}</div> | |style="text-align:center;"|<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}}|PRC}}</div> <div style="width:15%;display:inline-block;">{{:{{ROOTPAGENAME}}|VIT}}</div> <div style="width:15%;display:inline-block;">{{:{{ROOTPAGENAME}}|WIL}}</div> {{Tooltip rule}} | ||
|- | |- | ||
|style="text-align:center;"|<div style="margin-left:5px;margin-right:5px;display:inline-block;">{{C|{{:{{ROOTPAGENAME}}|DamageType1}}|{{:{{ROOTPAGENAME}}|Damage1}}}} [[File:{{:{{ROOTPAGENAME}}|DamageType1}}_icon.png|alt={{:{{ROOTPAGENAME}}|DamageType1}} Damage|link=|{{:{{ROOTPAGENAME}}|DamageType1}} Damage|28px]]</div>{{#if: {{:{{ROOTPAGENAME}}|Damage2}} | <div style="margin-left:5px;margin-right:5px;display:inline-block;">{{C|{{:{{ROOTPAGENAME}}|DamageType2}}|{{:{{ROOTPAGENAME}}|Damage2}}}} [[File:{{:{{ROOTPAGENAME}}|DamageType2}}_icon.png|alt={{:{{ROOTPAGENAME}}|DamageType2}} Damage|link=|{{:{{ROOTPAGENAME}}|DamageType2}} Damage|28px]]</div>| }}{{#if: {{:{{ROOTPAGENAME}}|Damage3}} | <div style="margin-left:5px;margin-right:5px;display:inline-block;">{{C|{{:{{ROOTPAGENAME}}|DamageType3}}|{{:{{ROOTPAGENAME}}|Damage3}}}} [[File:{{:{{ROOTPAGENAME}}|DamageType3}}_icon.png|alt={{:{{ROOTPAGENAME}}|DamageType3}} Damage|link=|{{:{{ROOTPAGENAME}}|DamageType3}} Damage|28px]]</div>| }}{{#if: {{:{{ROOTPAGENAME}}|Damage4}} | <div style="margin-left:5px;margin-right:5px;display:inline-block;">{{C|{{:{{ROOTPAGENAME}}|DamageType4}}|{{:{{ROOTPAGENAME}}|Damage4}}}} [[File:{{:{{ROOTPAGENAME}}|DamageType4}}_icon.png|alt={{:{{ROOTPAGENAME}}|DamageType4}} Damage|link=|{{:{{ROOTPAGENAME}}|DamageType4}} Damage|28px]]</div>| }}<br><br> | |style="text-align:center;"|<div style="margin-left:5px;margin-right:5px;display:inline-block;">{{C|{{:{{ROOTPAGENAME}}|DamageType1}}|{{:{{ROOTPAGENAME}}|Damage1}}}} [[File:{{:{{ROOTPAGENAME}}|DamageType1}}_icon.png|alt={{:{{ROOTPAGENAME}}|DamageType1}} Damage|link=|{{:{{ROOTPAGENAME}}|DamageType1}} Damage|28px]]</div>{{#if: {{:{{ROOTPAGENAME}}|Damage2}} | <div style="margin-left:5px;margin-right:5px;display:inline-block;">{{C|{{:{{ROOTPAGENAME}}|DamageType2}}|{{:{{ROOTPAGENAME}}|Damage2}}}} [[File:{{:{{ROOTPAGENAME}}|DamageType2}}_icon.png|alt={{:{{ROOTPAGENAME}}|DamageType2}} Damage|link=|{{:{{ROOTPAGENAME}}|DamageType2}} Damage|28px]]</div>| }}{{#if: {{:{{ROOTPAGENAME}}|Damage3}} | <div style="margin-left:5px;margin-right:5px;display:inline-block;">{{C|{{:{{ROOTPAGENAME}}|DamageType3}}|{{:{{ROOTPAGENAME}}|Damage3}}}} [[File:{{:{{ROOTPAGENAME}}|DamageType3}}_icon.png|alt={{:{{ROOTPAGENAME}}|DamageType3}} Damage|link=|{{:{{ROOTPAGENAME}}|DamageType3}} Damage|28px]]</div>| }}{{#if: {{:{{ROOTPAGENAME}}|Damage4}} | <div style="margin-left:5px;margin-right:5px;display:inline-block;">{{C|{{:{{ROOTPAGENAME}}|DamageType4}}|{{:{{ROOTPAGENAME}}|Damage4}}}} [[File:{{:{{ROOTPAGENAME}}|DamageType4}}_icon.png|alt={{:{{ROOTPAGENAME}}|DamageType4}} Damage|link=|{{:{{ROOTPAGENAME}}|DamageType4}} Damage|28px]]</div>| }}<br><br> | ||
|- | |- | ||
|<div style="float:left;margin-left:3%;">[[File:Accuracy_icon.png|alt=Accuracy|link=|Accuracy|28px]] {{:{{ROOTPAGENAME}}|Accuracy}}%<br>[[File:Block_Chance_icon.png|alt=Block Chance|link=|Block Chance|28px]] {{:{{ROOTPAGENAME}}|BlockChance}}%<br>[[File:Crit_Chance_icon.png|alt=Crit Chance|link=|Crit Chance|28px]] {{:{{ROOTPAGENAME}}|CritChance}}%<br>[[File:Armor_Penetration_icon.png|alt=Armor Penetration|link=|Armor Penetration|28px]] {{:{{ROOTPAGENAME}}|ArmorPiercing}}%<br><br>[[File:Bleed_Chance_icon.png|alt=Bleed Chance|link=|Bleed Chance|28px]] {{:{{ROOTPAGENAME}}|BleedChance}}%<br>[[File:Stun_Chance_icon.png|alt=Stun Chance|link=|Stun Chance|28px]] {{:{{ROOTPAGENAME}}|StunChance}}%<br>[[File:Knockback_Chance_icon.png|alt=Knockback Chance|link=|Knockback Chance|28px]] {{:{{ROOTPAGENAME}}|KnockbackChance}}%<br>[[File:Range_icon.png|alt=Range|link=|Range|28px]] {{:{{ROOTPAGENAME}}|BonusRange}}</div><div style="float:right;margin-right:3%;">[[File:Dodge_Chance_icon.png|alt=Dodge Chance|link=|Dodge Chance|28px]] {{:{{ROOTPAGENAME}}|DodgeChance}}%<br>[[File:Fumble_Chance_icon.png|alt=Fumble Chance|link=|Fumble Chance|28px]] {{:{{ROOTPAGENAME}}|FumbleChance}}%<br>[[File:Counter_Chance_icon.png|alt=Counter Chance|link=|Counter Chance|28px]] {{:{{ROOTPAGENAME}}|CounterChance}}%<br>[[File:Magic_Power_icon.png|alt=Magic Power|link=|Magic Power|28px]] {{:{{ROOTPAGENAME}}|MagicPower}}%<br><br>[[File:Pain_Resistance_icon.png|alt=Pain Resistance|link=|Pain Resistance|28px]] {{:{{ROOTPAGENAME}}|PainResistance}}%<br>[[File:Control_Resistance_icon.png|alt=Control Resistance|link=|Control Resistance|28px]] {{:{{ROOTPAGENAME}}|ControlResistance}}%<br>[[File:Move_Resistance_icon.png|alt=Move Resistance|link=|Move Resistance|28px]] {{:{{ROOTPAGENAME}}|MoveResistance}}%<br>[[File:Energy_Leech_icon.png|alt=Energy Leech|link=|Energy Leech|28px]] {{:{{ROOTPAGENAME}}|EnergyLeech}}%</div><div style="width:70px;margin:0 auto;">[[File:Protection_icon.png|alt=Protection|link=|Protection|28px]] {{:{{ROOTPAGENAME}}|Protection}}<br>[[File:Block_Power_icon.png|alt=Block Power|link=|Block Power|28px]] {{:{{ROOTPAGENAME}}|BlockPower}}<br>[[File:Crit_Efficiency_icon.png|alt=Crit Efficiency|link=|Crit Efficiency|28px]] {{:{{ROOTPAGENAME}}|CritEfficiency}}%<br>[[File:Vision_icon.png|alt=Vision|link=|Vision|28px]] {{:{{ROOTPAGENAME}}|Vision}}<br><br>[[File:Bleed_Resistance_icon.png|alt=Bleed Resistance|link=|Bleed Resistance|28px]] {{:{{ROOTPAGENAME}}|BleedResistance}}%<br>[[File:Daze_Chance_icon.png|alt=Daze Chance|link=|Daze Chance|28px]] {{:{{ROOTPAGENAME}}|DazeChance}}%<br>[[File:Immobilize_Chance_icon.png|alt=Immobilize Chance|link=|Immobilize Chance|28px]] {{:{{ROOTPAGENAME}}|ImmobilizeChance}}%<br>[[File:Life_Leech_icon.png|alt=Life Leech|link=|Life Leech|28px]] {{:{{ROOTPAGENAME}}|LifeLeech}}%</div> | |<div style="float:left;margin-left:3%;">[[File:Accuracy_icon.png|alt=Accuracy|link=|Accuracy|28px]] {{:{{ROOTPAGENAME}}|Accuracy}}%<br>[[File:Block_Chance_icon.png|alt=Block Chance|link=|Block Chance|28px]] {{:{{ROOTPAGENAME}}|BlockChance}}%<br>[[File:Crit_Chance_icon.png|alt=Crit Chance|link=|Crit Chance|28px]] {{:{{ROOTPAGENAME}}|CritChance}}%<br>[[File:Armor_Penetration_icon.png|alt=Armor Penetration|link=|Armor Penetration|28px]] {{:{{ROOTPAGENAME}}|ArmorPiercing}}%<br><br>[[File:Bleed_Chance_icon.png|alt=Bleed Chance|link=|Bleed Chance|28px]] {{:{{ROOTPAGENAME}}|BleedChance}}%<br>[[File:Stun_Chance_icon.png|alt=Stun Chance|link=|Stun Chance|28px]] {{:{{ROOTPAGENAME}}|StunChance}}%<br>[[File:Knockback_Chance_icon.png|alt=Knockback Chance|link=|Knockback Chance|28px]] {{:{{ROOTPAGENAME}}|KnockbackChance}}%<br>[[File:Range_icon.png|alt=Range|link=|Range|28px]] {{:{{ROOTPAGENAME}}|BonusRange}}</div><div style="float:right;margin-right:3%;">[[File:Dodge_Chance_icon.png|alt=Dodge Chance|link=|Dodge Chance|28px]] {{:{{ROOTPAGENAME}}|DodgeChance}}%<br>[[File:Fumble_Chance_icon.png|alt=Fumble Chance|link=|Fumble Chance|28px]] {{:{{ROOTPAGENAME}}|FumbleChance}}%<br>[[File:Counter_Chance_icon.png|alt=Counter Chance|link=|Counter Chance|28px]] {{:{{ROOTPAGENAME}}|CounterChance}}%<br>[[File:Magic_Power_icon.png|alt=Magic Power|link=|Magic Power|28px]] {{:{{ROOTPAGENAME}}|MagicPower}}%<br><br>[[File:Pain_Resistance_icon.png|alt=Pain Resistance|link=|Pain Resistance|28px]] {{:{{ROOTPAGENAME}}|PainResistance}}%<br>[[File:Control_Resistance_icon.png|alt=Control Resistance|link=|Control Resistance|28px]] {{:{{ROOTPAGENAME}}|ControlResistance}}%<br>[[File:Move_Resistance_icon.png|alt=Move Resistance|link=|Move Resistance|28px]] {{:{{ROOTPAGENAME}}|MoveResistance}}%<br>[[File:Energy_Leech_icon.png|alt=Energy Leech|link=|Energy Leech|28px]] {{:{{ROOTPAGENAME}}|EnergyLeech}}%</div><div style="width:70px;margin:0 auto;">[[File:Protection_icon.png|alt=Protection|link=|Protection|28px]] {{:{{ROOTPAGENAME}}|Protection}}<br>[[File:Block_Power_icon.png|alt=Block Power|link=|Block Power|28px]] {{:{{ROOTPAGENAME}}|BlockPower}}<br>[[File:Crit_Efficiency_icon.png|alt=Crit Efficiency|link=|Crit Efficiency|28px]] {{:{{ROOTPAGENAME}}|CritEfficiency}}%<br>[[File:Vision_icon.png|alt=Vision|link=|Vision|28px]] {{:{{ROOTPAGENAME}}|Vision}}<br><br>[[File:Bleed_Resistance_icon.png|alt=Bleed Resistance|link=|Bleed Resistance|28px]] {{:{{ROOTPAGENAME}}|BleedResistance}}%<br>[[File:Daze_Chance_icon.png|alt=Daze Chance|link=|Daze Chance|28px]] {{:{{ROOTPAGENAME}}|DazeChance}}%<br>[[File:Immobilize_Chance_icon.png|alt=Immobilize Chance|link=|Immobilize Chance|28px]] {{:{{ROOTPAGENAME}}|ImmobilizeChance}}%<br>[[File:Life_Leech_icon.png|alt=Life Leech|link=|Life Leech|28px]] {{:{{ROOTPAGENAME}}|LifeLeech}}%</div>{{Tooltip rule}} | ||
|- | |- | ||
|<div style="float:left;margin-left:3%;">[[File:Physical_Resistance_icon.png|alt=Physical Resistance|link=|Physical Resistance|28px]] {{:{{ROOTPAGENAME}}|PhysicalResistance}}%<br><br>[[File:Slashing_Resistance_icon.png|alt=Slashing Resistance|link=|Slashing Resistance|28px]] {{:{{ROOTPAGENAME}}|SlashingResistance}}%<br>[[File:Piercing_Resistance_icon.png|alt=Piercing Resistance|link=|Piercing Resistance|28px]] {{:{{ROOTPAGENAME}}|PiercingResistance}}%<br>[[File:Crushing_Resistance_icon.png|alt=Crushing Resistance|link=|Crushing Resistance|28px]] {{:{{ROOTPAGENAME}}|CrushingResistance}}%<br>[[File:Rending_Resistance_icon.png|alt=Rending Resistance|link=|Rending Resistance|28px]] {{:{{ROOTPAGENAME}}|RendingResistance}}%<br> </div><div style="float:right;margin-right:3%;">[[File:Magic_Resistance_icon.png|alt=Magic Resistance|link=|Magic Resistance|28px]] {{:{{ROOTPAGENAME}}|MagicResistance}}%<br><br>[[File:Arcane_Resistance_icon.png|alt=Arcane Resistance|link=|Arcane Resistance|28px]] {{:{{ROOTPAGENAME}}|ArcaneResistance}}%<br>[[File:Unholy_Resistance_icon.png|alt=Unholy Resistance|link=|Unholy Resistance|28px]] {{:{{ROOTPAGENAME}}|UnholyResistance}}%<br>[[File:Sacred_Resistance_icon.png|alt=Sacred Resistance|link=|Sacred Resistance|28px]] {{:{{ROOTPAGENAME}}|SacredResistance}}%<br>[[File:Psionic_Resistance_icon.png|alt=Psionic Resistance|link=|Psionic Resistance|28px]] {{:{{ROOTPAGENAME}}|PsionicResistance}}%<br> </div><div style="width:70px;margin:0 auto;">[[File:Nature_Resistance_icon.png|alt=Nature Resistance|link=|Nature Resistance|28px]] {{:{{ROOTPAGENAME}}|NatureResistance}}%<br><br>[[File:Fire_Resistance_icon.png|alt=Fire Resistance|link=|Fire Resistance|28px]] {{:{{ROOTPAGENAME}}|FireResistance}}%<br>[[File:Frost_Resistance_icon.png|alt=Frost Resistance|link=|Frost Resistance|28px]] {{:{{ROOTPAGENAME}}|FrostResistance}}%<br>[[File:Shock_Resistance_icon.png|alt=Shock Resistance|link=|Shock Resistance|28px]] {{:{{ROOTPAGENAME}}|ShockResistance}}%<br>[[File:Caustic_Resistance_icon.png|alt=Caustic Resistance|link=|Caustic Resistance|28px]] {{:{{ROOTPAGENAME}}|CausticResistance}}%<br>[[File:Poison_Resistance_icon.png|alt=Poison Resistance|link=|Poison Resistance|28px]] {{:{{ROOTPAGENAME}}|PoisonResistance}}%</div> | |<div style="float:left;margin-left:3%;">[[File:Physical_Resistance_icon.png|alt=Physical Resistance|link=|Physical Resistance|28px]] {{:{{ROOTPAGENAME}}|PhysicalResistance}}%<br><br>[[File:Slashing_Resistance_icon.png|alt=Slashing Resistance|link=|Slashing Resistance|28px]] {{:{{ROOTPAGENAME}}|SlashingResistance}}%<br>[[File:Piercing_Resistance_icon.png|alt=Piercing Resistance|link=|Piercing Resistance|28px]] {{:{{ROOTPAGENAME}}|PiercingResistance}}%<br>[[File:Crushing_Resistance_icon.png|alt=Crushing Resistance|link=|Crushing Resistance|28px]] {{:{{ROOTPAGENAME}}|CrushingResistance}}%<br>[[File:Rending_Resistance_icon.png|alt=Rending Resistance|link=|Rending Resistance|28px]] {{:{{ROOTPAGENAME}}|RendingResistance}}%<br> </div><div style="float:right;margin-right:3%;">[[File:Magic_Resistance_icon.png|alt=Magic Resistance|link=|Magic Resistance|28px]] {{:{{ROOTPAGENAME}}|MagicResistance}}%<br><br>[[File:Arcane_Resistance_icon.png|alt=Arcane Resistance|link=|Arcane Resistance|28px]] {{:{{ROOTPAGENAME}}|ArcaneResistance}}%<br>[[File:Unholy_Resistance_icon.png|alt=Unholy Resistance|link=|Unholy Resistance|28px]] {{:{{ROOTPAGENAME}}|UnholyResistance}}%<br>[[File:Sacred_Resistance_icon.png|alt=Sacred Resistance|link=|Sacred Resistance|28px]] {{:{{ROOTPAGENAME}}|SacredResistance}}%<br>[[File:Psionic_Resistance_icon.png|alt=Psionic Resistance|link=|Psionic Resistance|28px]] {{:{{ROOTPAGENAME}}|PsionicResistance}}%<br> </div><div style="width:70px;margin:0 auto;">[[File:Nature_Resistance_icon.png|alt=Nature Resistance|link=|Nature Resistance|28px]] {{:{{ROOTPAGENAME}}|NatureResistance}}%<br><br>[[File:Fire_Resistance_icon.png|alt=Fire Resistance|link=|Fire Resistance|28px]] {{:{{ROOTPAGENAME}}|FireResistance}}%<br>[[File:Frost_Resistance_icon.png|alt=Frost Resistance|link=|Frost Resistance|28px]] {{:{{ROOTPAGENAME}}|FrostResistance}}%<br>[[File:Shock_Resistance_icon.png|alt=Shock Resistance|link=|Shock Resistance|28px]] {{:{{ROOTPAGENAME}}|ShockResistance}}%<br>[[File:Caustic_Resistance_icon.png|alt=Caustic Resistance|link=|Caustic Resistance|28px]] {{:{{ROOTPAGENAME}}|CausticResistance}}%<br>[[File:Poison_Resistance_icon.png|alt=Poison Resistance|link=|Poison Resistance|28px]] {{:{{ROOTPAGENAME}}|PoisonResistance}}%</div>{{Tooltip rule}} | ||
|- | |- | ||
|style="text-align:center;"|<div style="width:30%;display:inline-block;">Faction:<br>{{:{{ROOTPAGENAME}}|Faction}}</div><div style="width:30%;display:inline-block;">Size: {{:{{ROOTPAGENAME}}|Size}}<br> </div><div style="width:30%;display:inline-block;">XP: {{:{{ROOTPAGENAME}}|XP}}<br> </div> | |style="text-align:center;"|<div style="width:30%;display:inline-block;">Faction:<br>{{:{{ROOTPAGENAME}}|Faction}}</div><div style="width:30%;display:inline-block;">Size: {{:{{ROOTPAGENAME}}|Size}}<br> </div><div style="width:30%;display:inline-block;">XP: {{:{{ROOTPAGENAME}}|XP}}<br> </div> | ||
|- | |- | ||
|style="color:#9d7969;text-align:justify"| | |style="color:#9d7969;text-align:justify"|{{Tooltip rule}}{{:{{ROOTPAGENAME}}|Description}} | ||
|} | |} | ||
</includeonly><noinclude>{{doc}} | </includeonly><noinclude>{{doc}} | ||
[[Category:Tooltip templates]]</noinclude> | [[Category:Tooltip templates]]</noinclude> |
Revision as of 15:16, 29 October 2020
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.