Template:Item tooltip: Difference between revisions
B4ttl3m4st3r (talk | contribs) No edit summary |
B4ttl3m4st3r (talk | contribs) No edit summary |
||
| Line 29: | Line 29: | ||
|avoidanceTimeDecrement= | |avoidanceTimeDecrement= | ||
|attackSpeed= // numeric, e.g. 1700 | |attackSpeed= // numeric, e.g. 1700 | ||
|isUnidentified= | |||
|bonus1= | |bonus1= | ||
|isBonus1Decreasing= | |isBonus1Decreasing= | ||
| Line 75: | Line 76: | ||
}} | }} | ||
</table> | </table> | ||
{{#ifexpr: {{{isUnidentified|0}}} <= 0 | | |||
<div class="bonuses">bonsues | |||
<div class="bonuses"> | |||
{{#if: {{{bonus1|}}}|<div class="bonusEntry {{#if: {{{isBonus1Decreasing|}}}|isNegative}}">{{{bonus1}}}</div>}} | {{#if: {{{bonus1|}}}|<div class="bonusEntry {{#if: {{{isBonus1Decreasing|}}}|isNegative}}">{{{bonus1}}}</div>}} | ||
{{#if: {{{bonus2|}}}|<div class="bonusEntry {{#if: {{{isBonus2Decreasing|}}}|isNegative}}">{{{bonus2}}}</div>}} | {{#if: {{{bonus2|}}}|<div class="bonusEntry {{#if: {{{isBonus2Decreasing|}}}|isNegative}}">{{{bonus2}}}</div>}} | ||
| Line 83: | Line 83: | ||
{{#if: {{{bonus4|}}}|<div class="bonusEntry {{#if: {{{isBonus4Decreasing|}}}|isNegative}}">{{{bonus4}}}</div>}} | {{#if: {{{bonus4|}}}|<div class="bonusEntry {{#if: {{{isBonus4Decreasing|}}}|isNegative}}">{{{bonus4}}}</div>}} | ||
</div> | </div> | ||
<div class="unidentified">Unidentified</div> | }} | ||
{{#ifexpr: {{{isUnidentified|0}}}>0|<div class="unidentified">Unidentified</div>}} | |||
{{#ifexpr: {{{price|0}}} > 0 | {{#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 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> | ||
| Line 98: | Line 99: | ||
|requiredLevel=65 | |requiredLevel=65 | ||
|attackSpeed=1700 | |attackSpeed=1700 | ||
|isUnidentified=0 | |||
|bonus1=Vitality + 42 | |bonus1=Vitality + 42 | ||
|bonus2=Additional Attacking Power + 23% | |bonus2=Additional Attacking Power + 23% | ||
Revision as of 16:08, 9 June 2024
Warning:
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
|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 Level | 65 |
| Durability | {{{durability}}} / {{{durabilityMax}}} |
| Physical Offense | 10 - 20 |
| Magical Offense | 50 - 100 |
| Physical Defense | 30 |
| Magical Defense | 24 |
| 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)