Template:Item infobox: Difference between revisions

From FHX Wiki
No edit summary
Line 3: Line 3:
{{#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">
<br>
<p class="image_wrapper">[[File:{{{image}}}|200px|center]]</p>
;Type : {{{type}}}
;Race
:{{{race}}}
{{#if:{{{level|}}}|
{{#if:{{{level|}}}|
;Level
;Level
:{{{level}}}}}
:{{{level}}}}}
{{#if:{{{rank|}}}|
{{#if:{{{rarity|}}}|
;Rank
;Rarity
:{{{rank}}}|
:{{{rank}}}|
;Rank
;Rarity
:Normal}}
:Normal}}
;Location
;Value : {{{value}}}
:[[{{{location1}}}]] {{#if:{{{location2|}}}|[[{{{location2}}}]]}} {{#if:{{{location3|}}}|[[{{{location3}}}]]}} {{#if:{{{location4|}}}|[[{{{location4}}}]]}} {{#if:{{{location5|}}}|[[{{{location5}}}]]}}
{{#if:{{{goal|}}}|
{{#if:{{{goal|}}}|
;Part of
;Part of
:[[{{{goal}}}]]}}
:[[{{{goal}}}]]}}
{{#if:{{{service|}}}|
{{#if:{{{id|}}}|
;Services
;Item id
:[[{{{service}}}]]}}
:{{{id}}}}}
</div>
</div>
{{#if: {{{gallery1|}}} |  
{{#if: {{{gallery1|}}} |  
Line 87: Line 84:
; level : Optional. The level or levels of the item.
; level : Optional. The level or levels of the item.
; rarity : Optional. Should be one of the following: normal, magic, rare, soul, unique. Defaults to normal.
; rarity : Optional. Should be one of the following: normal, magic, rare, soul, unique. Defaults to normal.
; value : Required. Listed value on the item.
; 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.
; gallery1...gallery5 : Optional. Images related to the item.
; gallery1...gallery5 : Optional. Images related to the item.
Line 92: Line 90:


== Example ==
== Example ==
<pre>
{{Item infobox
{{Item infobox
|name=Blessing Stone
|name=Blessing Stone
|icon=Blessing Stone icon.gif
|icon=Blessing stone icon.gif
|description=
|description=
|type=Enchanting tool
|type=Enchanting tool
Line 103: Line 102:
|id=
|id=
}}
}}
<pre>
</pre>
{{Item infobox
{{Item infobox
|name=Blessing Stone
|name=Blessing Stone
|icon=Blessing stone icon.gif
|icon=Blessing Stone icon.gif
|description=
|description=
|type=Enchanting tool
|type=Enchanting tool
Line 115: Line 114:
|id=
|id=
}}
}}
</pre>


== TODO ==
== TODO ==

Revision as of 07:28, 30 June 2024

Warning:
This template is in draft.

Description

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

{{Item infobox
|name=
|icon=
|description=
|type=
|level=
|rarity=
|value=
|goal=
|id=
|gallery1...gallery5=
|gallery-text1...gallery-text5=
}}

Parameters

name
Optional. Only include if the name of the NPC differs from the article name. Defaults to the name of the article: {{PAGENAME}}
icon
Optional. Icon of the item.
type
Required. The type of item. Options:
Crafting material
Crafting sheet
Crafting tool
Boots
Mage Boots
Circlet
Gloves
Mage Gloves
Helmet
Jacket
Pants
Robe
Shield
Cape
Necklace
Ring
Axe
Bow
Dagger
Hammer
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. Defaults to normal.
value
Required. Listed value on the item.
goal
Optional. Specific quest or challenge this item is affiliated with. If entering multiple goals, put each new goal on a new line.
gallery1...gallery5
Optional. Images related to the item.
gallery-text1...gallery-text5
Optional. Image descriptions.

Example

{{Item infobox
|name=Blessing Stone
|icon=Blessing stone icon.gif
|description=
|type=Enchanting tool
|level=
|rarity=
|value=2000 fame
|goal=
|id=
}}

Page Template:NPC infobox/styles.css has no content.

Blessing Stone


Type
Enchanting tool
Rarity
Normal
Value
2000 fame


TODO

  • Add properties to parameters