Template:Item: Difference between revisions
Jump to navigation
Jump to search
(update on category handling.) |
(Bug test) |
||
| Line 20: | Line 20: | ||
|}<includeonly>[[Category:Items|{{PAGENAME}}]] |
|}<includeonly>[[Category:Items|{{PAGENAME}}]] |
||
<!-- Adds page to appropriate category based on type --> |
<!-- Adds page to appropriate category based on type --> |
||
</includeonly><noinclude> |
|||
{{IfMatch|clothing|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Clothing|{{PAGENAME}}]]{{#if:{{{wearloc|}}}|[[Category:Clothing ({{{wearloc}}} slot)|{{PAGENAME}}]]}}}}{{IfMatch|container|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Containers|{{PAGENAME}}]]{{IfAND|{{{wearloc|}}}|{{#ifeq:{{lc:{{{wearloc}}}}}|n||5}}|true=[[Category:Containers ({{{wearloc}}} slot)|{{PAGENAME}}]]}}}}{{IfMatch|jewelry|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Jewelry|{{PAGENAME}}]]{{#if:{{{wearloc|}}}|[[Category:Jewelry ({{{wearloc}}} slot)|{{PAGENAME}}]]}}}}{{#if:{{IfMatch|magic|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}{{#ifeq:{{lc:{{{magic}}}}}|y|6}}|[[Category:Magic Items|{{PAGENAME}}]]}}{{IfMatch|cambrinth|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}|true=[[Category:Magic Items|{{PAGENAME}}]][[Category:Cambrinth Items|{{PAGENAME}}]]}}{{IfMatch|gaethzen|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|{{{magic}}}|true=[[Category:Magic Items|{{PAGENAME}}]][[Category:Gaethzen Items|{{PAGENAME}}]]}}{{IfMatch|perfect chakrel|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Perfect Chakrel Items|{{PAGENAME}}]][[Category:Chakrel Items|{{PAGENAME}}]][[Category:Barbarian Items|{{PAGENAME}}]][[Category:Barbarian Tools|{{PAGENAME}}]]}}{{IfMatch|rough chakrel|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Rough Chakrel Items|{{PAGENAME}}]][[Category:Chakrel Items|{{PAGENAME}}]][[Category:Barbarian Items|{{PAGENAME}}]][[Category:Barbarian Tools|{{PAGENAME}}]]}}{{IfMatch|barbarian|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Barbarian Items|{{PAGENAME}}]]}}{{IfMatch|ranger|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Ranger Items|{{PAGENAME}}]]}}{{IfMatch|empath|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Empath Items|{{PAGENAME}}]]}}{{IfMatch|warrior mage|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Warrior Mage Items|{{PAGENAME}}]]}}{{IfMatch|trader|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Trader Items|{{PAGENAME}}]]}}{{IfMatch|paladin|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Paladin Items|{{PAGENAME}}]]}}{{IfMatch|thief|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Thief Items|{{PAGENAME}}]]}}{{IfMatch|bard|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Bard Items|{{PAGENAME}}]]}}{{IfMatch|moon mage|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Moon Mage Items|{{PAGENAME}}]]}}{{IfMatch|cleric|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Cleric Items|{{PAGENAME}}]]}}{{IfMatch|food|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Food|{{PAGENAME}}]]}}{{IfMatch|drink|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Drinks|{{PAGENAME}}]]}}{{IfMatch|herb|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Herbs|{{PAGENAME}}]]}}{{IfMatch|alchemy|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Alchemy Tools|{{PAGENAME}}]]}}{{IfMatch|tack|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Tack|{{PAGENAME}}]]}}{{IfMatch|creation|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Creation Tools|{{PAGENAME}}]]}}{{IfMatch|instrument|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Instruments|{{PAGENAME}}]]}}{{IfMatch|juggle|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Juggling Items|{{PAGENAME}}]]{{#if:{{{weight|}}}|{{#switch:{{{weight}}}|9=[[Category:Juggling Items (9 stone)|{{PAGENAME}}]]|[[Category:Juggling Items ({{{weight}}} stones)|{{PAGENAME}}]]}}}}}}{{IfMatch|light|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Light Sources|{{PAGENAME}}]]}}{{IfMatch|quest|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Quest Prizes|{{PAGENAME}}]]}}{{IfMatch|barbarian tools|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Barbarian Items|{{PAGENAME}}]][[Category:Barbarian Tools|{{PAGENAME}}]]}}{{IfMatch|ranger tools|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Ranger Items|{{PAGENAME}}]][[Category:Ranger Tools|{{PAGENAME}}]]}}{{IfMatch|empath tools|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Empath Items|{{PAGENAME}}]][[Category:Empath Tools]]}}{{IfMatch|warrior mage tools|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Warrior Mage Items|{{PAGENAME}}]][[Category:Warrior Mage Tools]]}}{{IfMatch|trader tools|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Trader Items|{{PAGENAME}}]][[Category:Trader Tools|{{PAGENAME}}]]}}{{IfMatch|paladin tools|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Paladin Items|{{PAGENAME}}]][[Category:Paladin Tools|{{PAGENAME}}]]}}{{IfMatch|thief tools|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Thief Items|{{PAGENAME}}]][[Category:Thief Tools|{{PAGENAME}}]]}}{{IfMatch|bard tools|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Bard Items|{{PAGENAME}}]][[Category:Bard Tools|{{PAGENAME}}]]}}{{IfMatch|moon mage tools|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Moon Mage Items|{{PAGENAME}}]][[Category:Moon Mage Tools|{{PAGENAME}}]]}}{{IfMatch|cleric tools|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Cleric Items|{{PAGENAME}}]][[Category:Cleric Tools|{{PAGENAME}}]]}}{{IfMatch|anatomy chart|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Anatomy Charts|{{PAGENAME}}]]}}{{IfMatch|clothing|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true={{IfMatch|pocketed|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}|true=[[Category:Pocketed Clothing|{{PAGENAME}}]]{{#if:{{{wearloc|}}}|[[Category:Pocketed Clothing ({{{wearloc}}} slot)|{{PAGENAME}}]]}}}}}}</includeonly><noinclude> |
|||
==Usage Documentation:== |
==Usage Documentation:== |
||
This template is for use with non-armor, non-weapon items. Copy the following into the item page. [[Template:Weapon|Weapons]], [[Template:Armor|armor]], and [[Template:Shield|shields]] have their own separate templates, and for brawling and related equipment use [[Template:BrawlItem]]. For information on listing crafted equipment, consult the [[Elanthipedia:Manual_of_Style/Items#Crafted Equipment|Manual of Style]]. |
This template is for use with non-armor, non-weapon items. Copy the following into the item page. [[Template:Weapon|Weapons]], [[Template:Armor|armor]], and [[Template:Shield|shields]] have their own separate templates, and for brawling and related equipment use [[Template:BrawlItem]]. For information on listing crafted equipment, consult the [[Elanthipedia:Manual_of_Style/Items#Crafted Equipment|Manual of Style]]. |
||
Revision as of 16:30, 13 June 2008
| Item | |
|---|---|
| Look: | Unknown |
| Core Noun: | Unknown |
| Weight: | ? stone(s) |
| Type: | Unknown |
| For Sale At (Base Cost): |
|
| 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)/(guild) tools/container/magic/ cambrinth/gaethzen/food/drink/instrument/juggle/light/quest |
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# | # | Price at preceeding store |
| coin# | k/l/d | Automatically tags the previous price with the correct currency |
{{Item
|name=
|look=
|noun=
|type=
|type2=
|type3=
|type4=
|type5=
|type6=
|weight=
|wearloc=
|magic=
|maxcharge=
|heldspell=
|appcost=
|traderapp=
|shop=
|cost=
|coin=
|shop2=
|cost2=
|coin2=
|shop3=
|cost3=
|coin3=
|shop4=
|cost4=
|coin4=
|shop5=
|cost5=
|coin5=
|shop6=
|cost6=
|coin6=
|shop7=
|cost7=
|coin7=
|shop8=
|cost8=
|coin8=
|shop9=
|cost9=
|coin9=
|shop10=
|cost10=
|coin10=
}}