Template:Item: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added support for light producing items)
(added new currency handling, plus additional shop slots if needed (up to 10))
Line 16: Line 16:
|'''Type:'''||{{#if:{{{type|}}}|{{{type}}}|''Unknown''}}{{#If:{{{type2|}}}|, {{{type2}}}}}{{#If:{{{type3|}}}|, {{{type3}}}}}{{#If:{{{type4|}}}|, {{{type4}}}}}{{#If:{{{type5|}}}|, {{{type5}}}}}{{#If:{{{type6|}}}|, {{{type6}}}}}
|'''Type:'''||{{#if:{{{type|}}}|{{{type}}}|''Unknown''}}{{#If:{{{type2|}}}|, {{{type2}}}}}{{#If:{{{type3|}}}|, {{{type3}}}}}{{#If:{{{type4|}}}|, {{{type4}}}}}{{#If:{{{type5|}}}|, {{{type5}}}}}{{#If:{{{type6|}}}|, {{{type6}}}}}
|-
|-
{{#ifeq:{{lc:{{{shop}}}}}|n|{{!}} '''For Sale At:'''{{!}}{{!}}Not sold{{#if:{{{cost|}}}|&nbsp;({{{cost}}})}}|{{!}} '''For Sale At (Base Cost):'''{{!}}{{!}} <DL><DT>{{#if:{{{shop|}}}|[[{{{shop}}}]]|''Unknown''}}<DD>{{#if:{{{cost|}}}|({{{cost}}} {{#switch:{{lc:{{{coin}}}}}|k=Kronars|l=Lirums|d=Dokoras|''Unknown Currency''}})|''Unknown''}}{{#if:{{{shop2|}}}|<DT>[[{{{shop2}}}]]<DD>{{#if:{{{cost2|}}}|({{{cost2}}} {{#switch:{{lc:{{{coin2}}}}}|k=Kronars|l=Lirums|d=Dokoras|''Unknown Currency''}})|''Unknown''}}}}{{#if:{{{shop3|}}}|<DT>[[{{{shop3}}}]]<DD>{{#if:{{{cost3|}}}|({{{cost3}}} {{#switch:{{lc:{{{coin3}}}}}|k=Kronars|l=Lirums|d=Dokoras|''Unknown Currency''}})|''Unknown''}}}}{{#if:{{{shop4|}}}|<DT>[[{{{shop4}}}]]<DD>{{#if:{{{cost4|}}}|({{{cost4}}} {{#switch:{{lc:{{{coin4}}}}}|k=Kronars|l=Lirums|d=Dokoras|''Unknown Currency''}})|''Unknown''}}}}{{#if:{{{shop5|}}}|<DT>[[{{{shop5}}}]]<DD>{{#if:{{{cost5|}}}|({{{cost5}}} {{#switch:{{lc:{{{coin5}}}}}|k=Kronars|l=Lirums|d=Dokoras|''Unknown Currency''}})|''Unknown''}}}}{{#if:{{{shop6|}}}|<DT>[[{{{shop6}}}]]<DD>{{#if:{{{cost6|}}}|({{{cost6}}} {{#switch:{{lc:{{{coin6}}}}}|k=Kronars|l=Lirums|d=Dokoras|''Unknown Currency''}})|''Unknown''}}}}{{#if:{{{shop7|}}}|<DT>[[{{{shop7}}}]]<DD>{{#if:{{{cost7|}}}|({{{cost7}}} {{#switch:{{lc:{{{coin7}}}}}|k=Kronars|l=Lirums|d=Dokoras|''Unknown Currency''}})|''Unknown''}}}}{{#if:{{{shop8|}}}|<DT>[[{{{shop8}}}]]<DD>{{#if:{{{cost8|}}}|({{{cost8}}} {{#switch:{{lc:{{{coin8}}}}}|k=Kronars|l=Lirums|d=Dokoras|''Unknown Currency''}})|''Unknown''}}}}{{#if:{{{shop9|}}}|<DT>[[{{{shop9}}}]]<DD>{{#if:{{{cost9|}}}|({{{cost9}}} {{#switch:{{lc:{{{coin9}}}}}|k=Kronars|l=Lirums|d=Dokoras|''Unknown Currency''}})|''Unknown''}}}}{{#if:{{{shop10|}}}|<DT>[[{{{shop10}}}]]<DD>{{#if:{{{cost10|}}}|({{{cost10}}} {{#switch:{{lc:{{{coin10}}}}}|k=Kronars|l=Lirums|d=Dokoras|''Unknown Currency''}})|''Unknown''}}}}</DL>}}
{{#if:{{IfOR|{{{shop|}}}|{{{cost|}}}}}|{{#ifeq:{{lc:{{{shop}}}}}|n|{{!}} '''For Sale At (Base Cost):'''{{!}}{{!}}Not sold|{{!}} '''For Sale At (Base Cost):'''{{!}}{{!}} <DL><DT>{{#if:{{{shop|}}}|[[{{{shop}}}]]|''Unknown''}}<DD>{{#if:{{{cost|}}}|({{{cost}}})|''Unknown''}}{{#if:{{{shop2|}}} | <DT>[[{{{shop2}}}]]<DD>({{{cost2|''Unknown''}}}) }}{{#if:{{{shop3|}}}|<DT>[[{{{shop3}}}]]<DD>({{{cost3|''Unknown''}}})}}</DL>}}}}
|-
|-
| '''Appraised Cost:'''||{{#if:{{{appcost|}}}|{{{appcost}}}|''?''}} Kronar(s)
| '''Appraised Cost:'''||{{#if:{{{appcost|}}}|{{{appcost}}}|''?''}} Kronar(s)
Line 54: Line 54:
|shop#|| ||Where it is sold
|shop#|| ||Where it is sold
|-
|-
|cost#||# Kronars/Lirums/Dokoras||Price at preceeding store
|cost#||#||Price at preceeding store
|-
|coin#||k/l/d||Automatically tags the previous price with the correct currency
|}
|}


Line 77: Line 79:
|shop=
|shop=
|cost=
|cost=
|coin=
|shop2=
|shop2=
|cost2=
|cost2=
|coin2=
|shop3=
|shop3=
|cost3=
|cost3=
|coin3=
|shop4=
|cost4=
|coin4=
|shop5=
|cost5=
|coin5=
|shop6=
|cost6=
|coin6=
|shop7=
|cost7=
|coin7=
|shop8=
|cost8=
|coin8=
|shop9=
|cost9=
|coin9=
|shop10=
|cost10=
|coin10=
}}
}}
</pre>
</pre>

Revision as of 15:42, 7 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/light
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=
}}