Wynncraft Wiki
(Template for items with preset stats)
 
(Mixed up links, correct content now (Description of Template:Identification/Preset))
Line 1: Line 1:
  +
The Identification template is used to simplify the creation of identification tables, without copying and pasting MediaWiki code from page to page. Should be used similar to an info box, and supports all identifications.
<!-- Template based on the Identifications Template -->
 
  +
<!-- Modified by Lord_Helmchen98 -->
 
  +
This template also automatically generates the unit for each Identification, for example "/4s" , "%" , etc. So don't pass in the unit when using this template.
<includeonly>{| class="wikitable" style="text-align: center;" cellspacing="0"
 
  +
! Identification !! Preset Value
 
  +
== Usage ==
  +
  +
<code><nowiki>{{</nowiki>Identification<br>
  +
| health_bonus = <br>
  +
| raw_health_regen = <br>
  +
| health_regen = <br>
  +
| mana_regen = <br>
  +
| life_steal = <br>
  +
| mana_steal = <br>
  +
| xp_bonus = <br>
  +
| loot_bonus = <br>
  +
| reflection = <br>
  +
| thorns = <br>
  +
| strength = <br>
  +
| dexterity = <br>
  +
| intelligence = <br>
  +
| defense = <br>
  +
| agility = <br>
  +
| exploding = <br>
  +
| walk_speed = <br>
  +
| attack_speed = <br>
  +
| poison = <br>
  +
| soul_point_regen = <br>
  +
| stealing = <br>
  +
| raw_melee_damage = <br>
  +
| melee_damage = <br>
  +
| raw_spell_damage = <br>
  +
| spell_damage = <br>
  +
| earth_damage = <br>
  +
| thunder_damage = <br>
  +
| water_damage = <br>
  +
| fire_damage = <br>
  +
| air_damage = <br>
  +
| earth_defense = <br>
  +
| thunder_defense = <br>
  +
| water_defense = <br>
  +
| fire_defense = <br>
  +
| air_defense = <br>
  +
<nowiki>}}</nowiki></code>
  +
  +
== Examples ==
  +
{| class="wikitable"
  +
!Example !!Result
 
|-
 
|-
  +
| <code><nowiki>{{Identification/Preset|health_regen=-10}</nowiki></code> || {{Identification/Preset|health_regen=-10}}
<!-- HEALTH BONUS -->
 
{{#if:{{{health_bonus|}}}|{{!}} &nbsp;Health Bonus&nbsp;|}}
 
{{#if:{{{health_bonus|}}}|{{!}} style = "color: {{#ifexpr:{{{health_bonus}}} > 0 | green | red }};" {{!}} &nbsp;{{{health_bonus}}} &nbsp;|}}
 
 
|-
 
|-
  +
| <code><nowiki>{{Identification/Preset|fire_damage = +5}}</nowiki></code> || {{Identification/Preset|fire_damage = +5}}
<!-- RAW HEALTH REGEN -->
 
{{#if:{{{raw_health_regen|}}}|{{!}} &nbsp;Raw Health Regen&nbsp;|}}
 
{{#if:{{{raw_health_regen|}}}|{{!}} style = "color: {{#ifexpr:{{{raw_health_regen}}} > 0 | green | red }};" {{!}} &nbsp;{{{raw_health_regen}}} &nbsp;|}}
 
 
|-
 
|-
  +
|<code><nowiki>{{Identification/Preset|attack_speed = +1}}</nowiki></code> || {{Identification/Preset|attack_speed = +1}}
<!-- HEALTH REGEN -->
 
 
|}
{{#if:{{{health_regen|}}}|{{!}} &nbsp;Health Regen&nbsp;|}}
 
  +
{{#if:{{{health_regen|}}}|{{!}} style = "color: {{#ifexpr:{{{health_regen}}} > 0 | green | red }};" {{!}} &nbsp;{{{health_regen}}} %&nbsp;|}}
 
  +
== Reference ==
  +
Here is a table of available fields and their units if there is any confusion.
  +
{| class="wikitable"
  +
!Identification !!Unit !!Identification !! Unit !!Identification !! Unit !!Identification !! Unit !!Identification !! Unit
 
|-
 
|-
  +
| strength || none
<!-- MANA REGEN --
 
  +
| dexterity || none
{{#if:{{{mana_regen|}}}|{{!}} &nbsp;Mana Regen&nbsp;|}}
 
  +
| intelligence || none
{{#if:{{{mana_regen|}}}|{{!}} style = "color: {{#ifexpr:{{{mana_regen}}} > 0 | green | red }};" {{!}} &nbsp;{{{mana_regen}}} / 4s&nbsp;|}}
 
  +
| defense || none
  +
| agility || none
 
|-
 
|-
  +
| earth_damage || %
<!-- LIFE STEAL -->
 
  +
| thunder_damage || %
{{#if:{{{life_steal|}}}|{{!}} &nbsp;Life Steal&nbsp;|}}
 
  +
| water_damage || %
{{#if:{{{life_steal|}}}|{{!}} style = "color: {{#ifexpr:{{{life_steal}}} > 0 | green | red }};" {{!}} &nbsp;{{{life_steal}}} / 4s&nbsp;|}}
 
  +
| fire_damage || %
  +
| air_damage || %
 
|-
 
|-
  +
| earth_defense || %
<!-- MANA STEAL -->
 
  +
| thunder_defense || %
{{#if:{{{mana_steal|}}}|{{!}} &nbsp;Mana Steal&nbsp;|}}
 
  +
| water_defense || %
{{#if:{{{mana_steal|}}}|{{!}} style = "color: {{#ifexpr:{{{mana_steal}}} > 0 | green | red }};" {{!}} &nbsp;{{{mana_steal}}} / 4s&nbsp;|}}
 
  +
| fire_defense || %
  +
| air_defense || %
 
|-
 
|-
  +
| raw_melee_damage || none
<!-- XP BONUS -->
 
  +
| melee_damage || %
{{#if:{{{xp_bonus|}}}|{{!}} &nbsp;XP Bonus&nbsp;|}}
 
  +
| raw_spell_damage || none
{{#if:{{{xp_bonus|}}}|{{!}} style = "color: {{#ifexpr:{{{xp_bonus}}} > 0 | green | red }};" {{!}} &nbsp;{{{xp_bonus}}} %&nbsp;|}}
 
  +
| spell_damage || %
 
|-
 
|-
  +
| health_bonus || none
<!-- LOOT BONUS -->
 
  +
| raw_health_regen || none
{{#if:{{{loot_bonus|}}}|{{!}} &nbsp;Loot Bonus&nbsp;|}}
 
  +
| health_regen || %
{{#if:{{{loot_bonus|}}}|{{!}} style = "color: {{#ifexpr:{{{loot_bonus}}} > 0 | green | red }};" {{!}} &nbsp;{{{loot_bonus}}} %&nbsp;|}}
 
  +
| mana_regen || /4s
 
|-
 
|-
  +
| life_steal || /4s
<!-- Reflection -->
 
  +
| mana_steal || /4s
{{#if:{{{reflection|}}}|{{!}} &nbsp;Reflection&nbsp;|}}
 
  +
| xp_bonus || %
{{#if:{{{reflection|}}}|{{!}} style = "color: {{#ifexpr:{{{reflection}}} > 0 | green | red }};" {{!}} &nbsp;{{{reflection}}} %&nbsp;|}}
 
  +
| loot_bonus || %
 
|-
 
|-
  +
| reflection || %
<!-- THORNS -->
 
  +
| thorns || %
{{#if:{{{thorns|}}}|{{!}} &nbsp;Thorns&nbsp;|}}
 
  +
| exploding || %
{{#if:{{{thorns|}}}|{{!}} style = "color: {{#ifexpr:{{{thorns}}} > 0 | green | red }};" {{!}} &nbsp;{{{thorns}}} %&nbsp;|}}
 
  +
| stealing || %
 
|-
 
|-
  +
| walk_speed || %
<!-- STRENGTH -->
 
  +
| attack_speed || Tier
{{#if:{{{strength|}}}|{{!}} &nbsp;Strength&nbsp;|}}
 
  +
| poison || /3s
{{#if:{{{strength|}}}|{{!}} style = "color: {{#ifexpr:{{{strength}}} > 0 | green | red }};" {{!}} &nbsp;{{{strength}}} &nbsp;|}}
 
  +
| soul_point_regen || %
|-
 
 
|}
<!-- DEXTERITY -->
 
  +
<noinclude>[[category:Formatting_templates]][[category:Documentation_templates]]</noinclude>
{{#if:{{{dexterity|}}}|{{!}} &nbsp;Dexterity&nbsp;|}}
 
{{#if:{{{dexterity|}}}|{{!}} style = "color: {{#ifexpr:{{{dexterity}}} > 0 | green | red }};" {{!}} &nbsp;{{{dexterity}}} &nbsp;|}}
 
|-
 
<!-- INTELLIGENCE -->
 
{{#if:{{{intelligence|}}}|{{!}} &nbsp;Intelligence&nbsp;|}}
 
{{#if:{{{intelligence|}}}|{{!}} style = "color: {{#ifexpr:{{{intelligence}}} > 0 | green | red }};" {{!}} &nbsp;{{{intelligence}}} &nbsp;|}}
 
|-
 
<!-- DEFENSE -->
 
{{#if:{{{defense|}}}|{{!}} &nbsp;Defense&nbsp;|}}
 
{{#if:{{{defense|}}}|{{!}} style = "color: {{#ifexpr:{{{defense}}} > 0 | green | red }};" {{!}} &nbsp;{{{defense}}} &nbsp;|}}
 
|-
 
<!-- AGILITY -->
 
{{#if:{{{agility|}}}|{{!}} &nbsp;Agility&nbsp;|}}
 
{{#if:{{{agility|}}}|{{!}} style = "color: {{#ifexpr:{{{agility}}} > 0 | green | red }};" {{!}} &nbsp;{{{agility}}} &nbsp;|}}
 
|-
 
<!-- EXPLODING -->
 
{{#if:{{{exploding|}}}|{{!}} &nbsp;Exploding&nbsp;|}}
 
{{#if:{{{exploding|}}}|{{!}} style = "color: {{#ifexpr:{{{exploding}}} > 0 | green | red }};" {{!}} &nbsp;{{{exploding}}} %&nbsp;|}}
 
|-
 
<!-- WALK SPEED -->
 
{{#if:{{{walk_speed|}}}|{{!}} &nbsp;Walk Speed&nbsp;|}}
 
{{#if:{{{walk_speed|}}}|{{!}} style = "color: {{#ifexpr:{{{walk_speed}}} > 0 | green | red }};" {{!}} &nbsp;{{{walk_speed}}} %&nbsp;|}}
 
|-
 
<!-- ATTACK SPEED -->
 
{{#if:{{{attack_speed|}}}|{{!}} &nbsp;Attack Speed&nbsp;|}}
 
{{#if:{{{attack_speed|}}}|{{!}} style = "color: {{#ifexpr:{{{attack_speed}}} > 0 | green | red }};" {{!}} &nbsp;{{{attack_speed}}} Tier&nbsp;|}}
 
|-
 
<!-- POISON -->
 
{{#if:{{{poison|}}}|{{!}} &nbsp;Poison&nbsp;|}}
 
{{#if:{{{poison|}}}|{{!}} style = "color: {{#ifexpr:{{{poison}}} > 0 | green | red }};" {{!}} &nbsp;{{{poison}}} / 3s&nbsp;|}}
 
|-
 
<!-- SOUL POINT REGEN -->
 
{{#if:{{{soul_point_regen|}}}|{{!}} &nbsp;Soul Point Regen&nbsp;|}}
 
{{#if:{{{soul_point_regen|}}}|{{!}} style = "color: {{#ifexpr:{{{soul_point_regen}}} > 0 | green | red }};" {{!}} &nbsp;{{{soul_point_regen}}} %&nbsp;|}}
 
|-
 
<!-- STEALING -->
 
{{#if:{{{stealing|}}}|{{!}} &nbsp;Stealing&nbsp;|}}
 
{{#if:{{{stealing|}}}|{{!}} style = "color: {{#ifexpr:{{{stealing}}} > 0 | green | red }};" {{!}} &nbsp;{{{stealing}}} %&nbsp;|}}
 
|-
 
<!-- RAW MELEE DAMAGE -->
 
{{#if:{{{raw_melee_damage|}}}|{{!}} &nbsp;Raw Melee Damage&nbsp;|}}
 
{{#if:{{{raw_melee_damage|}}}|{{!}} style = "color: {{#ifexpr:{{{raw_melee_damage}}} > 0 | green | red }};" {{!}} &nbsp;{{{raw_melee_damage}}} &nbsp;|}}
 
|-
 
<!-- MELEE DAMAGE -->
 
{{#if:{{{melee_damage|}}}|{{!}} &nbsp;Melee Damage&nbsp;|}}
 
{{#if:{{{melee_damage|}}}|{{!}} style = "color: {{#ifexpr:{{{melee_damage}}} > 0 | green | red }};" {{!}} &nbsp;{{{melee_damage}}} %&nbsp;|}}
 
|-
 
<!-- RAW SPELL DAMAGE -->
 
{{#if:{{{raw_spell_damage|}}}|{{!}} &nbsp;Raw Spell Damage&nbsp;|}}
 
{{#if:{{{raw_spell_damage|}}}|{{!}} style = "color: {{#ifexpr:{{{raw_spell_damage}}} > 0 | green | red }};" {{!}} &nbsp;{{{raw_spell_damage}}} &nbsp;|}}
 
|-
 
<!-- SPELL DAMAGE -->
 
{{#if:{{{spell_damage|}}}|{{!}} &nbsp;Spell Damage&nbsp;|}}
 
{{#if:{{{spell_damage|}}}|{{!}} style = "color: {{#ifexpr:{{{spell_damage}}} > 0 | green | red }};" {{!}} &nbsp;{{{spell_damage}}} %&nbsp;|}}
 
|-
 
<!-- EARTH DAMAGE -->
 
{{#if:{{{earth_damage|}}}|{{!}} &nbsp;Earth Damage&nbsp;|}}
 
{{#if:{{{earth_damage|}}}|{{!}} style = "color: {{#ifexpr:{{{earth_damage}}} > 0 | green | red }};" {{!}} &nbsp;{{{earth_damage}}} %&nbsp;|}}
 
|-
 
<!-- THUNDER DAMAGE -->
 
{{#if:{{{thunder_damage|}}}|{{!}} &nbsp;Thunder Damage&nbsp;|}}
 
{{#if:{{{thunder_damage|}}}|{{!}} style = "color: {{#ifexpr:{{{thunder_damage}}} > 0 | green | red }};" {{!}} &nbsp;{{{thunder_damage}}} %&nbsp;|}}
 
|-
 
<!-- WATER DAMAGE -->
 
{{#if:{{{water_damage|}}}|{{!}} &nbsp;Water Damage&nbsp;|}}
 
{{#if:{{{water_damage|}}}|{{!}} style = "color: {{#ifexpr:{{{water_damage}}} > 0 | green | red }};" {{!}} &nbsp;{{{water_damage}}} %&nbsp;|}}
 
|-
 
<!-- FIRE DAMAGE -->
 
{{#if:{{{fire_damage|}}}|{{!}} &nbsp;Fire Damage&nbsp;|}}
 
{{#if:{{{fire_damage|}}}|{{!}} style = "color: {{#ifexpr:{{{fire_damage}}} > 0 | green | red }};" {{!}} &nbsp;{{{fire_damage}}} %&nbsp;|}}
 
|-
 
<!-- AIR DAMAGE -->
 
{{#if:{{{air_damage|}}}|{{!}} &nbsp;Air Damage&nbsp;|}}
 
{{#if:{{{air_damage|}}}|{{!}} style = "color: {{#ifexpr:{{{air_damage}}} > 0 | green | red }};" {{!}} &nbsp;{{{air_damage}}} %&nbsp;|}}
 
|-
 
<!-- EARTH DEFENSE -->
 
{{#if:{{{earth_defense|}}}|{{!}} &nbsp;Earth Defense&nbsp;|}}
 
{{#if:{{{earth_defense|}}}|{{!}} style = "color: {{#ifexpr:{{{earth_defense}}} > 0 | green | red }};" {{!}} &nbsp;{{{earth_defense}}} %&nbsp;|}}
 
|-
 
<!-- THUNDER DEFENSE -->
 
{{#if:{{{thunder_defense|}}}|{{!}} &nbsp;Thunder Defense&nbsp;|}}
 
{{#if:{{{thunder_defense|}}}|{{!}} style = "color: {{#ifexpr:{{{thunder_defense}}} > 0 | green | red }};" {{!}} &nbsp;{{{thunder_defense}}} %&nbsp;|}}
 
|-
 
<!-- WATER DEFENSE -->
 
{{#if:{{{water_defense|}}}|{{!}} &nbsp;Water Defense&nbsp;|}}
 
{{#if:{{{water_defense|}}}|{{!}} style = "color: {{#ifexpr:{{{water_defense}}} > 0 | green | red }};" {{!}} &nbsp;{{{water_defense}}} %&nbsp;|}}
 
|-
 
<!-- FIRE DEFENSE -->
 
{{#if:{{{fire_defense|}}}|{{!}} &nbsp;Fire Defense&nbsp;|}}
 
{{#if:{{{fire_defense|}}}|{{!}} style = "color: {{#ifexpr:{{{fire_defense}}} > 0 | green | red }};" {{!}} &nbsp;{{{fire_defense}}} %&nbsp;|}}
 
|-
 
<!-- AIR DEFENSE -->
 
{{#if:{{{air_defense|}}}|{{!}} &nbsp;Air Defense&nbsp;|}}
 
{{#if:{{{air_defense|}}}|{{!}} style = "color: {{#ifexpr:{{{air_defense}}} > 0 | green | red }};" {{!}} &nbsp;{{{air_defense}}} %&nbsp;|}}
 
|}</includeonly><noinclude>{{Identification/Preset/doc}}[[Category:Formatting_templates]][[Category:Templates]]</noinclude>
 

Revision as of 21:52, 20 September 2018

The Identification template is used to simplify the creation of identification tables, without copying and pasting MediaWiki code from page to page. Should be used similar to an info box, and supports all identifications.

This template also automatically generates the unit for each Identification, for example "/4s" , "%" , etc. So don't pass in the unit when using this template.

Usage

{{Identification
| health_bonus =
| raw_health_regen =
| health_regen =
| mana_regen =
| life_steal =
| mana_steal =
| xp_bonus =
| loot_bonus =
| reflection =
| thorns =
| strength =
| dexterity =
| intelligence =
| defense =
| agility =
| exploding =
| walk_speed =
| attack_speed =
| poison =
| soul_point_regen =
| stealing =
| raw_melee_damage =
| melee_damage =
| raw_spell_damage =
| spell_damage =
| earth_damage =
| thunder_damage =
| water_damage =
| fire_damage =
| air_damage =
| earth_defense =
| thunder_defense =
| water_defense =
| fire_defense =
| air_defense =
}}

Examples

Example Result
{{Identification/Preset|health_regen=-10}
Identification Preset Value
{{Identification/Preset|fire_damage = +5}}
Identification Preset Value
  Fire Damage   +5% 
{{Identification/Preset|attack_speed = +1}}
Identification Preset Value
 Attack Speed   +1 Tiers 

Reference

Here is a table of available fields and their units if there is any confusion.

Identification Unit Identification Unit Identification Unit Identification Unit Identification Unit
strength none dexterity none intelligence none defense none agility none
earth_damage % thunder_damage % water_damage % fire_damage % air_damage %
earth_defense % thunder_defense % water_defense % fire_defense % air_defense %
raw_melee_damage none melee_damage % raw_spell_damage none spell_damage %
health_bonus none raw_health_regen none health_regen % mana_regen /4s
life_steal /4s mana_steal /4s xp_bonus % loot_bonus %
reflection % thorns % exploding % stealing %
walk_speed % attack_speed Tier poison /3s soul_point_regen %