Template:Item: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added support for list)
(bugfix)
Line 14: Line 14:
|itype=item|special={{#if:{{{type|}}}|{{{type|}}}|{{{special|}}}}}|special2={{#if:{{{type2|}}}|{{{type2|}}}|{{{special2|}}}}}|special3={{#if:{{{type3|}}}|{{{type3|}}}|{{{special3|}}}}}|special4={{#if:{{{type4|}}}|{{{type4|}}}|{{{special4|}}}}}|special5={{#if:{{{type5|}}}|{{{type5|}}}|{{{special5|}}}}}|special6={{#if:{{{type6|}}}|{{{type6|}}}|{{{special6|}}}}}|wearloc={{{wearloc|}}}|source={{#if:{{{shop|}}}|{{{shop|}}}|{{{source|}}}}}|cost={{{cost|}}}|source2={{#if:{{{shop2|}}}|{{{shop2|}}}|{{{source2|}}}}}|cost2={{{cost2|}}}|source3={{#if:{{{shop3|}}}|{{{shop3|}}}|{{{source3|}}}}}|cost3={{{cost3|}}}|source4={{#if:{{{shop4|}}}|{{{shop4|}}}|{{{source4|}}}}}|cost4={{{cost4|}}}|source5={{#if:{{{shop5|}}}|{{{shop5|}}}|{{{source5|}}}}}|cost5={{{cost5|}}}|source6={{#if:{{{shop6|}}}|{{{shop6|}}}|{{{source6|}}}}}|cost6={{{cost6|}}}|source7={{#if:{{{shop7|}}}|{{{shop7|}}}|{{{source7|}}}}}|cost7={{{cost7|}}}|source8={{#if:{{{shop8|}}}|{{{shop8|}}}|{{{source8|}}}}}|cost8={{{cost8|}}}|source9={{#if:{{{shop9|}}}|{{{shop9|}}}|{{{source9|}}}}}|cost9={{{cost9|}}}|source10={{#if:{{{shop10|}}}|{{{shop10|}}}|{{{source10|}}}}}|cost10={{{cost10|}}}|maxcharge={{{maxcharge|}}}|sourcetype={{{sourcetype|}}}|sourcetype2={{{sourcetype2|}}}|sourcetype3={{{sourcetype3|}}}|sourcetype4={{{sourcetype4|}}}|sourcetype5={{{sourcetype5|}}}|sourcetype6={{{sourcetype6|}}}|sourcetype7={{{sourcetype7|}}}|sourcetype8={{{sourcetype8|}}}|sourcetype9={{{sourcetype9|}}}|sourcetype10={{{sourcetype10|}}}|spellcast={{{spellcast|}}}|appcost={{{appcost|}}}|uses={{{uses|}}}|rare={{{rare|}}}}}
|itype=item|special={{#if:{{{type|}}}|{{{type|}}}|{{{special|}}}}}|special2={{#if:{{{type2|}}}|{{{type2|}}}|{{{special2|}}}}}|special3={{#if:{{{type3|}}}|{{{type3|}}}|{{{special3|}}}}}|special4={{#if:{{{type4|}}}|{{{type4|}}}|{{{special4|}}}}}|special5={{#if:{{{type5|}}}|{{{type5|}}}|{{{special5|}}}}}|special6={{#if:{{{type6|}}}|{{{type6|}}}|{{{special6|}}}}}|wearloc={{{wearloc|}}}|source={{#if:{{{shop|}}}|{{{shop|}}}|{{{source|}}}}}|cost={{{cost|}}}|source2={{#if:{{{shop2|}}}|{{{shop2|}}}|{{{source2|}}}}}|cost2={{{cost2|}}}|source3={{#if:{{{shop3|}}}|{{{shop3|}}}|{{{source3|}}}}}|cost3={{{cost3|}}}|source4={{#if:{{{shop4|}}}|{{{shop4|}}}|{{{source4|}}}}}|cost4={{{cost4|}}}|source5={{#if:{{{shop5|}}}|{{{shop5|}}}|{{{source5|}}}}}|cost5={{{cost5|}}}|source6={{#if:{{{shop6|}}}|{{{shop6|}}}|{{{source6|}}}}}|cost6={{{cost6|}}}|source7={{#if:{{{shop7|}}}|{{{shop7|}}}|{{{source7|}}}}}|cost7={{{cost7|}}}|source8={{#if:{{{shop8|}}}|{{{shop8|}}}|{{{source8|}}}}}|cost8={{{cost8|}}}|source9={{#if:{{{shop9|}}}|{{{shop9|}}}|{{{source9|}}}}}|cost9={{{cost9|}}}|source10={{#if:{{{shop10|}}}|{{{shop10|}}}|{{{source10|}}}}}|cost10={{{cost10|}}}|maxcharge={{{maxcharge|}}}|sourcetype={{{sourcetype|}}}|sourcetype2={{{sourcetype2|}}}|sourcetype3={{{sourcetype3|}}}|sourcetype4={{{sourcetype4|}}}|sourcetype5={{{sourcetype5|}}}|sourcetype6={{{sourcetype6|}}}|sourcetype7={{{sourcetype7|}}}|sourcetype8={{{sourcetype8|}}}|sourcetype9={{{sourcetype9|}}}|sourcetype10={{{sourcetype10|}}}|spellcast={{{spellcast|}}}|appcost={{{appcost|}}}|uses={{{uses|}}}|rare={{{rare|}}}}}
|}
|}
<includeonly>{{#if:{{{list|}}}|{{cat|Items|{{{list}}}|{{cat|Items}}}}</includeonly><noinclude>
<includeonly>{{#if:{{{list|}}}|{{cat|Items|{{{list}}}}}|{{cat|Items}}}}</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:Weapon]]. 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:Weapon]]. For information on listing crafted equipment, consult the [[Elanthipedia:Manual_of_Style/Items#Crafted Equipment|Manual of Style]].

Revision as of 14:38, 7 March 2011

Item
Look:
Core Noun:
Weight:
Appraised Cost: Unknown
Properties:
Dimensions: ? length x ? width x ? height
Sources: Unknown

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:Weapon. 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 <text>/- the description gained by LOOKing at it. "-" will result in "You see nothing unusual."
noun the single word noun used to interact with it
type# alchemy/clothing/container/creation/herb/jewelry/tack/rough chakrel
/perfect chakrel/(guild) style/container/magic/cambrinth/gaethzen/food/drink/(type) instrument/juggle/light/quest
For category inclusion
uses # The number of bites, sips, drinks, waves, etc.
weight # weight in stones ("-" will disable)
wearloc -/generic/eye/eyes/ear/ears/head/hair/eyebrow/nose/neck/chest/
shirt/shirt-/arms/upper arm/wrist/hands/finger/back/shoulder/shoulders/
abdomen/waist/belt/legs/thigh/pants/ankles/feet/tail
where it is worn
maxcharge # maximum mana that can be held by it
spellcast spell the spell cast by the object
appcost # The cost given by an expert (Trader preferred) appraisal. Given in Kronars. ("-" will disable)
sourcetype# sold by,other Gives the appropriate display of the source of the item. Note: "dropped by" is now handled by script.
source# (source)+(source version 2)+... Where the item comes from. If sourcetype is "dropped by" or "sold by", links auto generated. If there are multiple versions of a store selling the item at the same cost, list them with the "+".
cost# # Kronars/Dokoras/Lirums Price at preceeding store, including currency
list A way to change how an item is listed in categories.
rare true/false Used to explicitly declare that an item is not commonly available at a shop or creature drop.
{{Item
|name=
|look=
|noun=
|type=
|type2=
|type3=
|type4=
|type5=
|type6=
|uses=
|weight=
|wearloc=
|maxcharge=
|spellcast=
|appcost=
|traderapp=
|sourcetype=
|source=
|cost=
....
|sourcetype10=
|source10=
|cost10=
}}