Template:Item: Difference between revisions
Jump to navigation
Jump to search
(Logic update and accompanying documentation changes) |
mNo edit summary |
||
Line 20: | Line 20: | ||
|- |
|- |
||
| '''Special Properties:''' |
| '''Special Properties:''' |
||
| |
|{{IfOR|{{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}}}}|true={{#if:{{{wearloc|}}}|{{#ifeq:{{lc:{{{wearloc}}}}}|n||{{#ifeq:{{lc:{{{wearloc}}}}}|generic| |
||
*This item is worn in a generic slot.| |
*This item is worn in a generic slot.| |
||
*This item is worn in the |
*This item is worn in the{{{wearloc}}} slot.}}}}| |
||
*This item is worn in an unknown slot.}}}} |
*This item is worn in an ''unknown'' slot.}}}}{{IfMatch|pocketed|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true= |
||
*This item has pockets.}}<!--For backwards compatability-->{{#if:{{{pockets|}}}| |
*This item has pockets.}}<!--For backwards compatability-->{{#if:{{{pockets|}}}| |
||
*This item has pockets.}}{{IfOR|{{IfMatch|magic|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}}}|{{#ifeq:{{lc:{{{magic}}}}}|y|}}|true= |
*This item has pockets.}}{{IfOR|{{IfMatch|magic|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}}}|{{#ifeq:{{lc:{{{magic}}}}}|y|}}|true= |
||
Line 33: | Line 33: | ||
|}<includeonly>[[Category:Items]] |
|}<includeonly>[[Category:Items]] |
||
<!-- Adds page to appropriate category based on type --> |
<!-- Adds page to appropriate category based on type --> |
||
{{#if:{{IfMatch|clothing|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Clothing]]{{#if:{{{wearloc|}}}|[[Category:Clothing ({{{wearloc}}} slot)]]}}}}{{#if:{{IfMatch|container|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Containers]]{{IfAND|{{{wearloc|}}}|{{#ifeq:{{lc:{{{wearloc}}}}}|n||1}}|true=[[Category:Containers ({{{wearloc}}} slot)]]}}}}{{#if:{{IfMatch|jewelry|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Jewelry]]{{#if:{{{wearloc|}}}|[[Category:Jewelry ({{{wearloc}}} slot)]]}}}}{{ |
{{#if:{{IfMatch|clothing|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Clothing]]{{#if:{{{wearloc|}}}|[[Category:Clothing ({{{wearloc}}} slot)]]}}}}{{#if:{{IfMatch|container|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Containers]]{{IfAND|{{{wearloc|}}}|{{#ifeq:{{lc:{{{wearloc}}}}}|n||1}}|true=[[Category:Containers ({{{wearloc}}} slot)]]}}}}{{#if:{{IfMatch|jewelry|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[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]]}}}}{{#if:{{IfMatch|cambrinth|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}}}|[[Category:Magic Items]][[Category:Cambrinth Items]]}}{{#if:{{IfMatch|gaethzen|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}}}|[[Category:Magic Items]][[Category:Gaethzen Items]]}}{{#if:{{IfMatch|perfect chakrel|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Perfect Chakrel Items]][[Category:Chakrel Items]][[Category:Barbarian Items]]}}{{#if:{{IfMatch|rough chakrel|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Rough Chakrel Items]][[Category:Chakrel Items]][[Category:Barbarian Items]]}}{{#if:{{IfMatch|barbarian|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Barbarian Items]]}}{{#if:{{IfMatch|ranger|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Ranger Items]]}}{{#if:{{IfMatch|empath|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Empath Items]]}}{{#if:{{IfMatch|warrior mage|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Warrior Mage Items]]}}{{#if:{{IfMatch|trader|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Trader Items]]}}{{#if:{{IfMatch|paladin|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Paladin Items]]}}{{#if:{{IfMatch|thief|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Thief Items]]}}{{#if:{{IfMatch|bard|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Bard Items]]}}{{#if:{{IfMatch|moon mage|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Moon Mage Items]]}}{{#if:{{IfMatch|cleric|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|[[Category:Cleric Items]]}}</includeonly><noinclude> |
||
==Usage Documentation:== |
==Usage Documentation:== |
Revision as of 01:13, 4 June 2008
Item | |
---|---|
Look: | Unknown |
Core Noun: | Unknown |
Weight: | ? stone(s) |
Type: | Unknown |
For Sale At (Base Cost): |
|
Appraised Cost: | ? Kronar(s) |
Special Properties: | Template:IfORTemplate:IfOR |
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# | magic/alchemy/herb/clothing/jewelry/tack/creation/pocketed/ rough chakrel/perfect chakrel/(guild)/container |
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= }}