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
Line 42: Line 42:
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=
|level=
|level=
|rank=
|rarity=
|location1...location5=
|value=
|goal=
|goal=
|service=
|id=
|gallery1...gallery5=
|gallery1...gallery5=
|gallery-text1...gallery-text5=
|gallery-text1...gallery-text5=
Line 58: Line 58:
== 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 NPC 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.
; type : Required. The type of item. Options:
; 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.
:: Crafting material
; level : Optional. The level or levels of the NPC.
:: Crafting sheet
; rank : Optional. Should be one of the following: boss. Defaults to normal
:: Crafting tool
; location1...location5 : Required. The area(s) or zone(s) the NPC can be found. Separate additional locations with location2, location3, etc.
:: Boots
; goal : Optional. Specific quest or challenge this NPC is affiliated with. If entering multiple goals, put each new goal on a new line.
:: Mage Boots
; service : Optional. The service provided by the NPC. Options:
:: Circlet
::Apprentice Blacksmith
:: Gloves
::Armor Shop
:: Mage Gloves
::Blacksmith
:: Helmet
::Grocer
:: Jacket
::Guild Cloak Shop
:: Pants
::Guild Manager
:: Robe
::Magic Goods
:: Shield
::Material Shop
:: Cape
::Mercenary Manager
:: Necklace
::Mobile Shop
:: Ring
::Weapon Shop
:: Axe
::Fame
:: Bow
::Arena Manager
:: Dagger
::Quest
:: Hammer
::Bank
:: Mace
::Guard
:: Polearm
::Mercenary
:: Staff
::Summoned guardian
:: Sword
::Stat Reset
:: Wand
; gallery1...gallery5 : Optional. Images related to the NPC.
; 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.
; 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.
; gallery-text1...gallery-text5 : Optional. Image descriptions.


Line 115: Line 118:


== TODO ==
== TODO ==
:*Add coordinates parameter if/when kartographer is enabled
:*Add properties to parameters
:*Add properties to parameters
:*Add difficulty parameter
::*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>

Revision as of 03:18, 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.
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

La Bark

Race
Canine
Level
31
Rank
Normal
Image(s)

Location in Depthless Orifice (all-PVP zone)

{{NPC infobox
|name=La Bark
|icon=
|image=Boss-labark.png
|race=Canine
|level=31
|rank=Boss
|location1=Depthless Orifice
|gallery1=Depthless_Orifice-labark.png
|gallery-text1=Location in Depthless Orifice (all-PVP zone)
}}

TODO

  • Add properties to parameters