Template:Item tooltip: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
Line 22: Line 22:
|physicalAttackMin=
|physicalAttackMin=
|physicalAttackMax=
|physicalAttackMax=
|isPhysicalAttackImproved=
|magicalAttackMin=
|magicalAttackMin=
|magicalAttackMax=
|magicalAttackMax=
|isMagicalAttackImproved=
|physicalDefense=
|physicalDefense=
|isPhysicalDefenseImproved=
|magicalDefense=
|magicalDefense=
|isMagicalDefenseImproved=
|manaBonus=
|manaBonus=
|castingTimeDecrement=
|castingTimeDecrement=
Line 59: Line 63:
{{#ifexpr: {{{requiredDexterity|0}}} > 0|<tr><td>Acceptable DEX</td><td>{{{requiredDexterity}}}</td></tr>}}
{{#ifexpr: {{{requiredDexterity|0}}} > 0|<tr><td>Acceptable DEX</td><td>{{{requiredDexterity}}}</td></tr>}}
{{#ifexpr: {{{durability|0}}} + {{{durabilityMax|0}}} > 0 |<tr><td>Durability</td><td {{#ifexpr: {{{hasDurabilityWarning|0}}} >0 |class="warning"}}>{{{durability}}} / {{{durabilityMax}}}</td></tr>}}
{{#ifexpr: {{{durability|0}}} + {{{durabilityMax|0}}} > 0 |<tr><td>Durability</td><td {{#ifexpr: {{{hasDurabilityWarning|0}}} >0 |class="warning"}}>{{{durability}}} / {{{durabilityMax}}}</td></tr>}}
<tr><td>Physical Offense</td><td class="improved">{{{physicalAttackMin|10}}} - {{{physicalAttackMax|20}}}</td></tr>
{{#ifexpr: {{{physicalAttackMin|0}}} + {{{physicalAttackMax|0}}} > 0 |<tr><td>Physical Offense</td><td {{#ifexpr: {{{isPhysicalAttackImproved|0}}} >0 |class="improved"}}>{{{physicalAttackMin}}} - {{{physicalAttackMax}}}</td></tr>}}
<tr><td>Magical Offense</td><td>{{{magicalAttackMin|50}}} - {{{magicalAttackMax|100}}}</td></tr>
{{#ifexpr: {{{magicalAttackMin|0}}} + {{{magicalAttackMax|0}}} > 0 |<tr><td>Magical Offense</td><td {{#ifexpr: {{{isMagicalAttackImproved|0}}} >0 |class="improved"}}>{{{magicalAttackMin}}} - {{{magicalAttackMax}}}</td></tr>}}
<tr><td>Physical Defense</td><td>{{{physicalDefense|30}}}</td></tr>
{{#if: {{{physicalDefense|}}}|<tr><td>Physical Defense</td><td {{#ifexpr: {{{isPhysicalDefenseImproved|0}}} >0 |class="improved"}}>{{{physicalDefense}}}</td></tr>}}
<tr><td>Magical Defense</td><td>{{{magicalDefense|24}}}</td></tr>
{{#if: {{{magicalDefense|}}}|<tr><td>Magical Defense</td><td {{#ifexpr: {{{isMagicalDefenseImproved|0}}} >0 |class="improved"}}>{{{magicalDefense}}}</td></tr>}}
{{#ifexpr: {{{manaBonus|0}}} > 0|<tr><td>Mana Bonus</td><td>{{{manaBonus}}}</td></tr>}}
{{#ifexpr: {{{manaBonus|0}}} > 0|<tr><td>Mana Bonus</td><td>{{{manaBonus}}}</td></tr>}}
{{#ifexpr: {{{castingTimeDecrement|0}}} > 0|<tr><td>Casting Time Decrement</td><td>{{{castingTimeDecrement}}}</td></tr>}}
{{#ifexpr: {{{castingTimeDecrement|0}}} > 0|<tr><td>Casting Time Decrement</td><td>{{{castingTimeDecrement}}}</td></tr>}}

Revision as of 17:02, 9 June 2024

Warning:
This page is in draft.

This is the "Item tooltip" template. It should be transcluded in the following format:

{{Item tooltip
|rarity= // normal, magic, rare, soul, unique, epic
|name=
|description=
|requiredRaces=
|requiredGender=
|requiredClasses=
|requiredLevel=
|requiredCraftingMaterials=
|requiredCraftingSkills=
|requiredStrength=
|requiredIntelligence=
|requiredDexterity=
|durability=
|durabilityMax=
|hasDurabilityWarning=
|physicalAttackMin=
|physicalAttackMax=
|isPhysicalAttackImproved=
|magicalAttackMin=
|magicalAttackMax=
|isMagicalAttackImproved=
|physicalDefense=
|isPhysicalDefenseImproved=
|magicalDefense=
|isMagicalDefenseImproved=
|manaBonus=
|castingTimeDecrement=
|avoidanceTimeDecrement=
|attackSpeed= // numeric, e.g. 1700
|isUnidentified=
|bonus1=
|isBonus1Decreasing=
|bonus2=
|isBonus2Decreasing=
|bonus3=
|isBonus3Decreasing=
|bonus4=
|isBonus4Decreasing=
|price=
}}


Example

Bloodsucking Mysterious Staff of Frost
This is an example tooltip for an item. The given item is mocked and does not describe any obtainable item in the game.






Requirement Level65
Durability42 / 240
Attack Speed Fast +1
Vitality + 42
Additional Attacking Power + 23%
Maximum Mana + 420
Limit Level reduced -2
Price: 66 PP 55 GP 44 CP (665544)