Difference between revisions of "Template:Item"

From Twilight Heroes Wiki
Jump to: navigation, search
m (Added notrade and nosell.. It's see if it works)
m (Added weapons to the switch catch. Also attempting to make the notrade/nosell work right.)
Line 5: Line 5:
 
{{{desc}}}
 
{{{desc}}}
  
'''{{#switch:{{lc:{{{type}}}}}|shirt|shirts=Shirt<br>|helmet|helmets=Helmet<br>|accessory|accessories=Accessory<br>|#default={{{type}}}}}'''<br>{{#if:{{{power|}}}|'''Power: {{{power}}}'''<br>}}{{#if:{{{level|}}}|'''Level Required: {{{level}}}'''<br>}}{{#if:{{{autosell|}}}|'''Autosell value: {{{autosell}}}'''}}{{#if:{{{notrade|}}}|'''Item cannot be traded or sold'''}}{{#if:{{{nosell|}}}|'''Item cannot be auto-sold'''}}{{#if:{{{ench|}}}|<br><br><b>{{{ench}}}</b>}}
+
'''{{#switch:{{lc:{{{type}}}}}|melee weapons|melee weapon=Melee weapon|ranged weapons|ranged weapon=Ranged weapon|shirt|shirts=Shirt<br>|helmet|helmets=Helmet<br>|accessory|accessories=Accessory<br>|#default={{{type}}}}}'''<br>{{#if:{{{power|}}}|'''Power: {{{power}}}'''<br>}}{{#if:{{{level|}}}|'''Level Required: {{{level}}}'''<br>}}{{#if:{{{autosell|}}}|'''Autosell value: {{{autosell}}}'''}}{{#if:{{{notrade}}}|'''Item cannot be traded or sold'''}}{{#if:{{{nosell}}}|'''Item cannot be auto-sold'''}}{{#if:{{{ench|}}}|<br><br><b>{{{ench}}}</b>}}
  
[[Category:{{#switch:{{lc:{{{type}}}}}|shirt|shirts=Shirts|helmet|helmets=Helmets|accessories|accessory=Accessories|#default={{{type}}}}}]][[Category:Items]]</includeonly>
+
[[Category:{{#switch:{{lc:{{{type}}}}}|melee weapons|melee weapon=Melee Weapons|ranged weapons|ranged weapon=Ranged Weapons|shirt|shirts=Shirts|helmet|helmets=Helmets|accessories|accessory=Accessories|#default={{{type}}}}}]][[Category:Items]]</includeonly>
 
<noinclude>
 
<noinclude>
 
=Template=
 
=Template=
Line 20: Line 20:
 
|level=</nowiki><br><nowiki>
 
|level=</nowiki><br><nowiki>
 
|autosell=</nowiki><br><nowiki>
 
|autosell=</nowiki><br><nowiki>
|notrade </nowiki><i><optional></i><br><nowiki>
 
|nosell </nowiki><i><optional></i><br><nowiki>
 
 
|ench=}}</nowiki>'''
 
|ench=}}</nowiki>'''
 
=Usage=
 
=Usage=
Line 33: Line 31:
 
|desc=No matter how thirsty you are, you can't drink this--it's not that kind of royal crown. It does make you look kingly, though, which is good for increasing the tributes you get.</nowiki><br><nowiki>
 
|desc=No matter how thirsty you are, you can't drink this--it's not that kind of royal crown. It does make you look kingly, though, which is good for increasing the tributes you get.</nowiki><br><nowiki>
 
|type=Helmet</nowiki><br><nowiki>
 
|type=Helmet</nowiki><br><nowiki>
|power=45</nowiki><br><nowiki>
+
|power=45<br></nowiki><br><nowiki>
|level=8</nowiki><br><nowiki>
+
|level=8<br></nowiki><br><nowiki>
 
|autosell=125</nowiki><br><nowiki>
 
|autosell=125</nowiki><br><nowiki>
 
|ench=+5% chips}}</nowiki>
 
|ench=+5% chips}}</nowiki>

Revision as of 00:23, 12 February 2008


Template

{{item
|descid=
|itemid=
|name=
|image=
|desc=
|type=
|power=
|level=
|autosell=
|ench=}}

Usage

Adding...

{{item
|descid=9734581
|itemid=116
|name=royal crown
|image=crown.gif
|desc=No matter how thirsty you are, you can't drink this--it's not that kind of royal crown. It does make you look kingly, though, which is good for increasing the tributes you get.
|type=Helmet
|power=45<br>
|level=8<br>
|autosell=125
|ench=+5% chips}}

Results in...

Go back to Items by Name
Item Number: 116
Description ID: 9734581
(view in-game)

Crown.gif

royal crown

No matter how thirsty you are, you can't drink this--it's not that kind of royal crown. It does make you look kingly, though, which is good for increasing the tributes you get.

Helmet
Power: 45
Level Required: 8
Autosell value: 125

+5% chips