Template:Item: Difference between revisions
Jump to navigation
Jump to search
(added support for Property:Missing) |
(updated incomplete handling) |
||
Line 1: | Line 1: | ||
<includeonly><!-- Adds |
<includeonly><!-- Adds Incomplete template if non-optional information is missing-->{{#if:{{#show:{{FULLPAGENAME}}|?missing}}|{{incomplete}}|}}[[page type is::item| ]]</includeonly> |
||
{{#If:{{IfAND|{{{look|}}}|{{{noun|}}}|{{{weight|}}}|{{{type|}}}|{{{appcost|}}}|{{#If:{{IfMatch|cambrinth|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|{{#If:{{{maxcharge|}}}|0}}|0}}|{{#If:{{IfMatch|gaethzen|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|{{#If:{{{maxcharge|}}}|2}}|2}}|{{#If:{{IfMatch|clothing|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}{{IfMatch|jewelry|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|{{{type6}}}}}|{{#If:{{{wearloc|}}}|3}}|3}}|{{IfAND|{{{sourcetype|}}}|{{{source|}}}|{{#switch:{{{sourcetype}}}|sold by={{#if:{{{cost|}}}|1}}|1}}}}}}||{{IncompleteItem|Some information is missing from the item infobox.[[missing::Infobox information| ]]}}}}[[page type is::item| ]]</includeonly> |
|||
{|class="wikitable" style="width:700px" |
{|class="wikitable" style="width:700px" |
||
|-style="height:40px" |
|-style="height:40px" |
||
Line 9: | Line 8: | ||
{{#if:{{{noun|}}}|[[noun is::{{lc:{{{noun}}}}}| ]]|{{!}}'''Core Noun:'''{{!}}{{!}}''Unknown''}} |
{{#if:{{{noun|}}}|[[noun is::{{lc:{{{noun}}}}}| ]]|{{!}}'''Core Noun:'''{{!}}{{!}}''Unknown''}} |
||
|- |
|- |
||
|'''Weight:'''||{{#if:{{{weight|}}}|[[weight of::{{{weight}}}]] stones|''Unknown''}} |
|'''Weight:'''||{{#if:{{{weight|}}}|[[weight of::{{{weight}}}]] stones|''Unknown''<includeonly>[[missing:Infobox entry on weight| ]]</includeonly>}} |
||
{{ItemProperties|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|}}}|traderapp={{{traderapp|}}}|uses={{{uses|}}}}} |
{{ItemProperties|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|}}}|traderapp={{{traderapp|}}}|uses={{{uses|}}}}} |
||
|} |
|} |
||
<includeonly> |
<includeonly>{{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]]. |
||
Line 75: | Line 74: | ||
}} |
}} |
||
</pre> |
</pre> |
||
{{cat|Templates}} |
|||
[[Category:Templates|{{PAGENAME}}]] |
|||
</noinclude> |
</noinclude> |
Revision as of 16:23, 12 January 2009
Item | |
---|---|
Look: | Unknown |
Core Noun: | Unknown |
Weight: | Unknown |
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 | the description gained by LOOKing at it. | |
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 |
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/thigh/pants/ankles/feet/tail |
where it is worn |
maxcharge | # | maximum mana that can be held by it |
spellcast | 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? |
sourcetype# | sold by,other | Gives the appropriate display of the source of the item. Note: "dropped by" is now handled by script. |
source# | Where it is sold | |
cost# | # Kronars/Dokoras/Lirums | Price at preceeding store, including currency |
{{Item |name= |look= |noun= |type= |type2= |type3= |type4= |type5= |type6= |uses= |weight= |wearloc= |maxcharge= |spellcast= |appcost= |traderapp= |sourcetype= |source= |cost= .... |sourcetype10= |source10= |cost10= }}