Difference between revisions of "Template:Item"

From Twilight Heroes Wiki
Jump to: navigation, search
m (testing again. May the world be broken.)
m (Danger Danger... Reading capaibilities get, but might also break THE ENTIRE WIKI AS WE KNOW IT!)
Line 5: Line 5:
 
{{{desc}}}
 
{{{desc}}}
  
'''{{#switch:{{lc:{{{type}}}}}|talisman|talismans=Talisman|full|full-body suit|full-body suits=Full-body suit|misc|miscellaneous item=Miscellaneous Item|offhand items|offhand item|offhand=Offhand Item|melee|melee weapons|melee weapon=Melee weapon|ranged|ranged weapons|ranged weapon=Ranged weapon|shirt|shirts=Shirt|helmet|helmets=Helmet|acc|accessory|accessories=Accessory|#default={{{type}}}}}'''<br>{{#if:{{{power|}}}|'''Power: {{{power}}}'''<br>}}{{#if:{{{level|}}}|'''Level Required: {{{level}}}'''<br>}}{{#if:{{{range|}}}|'''Range: {{{range}}}'''<br>}}{{#ifeq:{{{notrade|}}}|yes|'''Item cannot be traded or sold'''<br>}}{{#if:{{{autosell|}}}|'''Autosell value: {{{autosell}}}'''<br>}}{{#ifeq:{{{nomem|}}}|yes|'''Item cannot be placed in a memento display'''<br>}}{{#ifeq:{{{nosell|}}}|yes|'''Item cannot be auto-sold'''<br>}}{{#ifeq:{{{consumable|}}}|yes|<br>'''Consumable'''[[Category:Consumables]]}}{{#ifeq:{{{usable|}}}|yes|<br>'''Usable'''[[Category:Usables]]}}{{#ifeq:{{{combat|}}}|yes|<br>'''Combat Usable'''[[Category:Combat Usables]]}}{{#ifeq:{{{weldable|}}}|yes|<br>'''Can be welded'''[[Category:Can be Welded]]}}{{#if:{{{ench|}}}|<br><b>{{{ench}}}</b>}}
+
'''{{#switch:{{lc:{{{type|?}}}}}||?=<i>Unknown</i>[[Category:Incomplete]]|talisman|talismans=Talisman[[Category:Talismans]]|full|full-body suit|full-body suits=Full-body suit[[Category:Full-body Suits]]|misc|miscellaneous item=Miscellaneous Item[[Category:Miscellaneous Item]]|offhand items|offhand item|offhand=Offhand Item[[Category:Offhand Items]]|melee|melee weapons|melee weapon=Melee weapon[[Category:Melee Weapons]]|ranged|ranged weapons|ranged weapon=Ranged weapon[[Category:Ranged Weapons]]|shirt|shirts=Shirt[[Category:Shirts]]|helmet|helmets=Helmet[[Category:Helmets]]|acc|accessory|accessories=Accessory[[Category:Accessories]]|#default={{{type}}}}}'''<br><noinclude>
 +
 
 +
</noinclude>{{#if:{{{power|}}}|'''Power: {{{power}}}'''<br>}}<noinclude>
 +
 
 +
</noinclude>{{#if:{{{level|}}}|'''Level Required: {{{level}}}'''<br>}}<noinclude>
 +
 
 +
</noinclude>{{#if:{{{range|}}}|'''Range: {{{range}}}'''<br>}}<noinclude>
 +
 
 +
</noinclude>{{#ifeq:{{{notrade|}}}|yes|'''Item cannot be traded or sold'''<br>}}<noinclude>
 +
 
 +
</noinclude>{{#if:{{{autosell|}}}|'''Autosell value: {{{autosell}}}'''<br>}}<noinclude>
 +
 
 +
</noinclude>{{#ifeq:{{{nomem|}}}|yes|'''Item cannot be placed in a memento display'''<br>}}<noinclude>
 +
 
 +
</noinclude>{{#ifeq:{{{nosell|}}}|yes|'''Item cannot be auto-sold'''<br>}}<noinclude>
 +
 
 +
</noinclude>{{#ifeq:{{{consumable|}}}|yes|<br>'''Consumable'''[[Category:Consumables]]}}<noinclude>
 +
 
 +
</noinclude>{{#ifeq:{{{usable|}}}|yes|<br>'''Usable'''[[Category:Usables]]}}<noinclude>
 +
 
 +
</noinclude>{{#ifeq:{{{combat|}}}|yes|<br>'''Combat Usable'''[[Category:Combat Usables]]}}<noinclude>
 +
 
 +
</noinclude>{{#ifeq:{{{weldable|}}}|yes|<br>'''Can be welded'''[[Category:Can be Welded]]}}<noinclude>
 +
 
 +
</noinclude>{{#if:{{{ench|}}}|<br><b>{{{ench}}}</b>}}
  
 
<br><br><big>'''How Obtained'''</big><br><hr>
 
<br><br><big>'''How Obtained'''</big><br><hr>
{{#switch:{{{obtain|?}}}||?=<i>Unknown</i>[[Category:Incomplete]]|#default={{{obtain}}}}}
+
{{#switch:{{{obtain|?}}}||?=<i>Unknown</i>[[Category:Incomplete]]|#default={{{obtain}}}}}<noinclude>
{{#ifeq:{{{usable|}}}|yes|
+
 
 +
</noinclude>{{#ifeq:{{{usable|}}}|yes|
 
<br><br><big>'''When Used'''</big><br><hr>
 
<br><br><big>'''When Used'''</big><br><hr>
 
{{#switch:{{{used|?}}}||?=<i>Unknown</i>|#default={{{used}}}}}}}<noinclude>
 
{{#switch:{{{used|?}}}||?=<i>Unknown</i>|#default={{{used}}}}}}}<noinclude>
 +
 
</noinclude>{{#ifeq:{{{combat|}}}|yes|
 
</noinclude>{{#ifeq:{{{combat|}}}|yes|
 
<br><br><big>'''When Used In Combat'''</big><br><hr>
 
<br><br><big>'''When Used In Combat'''</big><br><hr>
 
{{#switch:{{{combatuse|?}}}||?=<i>Unknown</i>|#default={{{combatuse}}}}}}}<noinclude>
 
{{#switch:{{{combatuse|?}}}||?=<i>Unknown</i>|#default={{{combatuse}}}}}}}<noinclude>
 +
 
</noinclude>{{#ifeq:{{{consumable|}}}|yes|
 
</noinclude>{{#ifeq:{{{consumable|}}}|yes|
 
<br><br><big>'''When Consumed'''</big><br><hr>
 
<br><br><big>'''When Consumed'''</big><br><hr>
Line 21: Line 48:
 
</noinclude><br><br><big>'''Uses'''</big><br><hr>
 
</noinclude><br><br><big>'''Uses'''</big><br><hr>
 
{{#switch:{{{uses|?}}}||?=<i>Unknown</i>[[Category:Incomplete]]|#default={{#ifeq:{{{uses}}}|none|<i>none</i>|{{{uses}}}}}}}
 
{{#switch:{{{uses|?}}}||?=<i>Unknown</i>[[Category:Incomplete]]|#default={{#ifeq:{{{uses}}}|none|<i>none</i>|{{{uses}}}}}}}
 
+
[[Category:Items]]</includeonly>
[[Category:{{#switch:{{lc:{{{type}}}}}|talisman|talismans=Talismans|full|full-body suit|full-body suits=Full-body Suits|misc|miscellaneous item=Miscellaneous Item|offhand items|offhand item|offhand=Offhand Items|melee|melee weapons|melee weapon=Melee Weapons|ranged|ranged weapons|ranged weapon=Ranged Weapons|shirt|shirts=Shirts|helmet|helmets=Helmets|acc|accessories|accessory=Accessories|#default={{{type}}}}}]][[Category:Items]]</includeonly>
 
 
<noinclude>
 
<noinclude>
 
=Template=
 
=Template=

Revision as of 14:30, 15 November 2008


Template

{{item
|descid=
|itemid=
|name=
|plural=
|image=
|desc=
|type=
|power=
|level=
|range=
|autosell=
|nosell=yes<Optional.>
|nomem=yes<Optional.>
|notrade=yes<Optional.>
|consumable=yes<Optional.>
|usable=yes<Optional.>
|combat=yes<Optional.>
|weldable=yes<Optional.>
|ench=
|obtain=
|combatuse=<Only when item is usable in combat.>
|consume=<Only when item is consumable.>
|used=<Only when item is usable.>
|uses=}}

Usage

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
(P: 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



Uses

none