Template:Item tooltip: Difference between revisions
B4ttl3m4st3r (talk | contribs) No edit summary |
B4ttl3m4st3r (talk | contribs) No edit summary |
||
Line 37: | Line 37: | ||
<div class="template_itemTooltip"> | <div class="template_itemTooltip"> | ||
<div class="name magic">{{#if: {{{namePrefix|}}}|{{{namePrefix}}}}} {{{name}}} {{#if: {{{nameSuffix|}}}|{{{nameSuffix}}}}}</div> | <div class="name magic">{{#if: {{{namePrefix|}}}|{{{namePrefix}}}}} {{{name}}} {{#if: {{{nameSuffix|}}}|{{{nameSuffix}}}}}</div> | ||
<div class="description">{{{description | {{#if: {{{description|}}}|<div class="description">{{{description}}}</div>}} | ||
<table class="attributeTable"> | <table class="attributeTable"> | ||
{{#if: {{{requiredRaces|}}}|<tr><td>Acceptable Races</td><td>{{{requiredRaces}}}</td></tr> | {{#if: {{{requiredRaces|}}}|<tr><td>Acceptable Races</td><td>{{{requiredRaces}}}</td></tr>}} | ||
{{#if: {{{requiredGender|}}}|<tr><td>Acceptable Genders</td><td>{{{requiredGender}}}</td></tr> | {{#if: {{{requiredGender|}}}|<tr><td>Acceptable Genders</td><td>{{{requiredGender}}}</td></tr>}} | ||
{{#if: {{{requiredClasses|}}}|<tr><td>Acceptable Classes</td><td>{{{requiredClasses}}}</td></tr> | {{#if: {{{requiredClasses|}}}|<tr><td>Acceptable Classes</td><td>{{{requiredClasses}}}</td></tr>}} | ||
{{# | {{#ifexpr: {{{requiredLevel|0}}} > 0|<tr><td>Requirement Level</td><td>{{{requiredLevel}}}</td></tr>}} | ||
{{#if: {{{requiredCraftingMaterials|}}}|<tr><td>Required Crafting Materials</td><td>{{{requiredCraftingMaterials}}}</td></tr>}} | {{#if: {{{requiredCraftingMaterials|}}}|<tr><td>Required Crafting Materials</td><td>{{{requiredCraftingMaterials}}}</td></tr>}} | ||
{{#if: {{{requiredCraftingSkills|}}}|<tr><td>Required Crafting Skills</td><td>{{{requiredCraftingSkills}}}</td></tr>}} | {{#if: {{{requiredCraftingSkills|}}}|<tr><td>Required Crafting Skills</td><td>{{{requiredCraftingSkills}}}</td></tr>}} | ||
{{# | {{#ifexpr: {{{requiredStrength|0}}} > 0|<tr><td>Acceptable STR</td><td>{{{requiredStrength}}}</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>}} | ||
<tr><td>Durability</td><td class="warning">{{{durability}}} / {{{durabilityMax}}}</td></tr> | <tr><td>Durability</td><td 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> | ||
Line 53: | Line 53: | ||
<tr><td>Physical Defense</td><td>{{{physicalDefense|30}}}</td></tr> | <tr><td>Physical Defense</td><td>{{{physicalDefense|30}}}</td></tr> | ||
<tr><td>Magical Defense</td><td>{{{magicalDefense|24}}}</td></tr> | <tr><td>Magical Defense</td><td>{{{magicalDefense|24}}}</td></tr> | ||
<tr><td>Mana Bonus</td><td>{{{manaBonus | {{#ifexpr: {{{manaBonus|0}}} > 0|<tr><td>Mana Bonus</td><td>{{{manaBonus}}}</td></tr>}} | ||
<tr><td>Casting Time Decrement</td><td>{{{castingTimeDecrement | {{#ifexpr: {{{castingTimeDecrement|0}}} > 0|<tr><td>Casting Time Decrement</td><td>{{{castingTimeDecrement}}}</td></tr>}} | ||
<tr><td>Avoidance Time Decrement</td><td>{{{avoidanceTimeDecrement | {{#ifexpr: {{{avoidanceTimeDecrement|0}}} > 0|<tr><td>Avoidance Time Decrement</td><td>{{{avoidanceTimeDecrement}}}</td></tr>}} | ||
<tr><td>Attack Speed</td><td>{{#ifexpr: {{{attackSpeed|0}}} <= 1500 | Fast +2 | <tr><td>Attack Speed</td><td>{{#ifexpr: {{{attackSpeed|0}}} <= 1500 | Fast +2 | ||
| {{{attackSpeed|0}}} <= 1700 | Fast +1 | | {{{attackSpeed|0}}} <= 1700 | Fast +1 | ||
Line 82: | Line 82: | ||
|namePrefix=Bloodsucking | |namePrefix=Bloodsucking | ||
|nameSuffix=of Frost | |nameSuffix=of Frost | ||
|description=This is an example tooltip for an item. The given item is mocked and does not describe any obtainable item in the game. | |||
|requiredLevel=65 | |||
|attackSpeed=1700 | |attackSpeed=1700 | ||
|price=665544 | |price=665544 | ||
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 15:07, 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 |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 | 1700 <= 1700 |
Vitality + 42
Additional Attacking Power + 23%
Maximum Mana + 420
Limit Level reduced -2
Unidentified
Price: 66 PP 55 GP 44 CP (665544)