Template:Item infobox: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Infobox/styles.css" />
<includeonly><templatestyles src="Infobox/styles.css" />
<div class="infobox item {{lc:{{{rarity|}}}}}">
<div class="infobox item {{#switch:{{lc:{{{type|}}}}}|crafting material=material|#default={{lc:{{{rarity|}}}}}}}">
{{#if:{{{icon|}}}|<div class="infobox-icon">[[File:{{{icon}}}|40px]]</div>}}
{{#if:{{{icon|}}}|<div class="infobox-icon">[[File:{{{icon}}}|40px|link=|{{PAGENAME}}]]</div>}}
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p>
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p>
<div class="wrapper">
<div class="wrapper">
{{#if:{{{description|}}}|{{quote|quote={{{description}}}|source=In-game description.}}}}
{{#if:{{{description|}}}|{{quote|quote={{{description}}}|source=In-game description.}}}}
;Type  
;Type  
:[[{{{type}}}]][[Category:{{{type}}}]]{{#if:{{{rarity|}}}|{{#ifeq:{{{show-rarity}}}|no||
:{{#switch:{{lc:{{{type}}}}}
|ring
|necklace=[[{{{type}}} (type)|{{{type}}}]]
|#default=[[{{{type}}}]]
}}[[Category:{{{type}}}]]{{#if:{{{rarity|}}}|{{#ifeq:{{{show-rarity}}}|no||
;Rarity
;Rarity
:{{rarity|{{ucfirst:{{{rarity}}}}}}}}}}}{{#if:{{{classes|}}}|
:{{rarity|{{ucfirst:{{{rarity}}}}}}}}}}}{{#if:{{{classes|}}}|
;Classes
;Classes
:{{{classes}}}}}{{#if:{{{gender|}}}|
:{{#if:{{string split|{{{classes|}}}|" "|1}}|[[{{string split|{{{classes|}}}|" "|1}}]]|{{clear}}}} {{#if:{{string split|{{{classes|}}}|" "|2}}|[[{{string split|{{{classes|}}}|" "|2}}]]|{{clear}}}} {{#if:{{string split|{{{classes|}}}|" "|3}}|[[{{string split|{{{classes|}}}|" "|3}}]]|{{clear}}}} {{#if:{{string split|{{{classes|}}}|" "|4}}|[[{{string split|{{{classes|}}}|" "|4}}]]|{{clear}}}} {{#if:{{string split|{{{classes|}}}|" "|5}}|[[{{string split|{{{classes|}}}|" "|5}}]]|{{clear}}}} {{#if:{{string split|{{{classes|}}}|" "|6}}|[[{{string split|{{{classes|}}}|" "|6}}]]|{{clear}}}} {{#if:{{string split|{{{classes|}}}|" "|7}}|[[{{string split|{{{classes|}}}|" "|7}}]]|{{clear}}}}}}{{#if:{{{gender|}}}|
;Gender
;Gender
:{{{gender}}}}}{{#if:{{{level|}}}|
:{{{gender}}}}}{{#if:{{{level|}}}|
Line 20: Line 24:
:{{{DEX}}}}}{{#if:{{{INT|}}}|
:{{{DEX}}}}}{{#if:{{{INT|}}}|
;Req. INT
;Req. INT
:{{{INT}}}}}{{#if:{{{speed|}}}|
:{{{INT}}}}}{{#if:{{{damage|}}}|
;Atk. Speed
:{{{speed}}}}}{{#if:{{{damage|}}}|
;Phys. Attack
;Phys. Attack
:{{{damage}}}}}{{#if:{{{magic-damage|}}}|
:{{{damage}}}}}{{#if:{{{magic-damage|}}}|
;Magic Attack
;Magic Attack
:{{{magic-damage}}}}}{{#if:{{{mana|}}}|
:{{{magic-damage}}}}}{{#if:{{{physical-def|}}}|
;Mana Regen
:{{{mana}}}}}{{#if:{{{cast|}}}|
;Cast time dec.
:{{{cast}}}}}{{#if:{{{hands|}}}|
;Hands
:{{#switch:{{{hands|}}}|one=One-handed|two=Two-handed|off=Off-hand}}}}{{#if:{{{physical|}}}|
;Phys. Def.
;Phys. Def.
:{{{physical}}}}}{{#if:{{{magic|}}}|
:{{{physical-def}}}}}{{#if:{{{magical-def|}}}|
;Magic Def.
;Magic Def.
:{{{magic}}}}}{{#if:{{{block|}}}|
:{{{magical-def}}}}}{{#if:{{{block|}}}|
;Blocking Rate
;Blocking Rate
:{{{block}}} %}}{{#if:{{{evasion|}}}|
:{{{block}}} %}}{{#if:{{{evasion|}}}|
;Evasion dec.
;Evasion dec.
:{{{evasion}}}}}
:{{{evasion}}}}}{{#if:{{{mana|}}}|
;Mana Regen
:{{{mana}}}}}{{#if:{{{cast|}}}|
;Cast time dec.
:{{{cast}}}}}{{#if:{{{speed|}}}|
;Atk. Speed
:{{{speed}}}}}{{#if:{{{hands|}}}|
;Hands
:{{#switch:{{{hands|}}}|one=One-handed|two=Two-handed|off=Off-hand}}}}{{#if:{{{value|}}}|
;Value  
;Value  
:{{#switch:{{{value-type|}}}|fame={{{value}}} {{{value-type}}}|coin={{money|value={{{value}}}|showSum=0}}}}{{#if:{{{goal|}}}|
:{{#switch:{{{value-type|}}}|fame={{{value}}} {{{value-type}}}|coin={{money|value={{{value}}}|showZeros=0}}}}}}{{#if:{{{goal|}}}|
;Part of
;Part of
:[[{{{goal}}}]]}}{{#if:{{{id|}}}|
:[[{{{goal}}}]]}}{{#if:{{{reward|}}}|
;Rewarded by
:[[{{{reward}}}]]}}{{#if:{{{id|}}}|
;Item id
;Item id
:{{{id}}}}}
:{{{id}}}}}
Line 71: Line 77:
{{!}}}
{{!}}}
| {{clear}} }}
| {{clear}} }}
{{#if:{{{set|}}}|[[Category:{{{set}}}]]}}
{{#if:{{{set|}}}|[[Category:{{{set}}}|{{{type}}}]]{{clear}}}}
{{#switch:{{lc:{{{type}}}}}
|crafting sheet=[[Category:Level {{{level}}} crafting sheets]]{{clear}}
|upgrade sheet=[[Category:Level {{{level}}} upgrade sheets]]{{clear}}
|boots
|mage boots
|leather boots
|mail boots
|plate boots
|circlet
|gloves
|mage gloves
|leather gloves
|mail gloves
|plate gloves
|helmet
|leather helmet
|mail helmet
|plate helmet
|jacket
|leather jacket
|mail jacket
|plate jacket
|pants
|leather pants
|mail pants
|plate pants
|robe
|shield
|cape
|axe
|bow
|dagger
|mace
|polearm
|staff
|sword
|wand={{#ifeq:{{lc:{{{rarity|}}}}}|normal|[[Category:Level {{{level}}} equipment|{{{type}}}]]}}{{clear}}
|necklace
|ring={{#ifeq:{{lc:{{{rarity|}}}}}|normal|[[Category:Level {{{level}}} accessories|{{{type}}}]]}}{{clear}}
|#default={{clear}}
}}
</div></includeonly><noinclude>
</div></includeonly><noinclude>
== Description ==
== Description ==
Line 97: Line 144:
|cast=
|cast=
|hands=
|hands=
|physical=
|physical-def=
|magic=
|magical-def=
|evasion=
|evasion=
|block=
|block=
Line 105: Line 152:
|value-type=
|value-type=
|goal=
|goal=
|reward=
|id=
|id=
|gallery1...gallery5=
|gallery1...gallery5=
Line 117: Line 165:
:: Crafting material  
:: Crafting material  
:: Crafting sheet
:: Crafting sheet
:: Upgrade sheet
:: Crafting tool
:: Crafting tool
:: Boots
:: Boots
:: Mage Boots
:: Mage boots
:: Leather boots
:: Mail boots
:: Plate boots
:: Circlet
:: Circlet
:: Gloves
:: Gloves
:: Mage Gloves
:: Mage gloves
:: Leather gloves
:: Mail gloves
:: Plate gloves
:: Helmet
:: Helmet
:: Leather helmet
:: Mail helmet
:: Plate helmet
:: Jacket
:: Jacket
:: Leather jacket
:: Mail jacket
:: Plate jacket
:: Pants
:: Pants
:: Leather pants
:: Mail pants
:: Plate pants
:: Robe
:: Robe
:: Shield
:: Shield
Line 143: Line 207:
; show-rarity : Optional. Show/hide rarity parameter in infobox. Options: yes, no
; show-rarity : Optional. Show/hide rarity parameter in infobox. Options: yes, no
; set : Optional. Include if item is part of a set (e.g. Valhalla soul item)
; set : Optional. Include if item is part of a set (e.g. Valhalla soul item)
; value : Required. Listed value on the item.  
; value : Optional. Listed value on the item.  
; value-type : Required. Type of currency to display. Options:
; value-type : Required if value included. Type of currency to display. Options:
:: coin
:: coin
:: fame  
:: fame  
; goal : Optional. Specific quest or challenge this item is affiliated with. If entering multiple goals, put each new goal on a new line.
; goal : Optional. Specific quest or challenge this item is affiliated with. If entering multiple goals, put each new goal on a new line.
; reward : Optional. Specific quest, challenge, or event that can reward this item. If entering multiple, put each a new line.
; classes : Optional. Available classes that can use the item.
; classes : Optional. Available classes that can use the item.
; gender : Optional. Available gender that can use the item.
; gender : Optional. Available gender that can use the item.
Line 162: Line 227:
:: two
:: two
:: off
:: off
; physical : Optional. Physical defense stat of the item.
; physical-def : Optional. Physical defense stat of the item.
; magic : Optional. Magic defense stat of the item.
; magical-def : Optional. Magic defense stat of the item.
; evasion : Optional. Evasion decrement stat of the item.
; evasion : Optional. Evasion decrement stat of the item.
; block : Optional. Blocking Rate stat of the item.
; block : Optional. Blocking Rate stat of the item.

Latest revision as of 18:32, 24 October 2024

Description

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

{{Item infobox
|name=
|icon=
|description=
|type=
|rarity=
|show-rarity=
|set=
|classes=
|gender=
|level=
|STR=
|DEX=
|INT=
|speed=
|damage=
|magic-damage=
|mana=
|cast=
|hands=
|physical-def=
|magical-def=
|evasion=
|block=
|bonus1...bonus6=
|value=
|value-type=
|goal=
|reward=
|id=
|gallery1...gallery5=
|gallery-text1...gallery-text5=
}}

Parameters

name
Optional. Only include if the name of the item differs from the article name. Defaults to the name of the article: {{PAGENAME}}
icon
Optional. Icon of the item.
description
Optional. Skill description.
type
Required. The type of item. Options:
Crafting material
Crafting sheet
Upgrade sheet
Crafting tool
Boots
Mage boots
Leather boots
Mail boots
Plate boots
Circlet
Gloves
Mage gloves
Leather gloves
Mail gloves
Plate gloves
Helmet
Leather helmet
Mail helmet
Plate helmet
Jacket
Leather jacket
Mail jacket
Plate jacket
Pants
Leather pants
Mail pants
Plate pants
Robe
Shield
Cape
Necklace
Ring
Axe
Bow
Dagger
Mace
Polearm
Staff
Sword
Wand
level
Optional. The level or levels of the item.
rarity
Optional. Should be one of the following: normal, magic, rare, soul, unique.
show-rarity
Optional. Show/hide rarity parameter in infobox. Options: yes, no
set
Optional. Include if item is part of a set (e.g. Valhalla soul item)
value
Optional. Listed value on the item.
value-type
Required if value included. Type of currency to display. Options:
coin
fame
goal
Optional. Specific quest or challenge this item is affiliated with. If entering multiple goals, put each new goal on a new line.
reward
Optional. Specific quest, challenge, or event that can reward this item. If entering multiple, put each a new line.
classes
Optional. Available classes that can use the item.
gender
Optional. Available gender that can use the item.
STR
Optional. Minimum STR to use item.
DEX
Optional. Minimum DEX to use item.
INT
Optional. Minimum INT to use item.
speed
Optional. Attack speed stat of the item.
damage
Optional. Physical Attack stat of the item.
magic-damage
Optional. Magic Attack stat of the item.
mana
Optional. Mana regeneration stat of the item.
cast
Optional. Casting speed decrement stat of the item.
hands
Optional. Number of hands to wield the item. Options:
one
two
off
physical-def
Optional. Physical defense stat of the item.
magical-def
Optional. Magic defense stat of the item.
evasion
Optional. Evasion decrement stat of the item.
block
Optional. Blocking Rate stat of the item.
bonus1...bonus6
Optional. Item bonuses.
gallery1...gallery5
Optional. Images related to the item.
gallery-text1...gallery-text5
Optional. Image descriptions.

Example

Item infobox

Blessing Stone

Prevents the destruction of items when enchanting.

—In-game description.

Type
Tool
Value
2000 fame
{{Item infobox
|name=Blessing Stone
|icon=Blessing Stone icon.gif
|description=Prevents the destruction of items when enchanting.
|type=Tool
|level=
|rarity=soul
|show-rarity=no
|value=2000
|value-type=fame
|goal=
|id=
}}

Ring Dagger

Type
Dagger
Rarity
Normal
Classes
Wr Kn Ac Pa Wi Sn
Level
10
Req. STR
10
Req. DEX
19
Phys. Attack
44-61
Atk. Speed
Fast+2
Hands
One-handed
{{Item infobox
|name=Ring Dagger
|icon=
|type=Dagger
|rarity=normal
|classes=Wr Kn Ac Pa Wi Sn
|level=10
|STR=10
|DEX=19
|speed=Fast+2
|damage=44-61
|hands=one
}}

TODO

  • Add properties to parameters
  • Add linked class abbrevs