Difference between revisions of "Template:Item"

From Twilight Heroes Wiki
Jump to: navigation, search
(unimplemented items autocat only on Category:Items)
(Undo revision 17011 by Muhandes (Talk). Doesn't work the way I thought. Back to the drawing board)
Line 6: Line 6:
 
{{{desc}}}
 
{{{desc}}}
  
'''{{#switch:{{lc:{{{type|?}}}}}||?=<i>Unknown</i>{{imp|[[Category:Incomplete]]}}
+
'''{{#switch:{{lc:{{{type|?}}}}}||?=<i>Unknown</i>[[Category:Incomplete]]
|talisman|talismans=Talisman{{imp|[[Category:Talismans]]}}
+
|talisman|talismans=Talisman[[Category:Talismans]]
|full|full-body suit|full-body suits=Full-body suit{{imp|[[Category:Full-body Suits]]}}
+
|full|full-body suit|full-body suits=Full-body suit[[Category:Full-body Suits]]
|misc|miscellaneous item=Miscellaneous Item{{imp|[[Category:Miscellaneous Items]]}}
+
|misc|miscellaneous item=Miscellaneous Item[[Category:Miscellaneous Items]]
|offhand items|offhand item|offhand=Offhand Item{{imp|[[Category:Offhand Items]]}}
+
|offhand items|offhand item|offhand=Offhand Item[[Category:Offhand Items]]
|melee|melee weapons|melee weapon=Melee weapon{{imp|[[Category:Melee Weapons]]}}
+
|melee|melee weapons|melee weapon=Melee weapon[[Category:Melee Weapons]]
|ranged|ranged weapons|ranged weapon=Ranged weapon{{imp|[[Category:Ranged Weapons]]}}
+
|ranged|ranged weapons|ranged weapon=Ranged weapon[[Category:Ranged Weapons]]
|shirt|shirts=Shirt{{imp|[[Category:Shirts]]}}
+
|shirt|shirts=Shirt[[Category:Shirts]]
|helmet|helmets=Helmet{{imp|[[Category:Helmets]]}}
+
|helmet|helmets=Helmet[[Category:Helmets]]
|acc|accessory|accessories=Accessory{{imp|[[Category:Accessories]]}}
+
|acc|accessory|accessories=Accessory[[Category:Accessories]]
|pants=Pants{{imp|[[Category:Pants]]}}
+
|pants=Pants[[Category:Pants]]
|boots=Boots{{imp|[[Category:Boots]]}}
+
|boots=Boots[[Category:Boots]]
|gloves=Gloves{{imp|[[Category:Gloves]]}}
+
|gloves=Gloves[[Category:Gloves]]
|transportation=Transportation{{imp|[[Category:Transportation]]}}
+
|transportation=Transportation[[Category:Transportation]]
|#default=<i>Unknown</i>{{imp|[[Category:Incomplete]]}}}}'''<br><noinclude>
+
|#default=<i>Unknown</i>[[Category:Incomplete]]}}'''<br><noinclude>
  
 
</noinclude>{{#if:{{{power|}}}|'''Power: {{{power}}}'''<br>}}<noinclude>
 
</noinclude>{{#if:{{{power|}}}|'''Power: {{{power}}}'''<br>}}<noinclude>
Line 36: Line 36:
 
</noinclude>{{#ifeq:{{{nosell|}}}|yes|'''Item cannot be auto-sold'''<br>}}<noinclude>
 
</noinclude>{{#ifeq:{{{nosell|}}}|yes|'''Item cannot be auto-sold'''<br>}}<noinclude>
  
</noinclude>{{#ifeq:{{{consumable|}}}|yes|<br>'''Consumable'''{{imp|[[Category:Consumables]]}}}}<noinclude>
+
</noinclude>{{#ifeq:{{{consumable|}}}|yes|<br>'''Consumable'''[[Category:Consumables]]}}<noinclude>
  
</noinclude>{{#ifeq:{{{usable|}}}|yes|<br>'''Usable'''{{imp|[[Category:Usables]]}}}}<noinclude>
+
</noinclude>{{#ifeq:{{{usable|}}}|yes|<br>'''Usable'''[[Category:Usables]]}}<noinclude>
  
</noinclude>{{#ifeq:{{{caffeine|}}}|yes|<br>'''Contains caffeine.'''{{imp|[[Category:Caffeine]]}}}}<noinclude>
+
</noinclude>{{#ifeq:{{{caffeine|}}}|yes|<br>'''Contains caffeine.'''[[Category:Caffeine]]}}<noinclude>
  
</noinclude>{{#ifeq:{{{sugar|}}}|yes|<br>'''Contains sugar.'''{{imp|[[Category:Sugar]]}}}}<noinclude>
+
</noinclude>{{#ifeq:{{{sugar|}}}|yes|<br>'''Contains sugar.'''[[Category:Sugar]]}}<noinclude>
  
</noinclude>{{#ifeq:{{{combat|}}}|yes|<br>'''Combat Usable'''{{imp|[[Category:Combat Usables]]}}}}<noinclude>
+
</noinclude>{{#ifeq:{{{combat|}}}|yes|<br>'''Combat Usable'''[[Category:Combat Usables]]}}<noinclude>
  
</noinclude>{{#ifeq:{{{weldable|}}}|yes|<br>'''Can be welded'''{{imp|[[Category:Can be Welded]]}}}}<noinclude>
+
</noinclude>{{#ifeq:{{{weldable|}}}|yes|<br>'''Can be welded'''[[Category:Can be Welded]]}}<noinclude>
  
 
</noinclude>{{#if:{{{ench|}}}|<br><b>{{{ench}}}</b>}}
 
</noinclude>{{#if:{{{ench|}}}|<br><b>{{{ench}}}</b>}}
Line 56: Line 56:
 
<br>
 
<br>
 
<big>'''When Used'''</big><br><hr>
 
<big>'''When Used'''</big><br><hr>
{{#switch:{{{used|?}}}||?=<i>Unknown</i>{{imp|[[Category:Incomplete]]}}|#default={{{used}}}}}}}<noinclude>
+
{{#switch:{{{used|?}}}||?=<i>Unknown</i>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{used}}}}}}}<noinclude>
  
 
</noinclude>{{#ifeq:{{{combat|}}}|yes|
 
</noinclude>{{#ifeq:{{{combat|}}}|yes|
 
<br>
 
<br>
 
<big>'''When Used In Combat'''</big><br><hr>
 
<big>'''When Used In Combat'''</big><br><hr>
{{#switch:{{{combatuse|?}}}||?=<i>Unknown</i>{{imp|[[Category:Incomplete]]}}|#default={{{combatuse}}}}}}}<noinclude>
+
{{#switch:{{{combatuse|?}}}||?=<i>Unknown</i>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{combatuse}}}}}}}<noinclude>
  
 
</noinclude>{{#ifeq:{{{consumable|}}}|yes|
 
</noinclude>{{#ifeq:{{{consumable|}}}|yes|
 
<br>
 
<br>
 
<big>'''When Consumed'''</big><br><hr>
 
<big>'''When Consumed'''</big><br><hr>
{{#switch:{{{consume|?}}}||?=<i>Unknown</i>{{imp|[[Category:Incomplete]]}}|#default={{{consume}}}}}}}<noinclude>
+
{{#switch:{{{consume|?}}}||?=<i>Unknown</i>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{consume}}}}}}}<noinclude>
  
 
</noinclude>{{#switch:{{{uses|?}}}||?=|none=|#default=<br>
 
</noinclude>{{#switch:{{{uses|?}}}||?=|none=|#default=<br>

Revision as of 01:49, 18 January 2009


Template

{{item
|unimplemented=
|descid=
|itemid=
|name=
|plural=
|image=
|desc=
|type=
|power=
|level=
|range=
|autosell=
|nosell=
|nomem=
|notrade=
|consumable=
|caffeine=
|sugar=
|usable=
|combat=
|weldable=
|ench=
|obtain=
|combatuse=
|consume=
|used=
|uses=}}

Usage

  • Set plural to ! if the plural cannot be determined
  • Set unimplemented to yes if the item is a gag/unimplemented item. Such items have no itemid, miscid, obtain, plural

Adding...

{{item
|descid=9734581
|itemid=116
|name=royal crown
|plural=royal crowns
|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
|level=8
|autosell=125
|ench=+5% chips
|obtain=[[Cube Theater]]
:*[[unidentifiable English king]]
|uses=none}}

Results in...

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

Crown.gif

royal crown
Plural: royal crowns
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



How Obtained

Cube Theater



Other Uses

none