Template:Item tooltip: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
Line 19: Line 19:
|durability=
|durability=
|durabilityMax=
|durabilityMax=
|hasDurabilityWarning=
|physicalAttackMin=
|physicalAttackMin=
|physicalAttackMax=
|physicalAttackMax=
Line 57: Line 58:
{{#ifexpr: {{{requiredIntelligence|0}}} > 0|<tr><td>Acceptable INT</td><td>{{{requiredIntelligence}}}</td></tr>}}
{{#ifexpr: {{{requiredIntelligence|0}}} > 0|<tr><td>Acceptable INT</td><td>{{{requiredIntelligence}}}</td></tr>}}
{{#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 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>
<tr><td>Physical Offense</td><td class="improved">{{{physicalAttackMin|10}}} - {{{physicalAttackMax|20}}}</td></tr>
<tr><td>Magical Offense</td><td>{{{magicalAttackMin|50}}} - {{{magicalAttackMax|100}}}</td></tr>
<tr><td>Magical Offense</td><td>{{{magicalAttackMin|50}}} - {{{magicalAttackMax|100}}}</td></tr>
Line 78: Line 79:
{{#ifexpr: {{{isUnidentified|0}}} <= 0 |
{{#ifexpr: {{{isUnidentified|0}}} <= 0 |
<div class="bonuses">bonsues
<div class="bonuses">bonsues
{{#if: {{{bonus1|}}}|<div class="bonusEntry {{#if: {{{isBonus1Decreasing|}}}|isNegative}}">{{{bonus1}}}</div>}}
{{#if: {{{bonus1|}}}|<div class="bonusEntry {{#ifexpr: {{{isBonus1Decreasing|0}}}>0|isNegative}}">{{{bonus1}}}</div>}}
{{#if: {{{bonus2|}}}|<div class="bonusEntry {{#if: {{{isBonus2Decreasing|}}}|isNegative}}">{{{bonus2}}}</div>}}
{{#if: {{{bonus2|}}}|<div class="bonusEntry {{#ifexpr: {{{isBonus2Decreasing|0}}}>0|isNegative}}">{{{bonus2}}}</div>}}
{{#if: {{{bonus3|}}}|<div class="bonusEntry {{#if: {{{isBonus3Decreasing|}}}|isNegative}}">{{{bonus3}}}</div>}}
{{#if: {{{bonus3|}}}|<div class="bonusEntry {{#ifexpr: {{{isBonus3Decreasing|0}}}>0|isNegative}}">{{{bonus3}}}</div>}}
{{#if: {{{bonus4|}}}|<div class="bonusEntry {{#if: {{{isBonus4Decreasing|}}}|isNegative}}">{{{bonus4}}}</div>}}
{{#if: {{{bonus4|}}}|<div class="bonusEntry {{#ifexpr: {{{isBonus4Decreasing|0}}}>0|isNegative}}">{{{bonus4}}}</div>}}
</div>
</div>
}}
}}
Line 101: Line 102:
|durability=42
|durability=42
|durabilityMax=240
|durabilityMax=240
|isDurabilityWarning=0
|isUnidentified=0
|isUnidentified=0
|bonus1=Vitality + 42
|bonus1=Vitality + 42
Line 107: Line 109:
|bonus4=Limit Level reduced -2
|bonus4=Limit Level reduced -2
|isBonus4Decreasing=1
|isBonus4Decreasing=1
|hasDurabilityWarning=0
|price=665544
|price=665544
}}
}}
</noinclude>
</noinclude>

Revision as of 16:19, 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=
|name=
|description=
|requiredRaces=
|requiredGender=
|requiredClasses=
|requiredLevel=
|requiredCraftingMaterials=
|requiredCraftingSkills=
|requiredStrength=
|requiredIntelligence=
|requiredDexterity=
|durability=
|durabilityMax=
|hasDurabilityWarning=
|physicalAttackMin=
|physicalAttackMax=
|magicalAttackMin=
|magicalAttackMax=
|physicalDefense=
|magicalDefense=
|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
Physical Offense10 - 20
Magical Offense50 - 100
Physical Defense30
Magical Defense24
Attack Speed Fast +1
bonsues
Vitality + 42
Additional Attacking Power + 23%
Maximum Mana + 420
Limit Level reduced -2
Price: 66 PP 55 GP 44 CP (665544)