Template:Item: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(Automatic incomplete handling tag changed from {{Incomplete}} to {{IncompleteItem}})
(added support for juggling items)
Line 21: Line 21:
|-
|-
| '''Special Properties:'''
| '''Special Properties:'''
|{{#If:{{IfMatch|clothing|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}{{IfMatch|jewelry|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}{{IfAND|{{IfMatch|container|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|{{#ifeq:{{lc:{{{wearloc}}}}}|n||1}}}}|{{#if:{{{wearloc|}}}|{{#ifeq:{{lc:{{{wearloc}}}}}|n||{{#ifeq:{{lc:{{{wearloc}}}}}|generic|*This item is worn in a generic slot.|*This item is worn in the {{{wearloc}}} slot.}}}}|*This item is worn in an ''unknown'' slot.}}}}{{#If:{{IfMatch|pocketed|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}{{#switch:{{{pockets}}}|y|yes=1}}|*This item has pockets.}}{{#If:{{IfMatch|magic|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}{{#ifeq:{{lc:{{{magic}}}}}|y|1}}|*This item is magical.}}{{IfMatch|cambrinth|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}|true=*This item is made from [[cambrinth]] and will hold up to {{#if:{{{maxcharge|}}}|{{{maxcharge}}}|''?''}} mana.}}{{IfMatch|gaethzen|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}|true=*This item is made from [[gaethzen]] and will hold up to {{#if:{{{maxcharge|}}}|{{{maxcharge}}}|''?''}} mana.}}{{#if:{{{heldspell|}}}|*This holds the [[{{{heldspell}}}]] spell.}}{{IfMatch|gath mysanda|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*??}}{{IfMatch|food|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This item is food.}}{{IfMatch|drink|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This item is a drink.}}{{IfMatch|herb|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This item will heal when used.}}{{IfMatch|alchemy|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This item is used in alchemical processes.}}{{IfMatch|tack|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This item is designed to be worn by or used on a horse or mount.}}{{IfMatch|creation|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This item is used in a creation process.}}{{IfMatch|instrument|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This is an instrument or a tool to play one.}}
|{{#If:{{IfMatch|clothing|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}{{IfMatch|jewelry|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}{{IfAND|{{IfMatch|container|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|{{#ifeq:{{lc:{{{wearloc}}}}}|n||1}}}}|{{#if:{{{wearloc|}}}|{{#ifeq:{{lc:{{{wearloc}}}}}|n||{{#ifeq:{{lc:{{{wearloc}}}}}|generic|*This item is worn in a generic slot.|*This item is worn in the {{{wearloc}}} slot.}}}}|*This item is worn in an ''unknown'' slot.}}}}{{#If:{{IfMatch|pocketed|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}{{#switch:{{{pockets}}}|y|yes=1}}|*This item has pockets.}}{{#If:{{IfMatch|magic|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}{{#ifeq:{{lc:{{{magic}}}}}|y|1}}|*This item is magical.}}{{IfMatch|cambrinth|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}|true=*This item is made from [[cambrinth]] and will hold up to {{#if:{{{maxcharge|}}}|{{{maxcharge}}}|''?''}} mana.}}{{IfMatch|gaethzen|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}|true=*This item is made from [[gaethzen]] and will hold up to {{#if:{{{maxcharge|}}}|{{{maxcharge}}}|''?''}} mana.}}{{#if:{{{heldspell|}}}|*This holds the [[{{{heldspell}}}]] spell.}}{{IfMatch|gath mysanda|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*??}}{{IfMatch|food|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This item is food.}}{{IfMatch|drink|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This item is a drink.}}{{IfMatch|herb|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This item will heal when used.}}{{IfMatch|alchemy|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This item is used in alchemical processes.}}{{IfMatch|tack|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This item is designed to be worn by or used on a horse or mount.}}{{IfMatch|creation|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This item is used in a creation process.}}{{IfMatch|instrument|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This is an instrument or a tool to play one.}}{{IfMatch|juggle|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=*This is juggling item.}}
|}<includeonly>[[Category:Items]]
|}<includeonly>[[Category:Items]]
<!-- Adds page to appropriate category based on type -->
<!-- Adds page to appropriate category based on type -->
{{IfMatch|clothing|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Clothing]]{{#if:{{{wearloc|}}}|[[Category:Clothing ({{{wearloc}}} slot)]]}}}}{{IfMatch|container|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Containers]]{{IfAND|{{{wearloc|}}}|{{#ifeq:{{lc:{{{wearloc}}}}}|n||1}}|true=[[Category:Containers ({{{wearloc}}} slot)]]}}}}{{IfMatch|jewelry|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Jewelry]]{{#if:{{{wearloc|}}}|[[Category:Jewelry ({{{wearloc}}} slot)]]}}}}{{IfOR| {{IfMatch|magic|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}} }}| {{#ifeq:{{lc:{{{magic}}}}}|y }}|true=[[Category:Magic Items]]}}{{IfMatch|cambrinth|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}|true=[[Category:Magic Items]][[Category:Cambrinth Items]]}}{{IfMatch|gaethzen|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}|true=[[Category:Magic Items]][[Category:Gaethzen Items]]}}{{IfMatch|perfect chakrel|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Perfect Chakrel Items]][[Category:Chakrel Items]][[Category:Barbarian Items]]}}{{IfMatch|rough chakrel|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Rough Chakrel Items]][[Category:Chakrel Items]][[Category:Barbarian Items]]}}{{IfMatch|barbarian|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Barbarian Items]]}}{{IfMatch|ranger|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Ranger Items]]}}{{IfMatch|empath|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Empath Items]]}}{{IfMatch|warrior mage|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Warrior Mage Items]]}}{{IfMatch|trader|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Trader Items]]}}{{IfMatch|paladin|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Paladin Items]]}}{{IfMatch|thief|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Thief Items]]}}{{IfMatch|bard|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Bard Items]]}}{{IfMatch|moon mage|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Moon Mage Items]]}}{{IfMatch|cleric|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Cleric Items]]}}{{IfMatch|food|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Food]]}}{{IfMatch|drink|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Drinks]]}}{{IfMatch|herb|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Herbs]]}}{{IfMatch|alchemy|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Alchemy Tools]]}}{{IfMatch|tack|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Tack]]}}{{IfMatch|creation|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Creation Tools]]}}{{IfMatch|instrument|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Intruments]]}}
{{IfMatch|clothing|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Clothing]]{{#if:{{{wearloc|}}}|[[Category:Clothing ({{{wearloc}}} slot)]]}}}}{{IfMatch|container|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Containers]]{{IfAND|{{{wearloc|}}}|{{#ifeq:{{lc:{{{wearloc}}}}}|n||1}}|true=[[Category:Containers ({{{wearloc}}} slot)]]}}}}{{IfMatch|jewelry|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Jewelry]]{{#if:{{{wearloc|}}}|[[Category:Jewelry ({{{wearloc}}} slot)]]}}}}{{IfOR| {{IfMatch|magic|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}} }}| {{#ifeq:{{lc:{{{magic}}}}}|y }}|true=[[Category:Magic Items]]}}{{IfMatch|cambrinth|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}|true=[[Category:Magic Items]][[Category:Cambrinth Items]]}}{{IfMatch|gaethzen|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}|true=[[Category:Magic Items]][[Category:Gaethzen Items]]}}{{IfMatch|perfect chakrel|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Perfect Chakrel Items]][[Category:Chakrel Items]][[Category:Barbarian Items]]}}{{IfMatch|rough chakrel|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Rough Chakrel Items]][[Category:Chakrel Items]][[Category:Barbarian Items]]}}{{IfMatch|barbarian|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Barbarian Items]]}}{{IfMatch|ranger|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Ranger Items]]}}{{IfMatch|empath|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Empath Items]]}}{{IfMatch|warrior mage|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Warrior Mage Items]]}}{{IfMatch|trader|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Trader Items]]}}{{IfMatch|paladin|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Paladin Items]]}}{{IfMatch|thief|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Thief Items]]}}{{IfMatch|bard|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Bard Items]]}}{{IfMatch|moon mage|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Moon Mage Items]]}}{{IfMatch|cleric|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Cleric Items]]}}{{IfMatch|food|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Food]]}}{{IfMatch|drink|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Drinks]]}}{{IfMatch|herb|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Herbs]]}}{{IfMatch|alchemy|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Alchemy Tools]]}}{{IfMatch|tack|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Tack]]}}{{IfMatch|creation|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Creation Tools]]}}{{IfMatch|instrument|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Intruments]]}}{{IfMatch|juggle|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Juggling Items]]}}</includeonly><noinclude>

</includeonly><noinclude>


==Usage Documentation:==
==Usage Documentation:==
Line 40: Line 38:
|noun|| ||the single word '''noun''' used to interact with it
|noun|| ||the single word '''noun''' used to interact with it
|-
|-
|type#||alchemy/clothing/creation/herb/jewelry/pocketed/tack/rough<br/>chakrel/perfect chakrel/(guild)/container/magic/cambrinth<br/>/gaethzen/food/drink/instrument||For category inclusion
|type#||alchemy/clothing/creation/herb/jewelry/pocketed/tack/rough<br/>chakrel/perfect chakrel/(guild)/container/magic/cambrinth<br/>/gaethzen/food/drink/instrument/juggle||For category inclusion
|-
|-
|weight||#||weight in stones
|weight||#||weight in stones

Revision as of 17:53, 5 June 2008

Item
Look: Unknown
Core Noun: Unknown
Weight: ? stone(s)
Type: Unknown
For Sale At (Base Cost):
Unknown
Unknown
Appraised Cost: ? Kronar(s)
Special Properties:

Usage Documentation:

This template is for use with non-armor, non-weapon items. Copy the following into the item page. Weapons, armor, and shields have their own separate templates, and for brawling and related equipment use Template:BrawlItem. For information on listing crafted equipment, consult the Manual of Style.

Variable Supported Values Usage
name name of the object if it's different than the page name
look the description gained by LOOKing at it.
noun the single word noun used to interact with it
type# alchemy/clothing/creation/herb/jewelry/pocketed/tack/rough
chakrel/perfect chakrel/(guild)/container/magic/cambrinth
/gaethzen/food/drink/instrument/juggle
For category inclusion
weight # weight in stones
wearloc n/generic/eye/eyes/ear/ears/head/hair/eyebrow/nose/neck/chest/
shirt/arms/upper arm/wrist/hands/finger/back/shoulder/shoulders/
abdomen/waist/belt/legs/pants/ankles/feet/tail
where it is worn
maxcharge # maximum mana that can be held by it
heldspell the spell cast by the object
appcost # The cost given by an expert (trader preferred) appraisal. Given in kronars
traderapp y/n Was the expert appraisal done by a trader?
shop# Where it is sold
cost# # Kronars/Lirums/Dokoras Price at preceeding store
{{Item
|name=
|look=
|noun=
|type=
|type2=
|type3=
|type4=
|type5=
|type6=
|weight=
|wearloc=
|magic=
|maxcharge=
|heldspell=
|appcost=
|traderapp=
|shop=
|cost=
|shop2=
|cost2=
|shop3=
|cost3=
}}