Difference between revisions of "Template:Item"

From Twilight Heroes Wiki
Jump to: navigation, search
Line 44: Line 44:
 
</noinclude>{{#ifeq:{{{consumable|}}}|yes|<br>'''Consumable'''[[Category:Consumables]]}}<noinclude>
 
</noinclude>{{#ifeq:{{{consumable|}}}|yes|<br>'''Consumable'''[[Category:Consumables]]}}<noinclude>
  
</noinclude>{{#ifeq:{{{usable|}}}|yes|<br>'''Usable'''[[Category:Usables]]}}<noinclude>
+
</noinclude>{{#ifeq:{{{usable|}}}|yes|<br>'''Usable'''[[Category:Usables]]|{{#ifeq:{{{returnable|}}}|yes|<br>'''Usable'''[[Category:Returnables]]}}}}<noinclude>
  
 
</noinclude>{{#ifeq:{{{caffeine|}}}|yes|<br>'''Contains caffeine.'''[[Category:Caffeine]]}}<noinclude>
 
</noinclude>{{#ifeq:{{{caffeine|}}}|yes|<br>'''Contains caffeine.'''[[Category:Caffeine]]}}<noinclude>
Line 86: Line 86:
 
'''''Using multiple:'''''<br>
 
'''''Using multiple:'''''<br>
 
{{{multiuse}}}}}}}<noinclude>
 
{{{multiuse}}}}}}}<noinclude>
 +
 +
</noinclude>{{#ifeq:{{{returnable|}}}|yes|[[Category:Returnables]]
 +
<br>
 +
<big>'''When Returned through [{{{returntext}}}]'''</big><br><hr>
 +
{{#switch:{{{returned|?}}}||?=''Unknown''[[Category:Incomplete]]|#default={{{returned}}}}}
 +
:''Trying to return the item to yourself:''{{#switch:{{{returnself|?}}}||?=&nbsp;Unspecified[[Category:Incomplete]]|#default=<br>
 +
:{{{returnself}}}}}<br>
 +
'''''Effect on Receiver:'''''{{#switch:{{{returnedreceiver|?}}}||?=&nbsp;Unspecified[[Category:Incomplete]]|#default=<br>{{{returnedreceiver}}}}}
 +
}}<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>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{combatuse}}}}}}}<noinclude>
 
{{#switch:{{{combatuse|?}}}||?=<i>Unknown</i>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{combatuse}}}}}}}<noinclude>
  
Line 121: Line 130:
 
|caffeine=</nowiki><br><nowiki>
 
|caffeine=</nowiki><br><nowiki>
 
|sugar=</nowiki><br><nowiki>
 
|sugar=</nowiki><br><nowiki>
|usable=</nowiki><br><nowiki>
+
|usable=</nowiki>'''''don't set to "yes" if the item's only use it to send to other people, in which case set "returnable" to "yes". Such items will not have a "use item" link.'''''<br><nowiki>
 +
|returnable=</nowiki>'''''set to "yes" if item can be "returned" to another player'''''<br><nowiki>
 +
|returntext=</nowiki>'''''link text for sending item to another player'''''<br><nowiki>
 +
|returnself=</nowiki>'''''text when trying to send item to yourself'''''<br><nowiki>
 +
|returnedreceiver=</nowiki>'''''text seen by the receiver of the item'''''<br><nowiki>
 
|combat=</nowiki><br><nowiki>
 
|combat=</nowiki><br><nowiki>
 
|weldable=</nowiki><br><nowiki>
 
|weldable=</nowiki><br><nowiki>
Line 129: Line 142:
 
|consume=</nowiki><br><nowiki>
 
|consume=</nowiki><br><nowiki>
 
|used=</nowiki><br><nowiki>
 
|used=</nowiki><br><nowiki>
|multiuse=</nowiki>'''''(state ! for none, "same" if it is the same as single use, "missing" if you believe there should be and there isn't)'''''<br><nowiki>
+
|multiuse=</nowiki>'''''state ! for none, "same" if it is the same as single use, "missing" if you believe there should be and there isn't'''''<br><nowiki>
 
|uses=}}</nowiki>'''
 
|uses=}}</nowiki>'''
 
=Usage=
 
=Usage=

Revision as of 03:17, 1 December 2009


Template

{{item
|unimplemented=
Set to yes if the item is a gag/unimplemented item. Such items have no itemid, descid, obtain, plural etc.
|descid=
|itemid=
|name=
|plural=
Set to ! if the plural cannot be determined
|image=
|desc=
|type=
|weapontype=
|power=
|level=
|range=
|autosell=
|nosell=
|nomem=
|notrade=
|consumable=
|caffeine=
|sugar=
|usable=
don't set to "yes" if the item's only use it to send to other people, in which case set "returnable" to "yes". Such items will not have a "use item" link.
|returnable=
set to "yes" if item can be "returned" to another player
|returntext=
link text for sending item to another player
|returnself=
text when trying to send item to yourself
|returnedreceiver=
text seen by the receiver of the item
|combat=
|weldable=
|ench=
|obtain=
|combatuse=
|consume=
|used=
|multiuse=
state ! for none, "same" if it is the same as single use, "missing" if you believe there should be and there isn't
|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