Difference between revisions of "Template:Item"

From Twilight Heroes Wiki
Jump to: navigation, search
("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)
(Added unimplemented field. Fixed unknown itemid)
Line 1: Line 1:
<includeonly>__NOTOC__Go back to [[Items by Name]]<div style="position:relative"><div style="font-size:80%;text-align:right;position:absolute;top:0px;right:15px;">{{#switch:{{{itemid|?}}}||[[Items by number (1-99)|Item Number]]|#default=[[Items by number ({{#ifexpr:{{{itemid}}}<=99|1|{{#expr:({{{itemid}}} - 50) round -2}}}}-{{#expr:99 + (({{{itemid}}} - 50) round -2)}})|Item Number]]}}: {{#switch:{{{itemid|?}}}||?=<i>Unknown</i>[[Category:Incomplete]]|#default={{{itemid}}}}}<br>Description ID: {{#switch:{{{descid|?}}}||?=<i>Unknown</i>[[Category:Incomplete]]|#default={{{descid}}}}}<br>{{#switch:{{{descid|?}}}||?=|#default=[http://www.twilightheroes.com/popup.php?item={{{descid}}} (view in-game)]}}</div>
+
<includeonly>__NOTOC__Go back to [[Items by Name]]<div style="position:relative"><div style="font-size:80%;text-align:right;position:absolute;top:0px;right:15px;">
 +
{{#ifeq:{{{unimplemented|}}}|yes|Unimplemented item|{{#switch:{{{itemid|?}}}||?=Item Number: <i>Unknown</i>[[Category:Incomplete]]|#default=[[Items by number ({{#ifexpr:{{{itemid}}}<=99|1|{{#expr:({{{itemid}}} - 50) round -2}}}}-{{#expr:99 + (({{{itemid}}} - 50) round -2)}})|Item Number]]: {{{itemid}}}}}<br>Description ID: {{#switch:{{{descid|?}}}||?=<i>Unknown</i>[[Category:Incomplete]]|#default={{{descid}}}}}<br>{{#switch:{{{descid|?}}}||?=|#default=[http://www.twilightheroes.com/popup.php?item={{{descid}}} (view in-game)]}}}}</div>
 
<p style="text-align:center;">[[image:{{{image}}}]]</p>
 
<p style="text-align:center;">[[image:{{{image}}}]]</p>
 
'''{{{name}}}'''<br>
 
'''{{{name}}}'''<br>
<small>Plural: <i>{{#switch:{{{plural|?}}}||?=Unknown[[Category:Unknown Plurals]]|!=Unknown; currently impossible to determine[[Category:Indeterminable Plurals]]|#default={{{plural}}}}}</i></small><br>
+
<small>Plural: <i>{{#ifeq:{{{unimplemented|}}}|yes|Unimplemented|{{#switch:{{{plural|?}}}||?=Unknown[[Category:Unknown Plurals]]|!=Unknown; currently impossible to determine[[Category:Indeterminable Plurals]]|#default={{{plural}}}}}}}</i></small><br>
 
{{{desc}}}
 
{{{desc}}}
  
Line 32: Line 33:
  
 
<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}}}}}<noinclude>
+
{{#ifeq:{{{unimplemented|}}}|yes|Unimplemented|{{#switch:{{{obtain|?}}}||?=<i>Unknown</i>[[Category:Incomplete]]|#default={{{obtain}}}}}}}<noinclude>
  
 
</noinclude>{{#ifeq:{{{usable|}}}|yes|
 
</noinclude>{{#ifeq:{{{usable|}}}|yes|
Line 59: Line 60:
 
'''<nowiki>
 
'''<nowiki>
 
{{item</nowiki><br><nowiki>
 
{{item</nowiki><br><nowiki>
 +
|unimplemented=</nowiki><br><nowiki>
 
|descid=</nowiki><br><nowiki>
 
|descid=</nowiki><br><nowiki>
 
|itemid=</nowiki><br><nowiki>
 
|itemid=</nowiki><br><nowiki>
Line 70: Line 72:
 
|range=</nowiki><br><nowiki>
 
|range=</nowiki><br><nowiki>
 
|autosell=</nowiki><br><nowiki>
 
|autosell=</nowiki><br><nowiki>
|nosell=yes</nowiki><i><Optional.></i><br><nowiki>
+
|nosell=</nowiki><br><nowiki>
|nomem=yes</nowiki><i><Optional.></i><br><nowiki>
+
|nomem=</nowiki><br><nowiki>
|notrade=yes</nowiki><i><Optional.></i><br><nowiki>
+
|notrade=yes</nowiki><br><nowiki>
|consumable=yes</nowiki><i><Optional.></i><br><nowiki>
+
|consumable=yes</nowiki><br><nowiki>
|usable=yes</nowiki><i><Optional.></i><br><nowiki>
+
|usable=yes</nowiki><<br><nowiki>
|combat=yes</nowiki><i><Optional.></i><br><nowiki>
+
|combat=yes</nowiki><br><nowiki>
|weldable=yes</nowiki><i><Optional.></i><br><nowiki>
+
|weldable=yes</nowiki><br><nowiki>
 
|ench=</nowiki><br><nowiki>
 
|ench=</nowiki><br><nowiki>
 
|obtain=</nowiki><br><nowiki>
 
|obtain=</nowiki><br><nowiki>
|combatuse=</nowiki><i><Only when item is usable in combat.></i><br><nowiki>
+
|combatuse=</nowiki><br><nowiki>
|consume=</nowiki><i><Only when item is consumable.></i><br><nowiki>
+
|consume=</nowiki><br><nowiki>
|used=</nowiki><i><Only when item is usable.></i><br><nowiki>
+
|used=</nowiki><br><nowiki>
 
|uses=}}</nowiki>'''
 
|uses=}}</nowiki>'''
 
=Usage=
 
=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...'''
 
'''Adding...'''
  

Revision as of 15:02, 7 December 2008


Template

{{item
|unimplemented=
|descid=
|itemid=
|name=
|plural=
|image=
|desc=
|type=
|power=
|level=
|range=
|autosell=
|nosell=
|nomem=
|notrade=yes
|consumable=yes
|usable=yes<
|combat=yes
|weldable=yes
|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