Template:Item infobox: Difference between revisions

From FHX Wiki
(Created page with "<noinclude>{{page warning|message=This template is in draft.}}</noinclude><includeonly><templatestyles src="NPC infobox/styles.css" /> <div class="infobox"> {{#if:{{{icon|}}}|<div class="infobox-icon">[[File:{{{icon}}}|40px]]</div>}} <p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p> <div class="wrapper"> <p class="image_wrapper">[[File:{{{image}}}|200px|center]]</p> ;Race :{{{race}}} {{#if:{{{level|}}}| ;Level :{{{level}}}}} {{#if:{{{rank|}}}| ;Rank :{{{...")
 
No edit summary
 
(54 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{page warning|message=This template is in draft.}}</noinclude><includeonly><templatestyles src="NPC infobox/styles.css" />
<includeonly><templatestyles src="Infobox/styles.css" />
<div class="infobox">
<div class="infobox item {{lc:{{{rarity|}}}}}">
{{#if:{{{icon|}}}|<div class="infobox-icon">[[File:{{{icon}}}|40px]]</div>}}
{{#if:{{{icon|}}}|<div class="infobox-icon">[[File:{{{icon}}}|40px]]</div>}}
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p>
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p>
<div class="wrapper">
<div class="wrapper">
<p class="image_wrapper">[[File:{{{image}}}|200px|center]]</p>
{{#if:{{{description|}}}|{{quote|quote={{{description}}}|source=In-game description.}}}}
;Race
;Type
:{{{race}}}
:[[{{{type}}}]][[Category:{{{type}}}]]{{#if:{{{rarity|}}}|{{#ifeq:{{{show-rarity}}}|no||
{{#if:{{{level|}}}|
;Rarity
:{{rarity|{{ucfirst:{{{rarity}}}}}}}}}}}{{#if:{{{classes|}}}|
;Classes
:{{{classes}}}}}{{#if:{{{gender|}}}|
;Gender
:{{{gender}}}}}{{#if:{{{level|}}}|
;Level
;Level
:{{{level}}}}}
:{{{level}}}}}{{#if:{{{STR|}}}|
{{#if:{{{rank|}}}|
;Req. STR
;Rank
:{{{STR}}}}}{{#if:{{{DEX|}}}|
:{{{rank}}}|
;Req. DEX
;Rank
:{{{DEX}}}}}{{#if:{{{INT|}}}|
:Normal}}
;Req. INT
;Location
:{{{INT}}}}}{{#if:{{{damage|}}}|
:[[{{{location1}}}]] {{#if:{{{location2|}}}|[[{{{location2}}}]]}} {{#if:{{{location3|}}}|[[{{{location3}}}]]}} {{#if:{{{location4|}}}|[[{{{location4}}}]]}} {{#if:{{{location5|}}}|[[{{{location5}}}]]}}
;Phys. Attack
{{#if:{{{goal|}}}|
:{{{damage}}}}}{{#if:{{{magic-damage|}}}|
;Magic Attack
:{{{magic-damage}}}}}{{#if:{{{physical-def|}}}|
;Phys. Def.
:{{{physical-def}}}}}{{#if:{{{magical-def|}}}|
;Magic Def.
:{{{magical-def}}}}}{{#if:{{{block|}}}|
;Blocking Rate
:{{{block}}} %}}{{#if:{{{evasion|}}}|
;Evasion dec.
:{{{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}}}}
;Value
:{{#switch:{{{value-type|}}}|fame={{{value}}} {{{value-type}}}|coin={{money|value={{{value}}}|showZeros=0}}}}{{#if:{{{goal|}}}|
;Part of
;Part of
:[[{{{goal}}}]]}}
:[[{{{goal}}}]]}}{{#if:{{{reward|}}}|
{{#if:{{{service|}}}|
;Rewarded by
;Services
:[[{{{reward}}}]]}}{{#if:{{{id|}}}|
:[[{{{service}}}]]}}
;Item id
:{{{id}}}}}
</div>
</div>
{{clear}}
{{#if:{{{bonus1|}}}|<div class="subheading">Item bonuses</div>
<div style="text-align:center">{{#if:{{{bonus1|}}}|{{bonus|{{{bonus1}}}}}}}{{#if:{{{bonus2|}}}|
<br>{{bonus|{{{bonus2}}}}}}}{{#if:{{{bonus3|}}}|
<br>{{bonus|{{{bonus3}}}}}}}{{#if:{{{bonus4|}}}|
<br>{{bonus|{{{bonus4}}}}}}}{{#if:{{{bonus5|}}}|
<br>{{bonus|{{{bonus5}}}}}}}{{#if:{{{bonus6|}}}|
<br>{{bonus|{{{bonus6}}}}}}}{{#if:{{{bonus7|}}}|
<br>{{bonus|Unidentified}}}}<br><br>
</div>}}
{{#if: {{{gallery1|}}} |  
{{#if: {{{gallery1|}}} |  
{{{!}} style="width:100%"
{{{!}} style="width:100%"
Line 29: Line 65:
{{!}}- style="text-align:center;"
{{!}}- style="text-align:center;"
{{!}}
{{!}}
{{#if:{{{gallery1|}}}|[[File:{{{gallery1}}}|200px]]
{{#if:{{{gallery1|}}}|[[File:{{{gallery1}}}]]
<p style="font-size:.9em;">{{{gallery-text1|Click to enlarge.}}}</p>}}{{#if:{{{gallery2|}}}|[[File:{{{gallery2}}}|200px]]
<p style="font-size:.9em;">{{{gallery-text1|Click to enlarge.}}}</p>}}{{#if:{{{gallery2|}}}|[[File:{{{gallery2}}}]]
<p style="font-size:.9em;">{{{gallery-text2|Click to enlarge.}}}</p>}}{{#if:{{{gallery3|}}}|[[File:{{{gallery3}}}|200px]]
<p style="font-size:.9em;">{{{gallery-text2|Click to enlarge.}}}</p>}}{{#if:{{{gallery3|}}}|[[File:{{{gallery3}}}]]
<p style="font-size:.9em;">{{{gallery-text3|Click to enlarge.}}}</p>}}{{#if:{{{gallery4|}}}|[[File:{{{gallery4}}}|200px]]
<p style="font-size:.9em;">{{{gallery-text3|Click to enlarge.}}}</p>}}{{#if:{{{gallery4|}}}|[[File:{{{gallery4}}}]]
<p style="font-size:.9em;">{{{gallery-text4|Click to enlarge.}}}</p>}}{{#if:{{{gallery5|}}}|[[File:{{{gallery5}}}|200px]]
<p style="font-size:.9em;">{{{gallery-text4|Click to enlarge.}}}</p>}}{{#if:{{{gallery5|}}}|[[File:{{{gallery5}}}]]
<p style="font-size:.9em;">{{{gallery-text5|Click to enlarge.}}}</p>}}
<p style="font-size:.9em;">{{{gallery-text5|Click to enlarge.}}}</p>}}
{{!}}}
{{!}}}
| {{clear}} }}
| {{clear}} }}
{{#if:{{{set|}}}|[[Category:{{{set}}}|{{{type}}}]]}}
{{#switch:{{lc:{{{type}}}}}
|crafting sheet=[[Category:Level {{{level}}} crafting sheets]]
|upgrade sheet=[[Category:Level {{{level}}} upgrade sheets]]
|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]]}}
|necklace
|ring={{#ifeq:{{lc:{{{rarity|}}}}}|normal|[[Category:Level {{{level}}} accessories]]}}
|#default={{clear}}
}}
</div></includeonly><noinclude>
</div></includeonly><noinclude>
== Description ==
== Description ==
Line 42: Line 120:
It should be transcluded in the following format:
It should be transcluded in the following format:
<pre>
<pre>
{{NPC infobox
{{Item infobox
|name=
|name=
|icon=
|icon=
|image=
|description=
|race=
|type=
|rarity=
|show-rarity=
|set=
|classes=
|gender=
|level=
|level=
|rank=
|STR=
|location1...location5=
|DEX=
|INT=
|speed=
|damage=
|magic-damage=
|mana=
|cast=
|hands=
|physical-def=
|magical-def=
|evasion=
|block=
|bonus1...bonus6=
|value=
|value-type=
|goal=
|goal=
|service=
|reward=
|id=
|gallery1...gallery5=
|gallery1...gallery5=
|gallery-text1...gallery-text5=
|gallery-text1...gallery-text5=
Line 57: Line 155:
</pre>
</pre>
== Parameters ==
== Parameters ==
; name : Optional. Only include if the name of the NPC differs from the article name. Defaults to the name of the article: <code><nowiki>{{PAGENAME}}</nowiki></code>
; name : Optional. Only include if the name of the item differs from the article name. Defaults to the name of the article: <code><nowiki>{{PAGENAME}}</nowiki></code>
; icon : Optional. Include if NPC has a unique icon, like a shop or quest giver.
; icon : Optional. Icon of the item.
; image : Required. Image of the NPC.
; description : Optional. Skill description.
; race : Required. The race of the NPC. Race here should be capitalized. If this NPC could be multiple races, either list them all, comma-separated, or use "Various" instead of a huge list.
; type : Required. The type of item. Options:
; level : Optional. The level or levels of the NPC.
:: Crafting material
; rank : Optional. Should be one of the following: boss. Defaults to normal
:: Crafting sheet
; location1...location5 : Required. The area(s) or zone(s) the NPC can be found. Separate additional locations with location2, location3, etc.
:: Upgrade sheet
; goal : Optional. Specific quest or challenge this NPC is affiliated with. If entering multiple goals, put each new goal on a new line.
:: Crafting tool
; service : Optional. The service provided by the NPC. Options:
:: Boots
::Apprentice Blacksmith
:: Mage boots
::Armor Shop
:: Leather boots
::Blacksmith
:: Mail boots
::Grocer
:: Plate boots
::Guild Cloak Shop
:: Circlet
::Guild Manager
:: Gloves
::Magic Goods
:: Mage gloves
::Material Shop
:: Leather gloves
::Mercenary Manager
:: Mail gloves
::Mobile Shop
:: Plate gloves
::Weapon Shop
:: Helmet
::Fame
:: Leather helmet
::Arena Manager
:: Mail helmet
::Quest
:: Plate helmet
::Bank
:: Jacket
::Guard
:: Leather jacket
::Mercenary
:: Mail jacket
::Summoned guardian
:: Plate jacket
::Stat Reset
:: Pants
; gallery1...gallery5 : Optional. Images related to the NPC.
:: 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 : Required. Listed value on the item.
; value-type : Required. 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.
; gallery-text1...gallery-text5 : Optional. Image descriptions.


== Example ==
== Example ==
{{NPC infobox
{{Item infobox
|name=La Bark
|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=
}}
<pre>
{{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=
}}
</pre>
{{Item infobox
|name=Ring Dagger
|icon=
|icon=
|image=Boss-labark.png
|type=Dagger
|race=Canine
|rarity=normal
|level=31
|classes=Wr Kn Ac Pa Wi Sn
|rank=Boss
|level=10
|location1=Depthless Orifice
|STR=10
|gallery1=Depthless_Orifice-labark.png
|DEX=19
|gallery-text1=Location in Depthless Orifice (all-PVP zone)
|speed=Fast+2
|damage=44-61
|hands=one
}}
}}
<pre>
<pre>
{{NPC infobox
{{Item infobox
|name=La Bark
|name=Ring Dagger
|icon=
|icon=
|image=Boss-labark.png
|type=Dagger
|race=Canine
|rarity=normal
|level=31
|classes=Wr Kn Ac Pa Wi Sn
|rank=Boss
|level=10
|location1=Depthless Orifice
|STR=10
|gallery1=Depthless_Orifice-labark.png
|DEX=19
|gallery-text1=Location in Depthless Orifice (all-PVP zone)
|speed=Fast+2
|damage=44-61
|hands=one
}}
}}
</pre>
</pre>
== TODO ==
== TODO ==
:*Add coordinates parameter if/when kartographer is enabled
:*Add properties to parameters
:*Add properties to parameters
:*Add difficulty parameter
:*Add linked class abbrevs
::*Non-boss: "This NPC may be challenging for characters of similar level."
::*Boss: Easy, Intermediate, Challenging (may write a difficulty page to summarize terms)
{{clear}}
{{clear}}
[[Category:Infobox templates|NPC]]
[[Category:Infobox templates|Item]]
</noinclude>
</noinclude>

Latest revision as of 04:05, 19 September 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
Required. Listed value on the item.
value-type
Required. 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

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
Value
{{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