Template:Item tooltip: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Page warning |Message= This template is a work in progress.}}
{{Page warning |message= This template is a work in progress.}}
This is the "Item tooltip" template.
This is the "Item tooltip" template.
It should be transcluded in the following format:
It should be transcluded in the following format:
Line 50: Line 50:
<templatestyles src="Item tooltip/styles.css" />
<templatestyles src="Item tooltip/styles.css" />
<div class="template_itemTooltip">
<div class="template_itemTooltip">
<div class="name {{{rarity|}}}">{{#if: {{{namePrefix|}}}|{{{namePrefix}}}}} {{{name}}} {{#if: {{{nameSuffix|}}}|{{{nameSuffix}}}}}</div>
<div class="name {{{rarity|}}}">
{{#if: {{{namePrefix|}}}|{{{namePrefix}}}}} {{{name}}} {{#if: {{{nameSuffix|}}}|{{{nameSuffix}}}}}{{#ifexpr: {{{enchantmentLevel|0}}} > 0|&nbsp;+{{{enchantmentLevel}}}}}</div>
{{#if: {{{description|}}}|<div class="description">{{{description}}}</div>}}
{{#if: {{{description|}}}|<div class="description">{{{description}}}</div>}}
<table class="attributeTable">
<table class="attributeTable">
Line 102: Line 103:
|namePrefix=Bloodsucking
|namePrefix=Bloodsucking
|nameSuffix=of Frost
|nameSuffix=of Frost
|enchantmentLevel=4
|description=This is an example tooltip for an item. The given item is mocked and does not describe any obtainable item in the game.
|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
|requiredLevel=65
Line 107: Line 109:
|durability=42
|durability=42
|durabilityMax=240
|durabilityMax=240
|isDurabilityWarning=0
|hasDurabilityWarning=1
|magicalAttackMin=100
|magicalAttackMax=320
|isMagicalAttackImproved=1
|isUnidentified=0
|isUnidentified=0
|bonus1=Vitality + 42
|bonus1=Vitality + 42
Line 114: Line 119:
|bonus4=Limit Level reduced -2
|bonus4=Limit Level reduced -2
|isBonus4Decreasing=1
|isBonus4Decreasing=1
|hasDurabilityWarning=1
|price=665544
|price=665544
|requiredStrength=14
|requiredIntelligence=36
|requiredRaces=Ba He We
|requiredClasses= Wi Cl Pa
}}
}}
</pre>
</pre>
Line 123: Line 131:
|namePrefix=Bloodsucking
|namePrefix=Bloodsucking
|nameSuffix=of Frost
|nameSuffix=of Frost
|enchantmentLevel=4
|description=This is an example tooltip for an item. The given item is mocked and does not describe any obtainable item in the game.
|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
|requiredLevel=65
Line 128: Line 137:
|durability=42
|durability=42
|durabilityMax=240
|durabilityMax=240
|isDurabilityWarning=0
|hasDurabilityWarning=1
|magicalAttackMin=100
|magicalAttackMin=100
|magicalAttackMax=320
|magicalAttackMax=320
Line 138: Line 147:
|bonus4=Limit Level reduced -2
|bonus4=Limit Level reduced -2
|isBonus4Decreasing=1
|isBonus4Decreasing=1
|hasDurabilityWarning=1
|price=665544
|price=665544
|requiredStrength=14
|requiredIntelligence=36
|requiredRaces=Ba He We
|requiredClasses= Wi Cl Pa
}}
}}
</noinclude>
</noinclude>

Latest revision as of 21:45, 10 June 2024

Warning:
This template is a work in progress.

This is the "Item tooltip" template. It should be transcluded in the following format:

{{Item tooltip
|rarity= // normal, magic, rare, soul, unique, epic
|name=
|description=
|requiredRaces=
|requiredGender=
|requiredClasses=
|requiredLevel=
|requiredCraftingMaterials=
|requiredCraftingSkills=
|requiredStrength=
|requiredIntelligence=
|requiredDexterity=
|durability=
|durabilityMax=
|hasDurabilityWarning=
|physicalAttackMin=
|physicalAttackMax=
|isPhysicalAttackImproved=
|magicalAttackMin=
|magicalAttackMax=
|isMagicalAttackImproved=
|physicalDefense=
|isPhysicalDefenseImproved=
|magicalDefense=
|isMagicalDefenseImproved=
|manaBonus=
|castingTimeDecrement=
|avoidanceTimeDecrement=
|attackSpeed= // numeric, e.g. 1700
|isUnidentified=
|bonus1=
|isBonus1Decreasing=
|bonus2=
|isBonus2Decreasing=
|bonus3=
|isBonus3Decreasing=
|bonus4=
|isBonus4Decreasing=
|price=
}}


Example

{{Item tooltip
|rarity=rare
|name=Mysterious Staff
|namePrefix=Bloodsucking
|nameSuffix=of Frost
|enchantmentLevel=4
|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
|durability=42
|durabilityMax=240
|hasDurabilityWarning=1
|magicalAttackMin=100
|magicalAttackMax=320
|isMagicalAttackImproved=1
|isUnidentified=0
|bonus1=Vitality + 42
|bonus2=Additional Attacking Power + 23%
|bonus3=Maximum Mana + 420
|bonus4=Limit Level reduced -2
|isBonus4Decreasing=1
|price=665544
|requiredStrength=14
|requiredIntelligence=36
|requiredRaces=Ba He We
|requiredClasses= Wi Cl Pa
}}


Bloodsucking Mysterious Staff of Frost +4
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 ClassesWi Cl Pa
Requirement Level65
Acceptable STR14
Acceptable INT36
Durability42 / 240
Magical Offense100 - 320
Attack Speed Fast +1
Vitality + 42
Additional Attacking Power + 23%
Maximum Mana + 420
Limit Level reduced -2
Price: 66 PP 55 GP 44 CP (665544)