Template:Item tooltip: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
Line 71: Line 71:
</div>
</div>
<div class="unidentified">Unidentified</div>
<div class="unidentified">Unidentified</div>
<div class="price">Price: 3453 PP  45 GP  35 CP  (34534535)</div>
{{#ifexpr: {{{price|0}}} > 0
|<div class="price">Price: {{#ifexpr: floor({{{price|0}}} / 10000) > 0|{{#expr: floor({{{price|0}}} / 10000)}} PP}} {{#ifexpr: floor(({{{price|0}}} - floor({{{price|0}}} / 10000) * 10000) / 100) > 0|{{#expr: floor(({{{price|0}}} - floor({{{price|0}}} / 10000) * 10000) / 100)}} GP}} {{#ifexpr: floor({{{price|0}}} - floor({{{price|0}}} / 10000) * 10000 - floor(({{{price|0}}} - floor({{{price|0}}} / 10000) * 10000) / 100) * 100) > 0|{{#expr: floor({{{price|0}}} - floor({{{price|0}}} / 10000) * 10000 - floor(({{{price|0}}} - floor({{{price|0}}} / 10000) * 10000) / 100) * 100)}} CP}} ({{{price|0}}})</div>
}}
</div>
</div>
</includeonly>
</includeonly>
Line 78: Line 80:
{{Item tooltip
{{Item tooltip
|attackSpeed=1700
|attackSpeed=1700
|price=665544
}}
}}
</noinclude>
</noinclude>

Revision as of 14:38, 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=
|physicalAttackMin=
|physicalAttackMax=
|magicalAttackMin=
|magicalAttackMax=
|physicalDefense=
|magicalDefense=
|manaBonus=
|castingTimeDecrement=
|avoidanceTimeDecrement=
|attackSpeed= // numeric, e.g. 1700
|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.
Acceptable RacesBa He We
Acceptable GendersFemale
Acceptable ClassesCl Wi Su
Requirement Level62
Required Crafting MaterialsTODO
Required Crafting SkillsTODO
Acceptable STR30
Acceptable INT65
Acceptable DEX10
Durability50 / 100
Physical Offense10 - 20
Magical Offense50 - 100
Physical Defense30
Magical Defense24
Mana Bonus100
Casting Time Decrement200
Avoidance Time Decrement500
Attack Speed1700 <= 1700
Vitality + 42
Additional Attacking Power + 23%
Maximum Mana + 420
Limit Level reduced -2
Unidentified
Price: 66 PP 55 GP 44 CP (665544)