Template:Item tooltip: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
Line 36: Line 36:
<templatestyles src="Item tooltip/styles.css" />
<templatestyles src="Item tooltip/styles.css" />
<div class="template_itemTooltip">
<div class="template_itemTooltip">
<div class="name magic">{{{namePrefix|Bloodsucking}}} {{{name|Mysterious Staff}}} {{{nameSuffix|of Frost}}}</div>
<div class="name magic">{{#if: {{{requiredRaces|}}}|{{{namePrefix}}}}} {{{name|Mysterious Staff}}} {{#if: {{{requiredRaces|}}}|{{{namePrefix}}}}}</div>
<div class="description">{{{description|This is an example tooltip for an item. The given item is mocked and does not describe any obtainable item in the game.}}}</div>
<div class="description">{{{description|This is an example tooltip for an item. The given item is mocked and does not describe any obtainable item in the game.}}}</div>
<table class="attributeTable">
<table class="attributeTable">
<tr><td>Acceptable Races</td><td>{{{requiredRaces|Ba He We}}}</td></tr>
{{#if: {{{requiredRaces|}}}|<tr><td>Acceptable Races</td><td>{{{requiredRaces}}}</td></tr>|}}
<tr><td>Acceptable Genders</td><td>{{{requiredGender|Female}}}</td></tr>
{{#if: {{{requiredGender|}}}|<tr><td>Acceptable Genders</td><td>{{{requiredGender}}}</td></tr>|}}
<tr><td>Acceptable Classes</td><td>{{{requiredClasses|Cl Wi Su}}}</td></tr>
{{#if: {{{requiredClasses|}}}|<tr><td>Acceptable Classes</td><td>{{{requiredClasses}}}</td></tr>|}}
<tr><td>Requirement Level</td><td>{{{requiredLevel|62}}}</td></tr>
{{#if: {{{requiredLevel|}}}|<tr><td>Requirement Level</td><td>{{{requiredLevel}}}</td></tr>|}}
<tr><td>Required Crafting Materials</td><td>{{{requiredCraftingMaterials|TODO}}}</td></tr>
{{#if: {{{requiredCraftingMaterials|}}}|<tr><td>Required Crafting Materials</td><td>{{{requiredCraftingMaterials}}}</td></tr>}}
<tr><td>Required Crafting Skills</td><td>{{{requiredCraftingSkills|TODO}}}</td></tr>
{{#if: {{{requiredCraftingSkills|}}}|<tr><td>Required Crafting Skills</td><td>{{{requiredCraftingSkills}}}</td></tr>}}
<tr><td>Acceptable STR</td><td>{{{requiredStrength|30}}}</td></tr>
{{#if: {{{requiredStrength|}}}|<tr><td>Acceptable STR</td><td>{{{requiredStrength}}}</td></tr>}}
<tr><td>Acceptable INT</td><td>{{{requiredIntelligence|65}}}</td></tr>
{{#if: {{{requiredIntelligence|}}}|<tr><td>Acceptable INT</td><td>{{{requiredIntelligence}}}</td></tr>}}
<tr><td>Acceptable DEX</td><td>{{{requiredDexterity|10}}}</td></tr>
{{#if: {{{requiredDexterity|}}}|<tr><td>Acceptable DEX</td><td>{{{requiredDexterity}}}</td></tr>}}
<tr><td>Durability</td><td class="warning">{{{durability|50}}} / {{{durabilityMax|100}}}</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>
<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 79: Line 79:
== Example ==
== Example ==
{{Item tooltip
{{Item tooltip
|namePrefix=Bloodsucking
|nameSuffix=of Frost
|attackSpeed=1700
|attackSpeed=1700
|price=665544
|price=665544
|requiredLevel=65
}}
}}
</noinclude>
</noinclude>

Revision as of 14:59, 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

Mysterious Staff
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
Durability{{{durability}}} / {{{durabilityMax}}}
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)