Wynncraft Wiki
(Template for items with preset stats)
 
Aws40404 (talk | contribs)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
{{Doc/start}}
<!-- Template based on the Identifications Template -->
 
  +
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.
<!-- Modified by Lord_Helmchen98 -->
 
  +
<includeonly>{| class="wikitable" style="text-align: center;" cellspacing="0"
 
  +
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.
! Identification !! Preset Value
 
  +
  +
== Usage ==
  +
<pre>
 
{{Identification/Preset
  +
| %_health_regen =
  +
| mana_regen =
  +
| %_spell_damage =
  +
| %_melee_damage =
  +
| life_steal =
  +
| mana_steal =
  +
| xp_bonus =
  +
| loot_bonus =
  +
| loot_quality =
  +
| reflection =
  +
| strength- =
  +
| dexterity- =
  +
| intelligence- =
  +
| agility- =
  +
| defense- =
  +
| thorns =
  +
| exploding =
  +
| walk_speed =
  +
| attack_speed =
  +
| poison =
  +
| health =
  +
| soul_point_regen =
  +
| stealing =
  +
| raw_health_regen =
  +
| raw_spell_damage =
  +
| raw_melee_damage =
  +
| fire_damage =
  +
| water_damage =
  +
| air_damage =
  +
| thunder_damage =
  +
| earth_damage =
  +
| fire_defense =
  +
| water_defense =
  +
| air_defense =
  +
| thunder_defense =
  +
| earth_defense =
  +
| sprint_regen =
  +
| %_first_spell_cost =
  +
| %_second_spell_cost =
  +
| %_third_spell_cost =
  +
| %_fourth_spell_cost =
  +
| raw_first_spell_cost =
  +
| raw_second_spell_cost =
  +
| raw_third_spell_cost =
  +
| raw_fourth_spell_cost =
  +
| gathering_xp_bonus =
  +
| gathering_speed =
  +
}}
  +
</pre>
  +
  +
== 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 || %
  +
| charge || none
 
|-
 
|-
  +
| 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 -->
 
  +
{{Doc/end}}
{{#if:{{{dexterity|}}}|{{!}} &nbsp;Dexterity&nbsp;|}}
 
  +
<noinclude>[[category:Formatting_templates]][[category:Documentation_templates]]</noinclude>
{{#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>
 

Latest revision as of 05:44, 14 October 2020

Template-info.png Documentation

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/Preset
| %_health_regen = 
| mana_regen =
| %_spell_damage =
| %_melee_damage =
| life_steal =
| mana_steal =
| xp_bonus =
| loot_bonus =
| loot_quality =
| reflection =
| strength- =
| dexterity- =
| intelligence- =
| agility- =
| defense- =
| thorns =
| exploding =
| walk_speed =
| attack_speed =
| poison =
| health =
| soul_point_regen =
| stealing =
| raw_health_regen =
| raw_spell_damage =
| raw_melee_damage =
| fire_damage =
| water_damage =
| air_damage =
| thunder_damage =
| earth_damage =
| fire_defense =
| water_defense =
| air_defense =
| thunder_defense =
| earth_defense =
| sprint_regen =
| %_first_spell_cost =
| %_second_spell_cost =
| %_third_spell_cost =
| %_fourth_spell_cost =
| raw_first_spell_cost =
| raw_second_spell_cost =
| raw_third_spell_cost =
| raw_fourth_spell_cost =
| gathering_xp_bonus =
| gathering_speed =
}}

Examples

Example Result
{{Identification/Preset|%_health_regen=-10}
Identification Preset Value
 Health Regen   -10% 
{{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 % charge none
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 %

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.