Difference between revisions of "Template:Item"

From Twilight Heroes Wiki
Jump to: navigation, search
(Uses -> Other Uses)
m (Add |piloting for "Skill Required: Passable Pilot")
 
(82 intermediate revisions by 6 users not shown)
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__<div style="position:relative"><div style="font-size:80%;text-align:right;position:absolute;top:0px;right:15px;">
<p style="text-align:center;">[[image:{{{image}}}]]</p>
+
{{#ifeq:{{{unimplemented|}}}|yes|Unimplemented item[[Category:Unimplemented Items]]|{{#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]]
 +
|!=<i>None</i>[[Category:Partially Implemented]]
 +
|#default={{{descid}}}}}<br>{{#switch:{{{descid|?}}}
 +
||!|?=
 +
|#default=[http://www.twilightheroes.com/popup.php?item={{{descid}}} (view in-game)]}}}}</div></div>
 +
<p style="text-align:center;">[[image:{{{image}}}|40px]]</p>
 
'''{{{name}}}'''<br>
 
'''{{{name}}}'''<br>
<small>Plural: <i>{{#switch:{{{plural|?}}}||?=Unknown[[Category:Incomplete]]|#default={{{plural}}}}}</i></small><br>
+
<small>Plural: <i>{{#ifeq:{{{unimplemented|}}}|yes|Unimplemented item; no plural exists|{{#switch:{{{plural|?}}}||?=Unknown[[Category:Unknown Plurals]]|!=Unknown; currently impossible to determine[[Category:Indeterminable Plurals]]|#default={{{plural}}}}}}}</i></small><br>
{{{desc}}}
+
{{#if:{{{desc|}}}|{{{desc}}}|''Empty Description''[[Category:Empty Description]]}}
  
'''{{#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>
+
'''{{#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 Items]]
 +
|offhand items|offhand item|offhand=Offhand Item'''[[Category:Offhand Items]]
 +
|melee|melee weapons|melee weapon=Melee weapon''' ({{MeleeWeaponType|{{{weapontype}}}}})[[Category:Melee Weapons]]
 +
|ranged|ranged weapons|ranged weapon=Ranged weapon''' ({{RangedWeaponType|{{{weapontype}}}}})[[Category:Ranged Weapons]]
 +
|shirt|shirts=Shirt'''[[Category:Shirts]]
 +
|helmet|helmets=Helmet'''[[Category:Helmets]]
 +
|acc|accessory|accessories=Accessory'''[[Category:Accessories]]
 +
|pants=Pants'''[[Category:Pants]]
 +
|boots=Boots'''[[Category:Boots]]
 +
|gloves=Gloves'''[[Category:Gloves]]
 +
|transportation=Transportation'''[[Category:Transportation]]
 +
|placeholder=''Placeholder Item'''''[[Category:Partially Implemented]]
 +
|#default=''Unknown''[[Category:Incomplete]]}}<br><noinclude>
  
 
</noinclude>{{#if:{{{power|}}}|'''Power: {{{power}}}'''<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>{{#if:{{{range|}}}|'''Range: {{{range}}}'''<br>}}<noinclude>
+
</noinclude>{{#ifeq:{{{piloting|}}}|yes|'''Skill Required: Passable Pilot'''<br>}}<noinclude>
 +
 
 +
</noinclude>{{#if:{{{level|}}}|'''Level Required: {{{level}}}'''<br>{{#ifeq:{{IsEquipment|{{{type}}}}}|yes|[[Category:Level {{{level}}} Equipment]]|[[Category:Level Restricted Misc Items]]}}|{{#ifeq:{{IsEquipment|{{{type}}}}}|yes|[[Category:Level Free Equipment]]}}}}<noinclude>
  
 
</noinclude>{{#ifeq:{{{notrade|}}}|yes|'''Item cannot be traded or sold'''<br>}}<noinclude>
 
</noinclude>{{#ifeq:{{{notrade|}}}|yes|'''Item cannot be traded or sold'''<br>}}<noinclude>
 +
 +
</noinclude>{{#ifeq:{{{nomem|}}}|yes|'''Item cannot traded, sold, or placed in a memento display'''<br>[[Category:NoMem]]|{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Mem]]}}}}<noinclude>
  
 
</noinclude>{{#if:{{{autosell|}}}|'''Autosell value: {{{autosell}}}'''<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:{{{nosell|}}}|yes|'''Item cannot be auto-sold'''<br>}}<noinclude>
+
</noinclude>{{#ifeq:{{{nopull|}}}|yes|'''Item cannot be pulled while in a retcon run'''<br>[[Category:NoPull]]}}<noinclude>
 +
 
 +
</noinclude>{{#ifeq:{{{caffeine|}}}|yes|'''Contains caffeine ({{{caffeinefullness}}})'''<br>[[Category:Caffeine]]}}{{#vardefine:consumable|{{#ifeq:{{{caffeine|}}}|yes|yes|no}}}}<noinclude>
 +
 
 +
</noinclude>{{#ifeq:{{{sugar|}}}|yes|'''Contains sugar ({{{sugarfullness}}})'''<br>[[Category:Sugar]]}}{{#vardefine:consumable|{{#ifeq:{{{sugar|}}}|yes|yes|{{#var:consumable}}}}}}<noinclude>
 +
 
 +
</noinclude>{{#ifeq:{{{usable|}}}|yes|'''Usable'''<br>[[Category:Usables]]|{{#ifeq:{{{returnable|}}}|yes|'''Usable'''<br>[[Category:Returnables]]}}}}<noinclude>
 +
 
 +
</noinclude>{{#ifeq:{{{freepull|}}}|yes|'''Item is a free pull while in a retcon run'''<br>[[Category:Free Pulls]]}}<noinclude>
  
</noinclude>{{#ifeq:{{{consumable|}}}|yes|<br>'''Consumable'''[[Category:Consumables]]}}<noinclude>
+
</noinclude>{{#ifeq:{{{noretcon|}}}|yes|'''Item cannot be worn in runs with a 'no pulls' restriction'''<br>[[Category:Retcon Restricted]]}}<noinclude>
  
</noinclude>{{#ifeq:{{{usable|}}}|yes|<br>'''Usable'''[[Category:Usables]]}}<noinclude>
+
</noinclude>{{#ifeq:{{{combat|}}}|yes|'''Combat Usable'''<br>[[Category:Combat Usables]]}}<noinclude>
  
</noinclude>{{#ifeq:{{{combat|}}}|yes|<br>'''Combat Usable'''[[Category:Combat Usables]]}}<noinclude>
+
</noinclude>{{#ifeq:{{{weldable|}}}|yes|'''Can be welded'''<br>[[Category:Can be Welded]]}}<noinclude>
  
</noinclude>{{#ifeq:{{{weldable|}}}|yes|<br>'''Can be welded'''[[Category:Can be Welded]]}}<noinclude>
+
</noinclude>{{#ifeq:{{{vegetable|}}}|yes|'''Vegetable'''<br>[[Category:Vegetable]]}}<noinclude>
  
 
</noinclude>{{#if:{{{ench|}}}|<br><b>{{{ench}}}</b>}}
 
</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}}}}}<noinclude>
+
{{#ifeq:{{{unimplemented|}}}|yes|Unimplemented item; cannot be obtained|{{#switch:{{{obtain|?}}}||?=<i>Unknown</i>[[Category:Incomplete]]|#default={{{obtain}}}}}}}<noinclude>
 +
 
 +
</noinclude>{{#ifeq:{{#var:consumable}}|yes|
 +
<br>
 +
<big>'''When Consumed'''</big><br><hr>
 +
{{#switch:{{{consume|?}}}||?=<i>Unknown</i>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{consume}}}}}{{#switch:{{{multiuse|?}}}||?=<br>
 +
'''''Using multiple:''' Unspecified''[[Category:Unspecified Multiple Use]]
 +
|none|!=
 +
|missing=<br>[[Category:Items Needing Use Multiple]]
 +
'''''Using multiple:''' Missing, please [http://www.twilightheroes.com/forums/viewtopic.php?f=2&t=771 report]''
 +
|same=<br>
 +
'''''Using multiple:''' Same as single use''
 +
|#default=<br>
 +
'''''Using multiple:'''''<br>
 +
{{{multiuse}}}}}}}<noinclude>
  
 
</noinclude>{{#ifeq:{{{usable|}}}|yes|
 
</noinclude>{{#ifeq:{{{usable|}}}|yes|
 
<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>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{used}}}}}{{#switch:{{{multiuse|?}}}||?=<br><br>
 +
'''''Using multiple:''' Unspecified''[[Category:Unspecified Multiple Use]]
 +
|none|!=
 +
|missing=<br><br>[[Category:Items Needing Use Multiple]]
 +
'''''Using multiple:''' Missing, please [http://www.twilightheroes.com/forums/viewtopic.php?f=2&t=771 report]''
 +
|same=<br><br>
 +
'''''Using multiple:''' Same as single use''
 +
|#default=<br><br>
 +
'''''Using multiple:'''''<br>
 +
{{{multiuse}}}}}}}<noinclude>
  
</noinclude>{{#ifeq:{{{combat|}}}|yes|
+
</noinclude>{{#ifeq:{{{vegetable|}}}|yes|
 
<br>
 
<br>
<big>'''When Used In Combat'''</big><br><hr>
+
<big>'''When Used'''</big><br><hr>
{{#switch:{{{combatuse|?}}}||?=<i>Unknown</i>|#default={{{combatuse}}}}}}}<noinclude>
+
{{#switch:{{{used|?}}}||?=<i>Unknown</i>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{used}}}}}{{#switch:{{{multiuse|?}}}||?=<br><br>
 +
'''''Using multiple:''' Unspecified''[[Category:Unspecified Multiple Use]]
 +
|none|!=
 +
|missing=<br><br>[[Category:Items Needing Use Multiple]]
 +
'''''Using multiple:''' Missing, please [http://www.twilightheroes.com/forums/viewtopic.php?f=2&t=771 report]''
 +
|same=<br><br>
 +
'''''Using multiple:''' Same as single use''
 +
|#default=<br><br>
 +
'''''Using multiple:'''''<br>
 +
{{{multiuse}}}}}}}<noinclude>
  
</noinclude>{{#ifeq:{{{consumable|}}}|yes|
+
</noinclude>{{#ifeq:{{{returnable|}}}|yes|[[Category:Returnables]]
 
<br>
 
<br>
<big>'''When Consumed'''</big><br><hr>
+
<big>'''When Returned through [{{{returntext}}}]'''</big><br><hr>
{{#switch:{{{consume|?}}}||?=<i>Unknown</i>|#default={{{consume}}}}}}}<noinclude>
+
{{#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>
+
</noinclude>{{#ifeq:{{{combat|}}}|yes|
 
<br>
 
<br>
 +
<big>'''When Used in Combat'''</big><br><hr>
 +
{{#switch:{{{combatuse|?}}}||?=<i>Unknown</i>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{combatuse}}}}}}}<noinclude>
 +
 +
</noinclude>{{#switch:{{{uses|?}}}||?=|none=|#default=<br>
 
<big>'''Other Uses'''</big><br><hr>
 
<big>'''Other Uses'''</big><br><hr>
{{#switch:{{lc:{{{uses|?}}}}}||?=<i>Unknown</i>[[Category:Incomplete]]|none=<i>None</i>|#default={{{uses}}}}}
+
{{{uses}}}}}<noinclude>
 +
 
 +
</noinclude>
 
[[Category:Items]]</includeonly>
 
[[Category:Items]]</includeonly>
 
<noinclude>
 
<noinclude>
 
=Template=
 
=Template=
'''<nowiki>{{item</nowiki><br><nowiki>
+
'''<nowiki>
 +
{{item</nowiki><br><nowiki>
 +
|unimplemented=</nowiki>'''''Set to yes if the item is a gag/unimplemented item. Such items have no itemid, descid, obtain, plural etc.'''''<br><nowiki>
 
|descid=</nowiki><br><nowiki>
 
|descid=</nowiki><br><nowiki>
 
|itemid=</nowiki><br><nowiki>
 
|itemid=</nowiki><br><nowiki>
 
|name=</nowiki><br><nowiki>
 
|name=</nowiki><br><nowiki>
|plural=</nowiki><br><nowiki>
+
|plural=</nowiki>'''''Set to ! if the plural cannot be determined'''''<br><nowiki>
 
|image=</nowiki><br><nowiki>
 
|image=</nowiki><br><nowiki>
 
|desc=</nowiki><br><nowiki>
 
|desc=</nowiki><br><nowiki>
 
|type=</nowiki><br><nowiki>
 
|type=</nowiki><br><nowiki>
 +
|weapontype=</nowiki><br><nowiki>
 
|power=</nowiki><br><nowiki>
 
|power=</nowiki><br><nowiki>
 
|level=</nowiki><br><nowiki>
 
|level=</nowiki><br><nowiki>
 
|range=</nowiki><br><nowiki>
 
|range=</nowiki><br><nowiki>
 +
|piloting=</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>
+
|nopull=</nowiki><br><nowiki>
|notrade=yes</nowiki><i><Optional.></i><br><nowiki>
+
|freepull=</nowiki><br><nowiki>
|consumable=yes</nowiki><i><Optional.></i><br><nowiki>
+
|nomem=</nowiki><br><nowiki>
|usable=yes</nowiki><i><Optional.></i><br><nowiki>
+
|notrade=</nowiki><br><nowiki>
|combat=yes</nowiki><i><Optional.></i><br><nowiki>
+
|noretcon=</nowiki><br><nowiki>
|weldable=yes</nowiki><i><Optional.></i><br><nowiki>
+
|caffeine=</nowiki><br><nowiki>
 +
|caffeinefullness=</nowiki><br><nowiki>
 +
|sugar=</nowiki><br><nowiki>
 +
|sugarfullness=</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>
 +
|weldable=</nowiki><br><nowiki>
 +
|vegetable=</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>
 +
|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=
Line 101: Line 193:
  
 
'''Results in...'''
 
'''Results in...'''
Go back to [[Items by Name]]<div style="position:relative"><div style="font-size:80%;text-align:right;position:absolute;top:0px;right:15px;">[[Items by number (1-99)|Item Number]]: 116<br>Description ID: 9734581<br>[http://www.twilightheroes.com/popup.php?item=9734581 (view in-game)]</div>
+
<div style="position:relative"><div style="font-size:80%;text-align:right;position:absolute;top:0px;right:15px;">[[Items by number (1-99)|Item Number]]: 116<br>Description ID: 9734581<br>[http://www.twilightheroes.com/popup.php?item=9734581 (view in-game)]</div>
<p style="text-align:center;">[[image:crown.gif]]</p>
+
<p style="text-align:center;">[[image:crown.gif|40px]]</p>
 
'''royal crown'''<br>
 
'''royal crown'''<br>
 
<small>Plural: <i>royal crowns</i></small><br>
 
<small>Plural: <i>royal crowns</i></small><br>
Line 115: Line 207:
 
[[Cube Theater]]
 
[[Cube Theater]]
 
:*[[unidentifiable English king]]
 
:*[[unidentifiable English king]]
<br><br><big>'''Other Uses'''</big><br><hr>
 
<i>none</i>
 
 
 
[[Category:Standardization Templates|{{PAGENAME}}]] </noinclude>
 
[[Category:Standardization Templates|{{PAGENAME}}]] </noinclude>

Latest revision as of 18:11, 4 November 2016


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=
|piloting=
|autosell=
|nosell=
|nopull=
|freepull=
|nomem=
|notrade=
|noretcon=
|caffeine=
|caffeinefullness=
|sugar=
|sugarfullness=
|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=
|vegetable=
|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...

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