Difference between revisions of "Template:Item"

From Twilight Heroes Wiki
Jump to: navigation, search
(Started working on this template. Added ! option to plurals and added categories)
("Other Uses" wont display if "uses" is empty or equal to "none". Page will be incomplete if usable=yes and there is no used field, same for combat, consumable)
Line 37: Line 37:
 
<br>
 
<br>
 
<big>'''When Used'''</big><br><hr>
 
<big>'''When Used'''</big><br><hr>
{{#switch:{{{used|?}}}||?=<i>Unknown</i>|#default={{{used}}}}}}}<noinclude>
+
{{#switch:{{{used|?}}}||?=<i>Unknown</i>[[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>|#default={{{combatuse}}}}}}}<noinclude>
+
{{#switch:{{{combatuse|?}}}||?=<i>Unknown</i>[[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>|#default={{{consume}}}}}}}<noinclude>
+
{{#switch:{{{consume|?}}}||?=<i>Unknown</i>[[Category:Incomplete]]|#default={{{consume}}}}}}}<noinclude>
 +
 
 +
</noinclude>{{#switch:{{{uses|?}}}||?=|none=|#default=<br>
 +
<big>'''Other Uses'''</big><br><hr>
 +
{{{uses}}}}}<noinclude>
  
 
</noinclude>
 
</noinclude>
<br>
 
<big>'''Other Uses'''</big><br><hr>
 
{{#switch:{{lc:{{{uses|?}}}}}||?=<i>Unknown</i>[[Category:Incomplete]]|none=<i>None</i>|#default={{{uses}}}}}
 
 
[[Category:Items]]</includeonly>
 
[[Category:Items]]</includeonly>
 
<noinclude>
 
<noinclude>

Revision as of 07:00, 7 December 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
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