Difference between revisions of "Template:Test"

From Twilight Heroes Wiki
Jump to: navigation, search
m (Undo revision 69308 by Hoyifung04 (talk))
 
(73 intermediate revisions by 3 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;">
+
<includeonly></includeonly>
{{#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|?}}}
+
<noinclude>__NOTOC__
||?=<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>
 
<p style="text-align:center;">[[image:{{{image}}}|40px]]</p>
 
'''{{{name}}}'''<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>
 
{{#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 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:{{{range|}}}|'''Range: {{{range}}}'''<br>}}<noinclude>
 
 
 
</noinclude>{{#if:{{{level|}}}|'''Level Required: {{{level}}}'''<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>[[Category:NoMem]]|[[Category:Mem]]}}<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]]|{{#ifeq:{{{returnable|}}}|yes|<br>'''Usable'''[[Category:Returnables]]}}}}<noinclude>
 
 
 
</noinclude>{{#ifeq:{{{caffeine|}}}|yes|<br>'''Contains caffeine.'''[[Category:Caffeine]]}}<noinclude>
 
 
 
</noinclude>{{#ifeq:{{{sugar|}}}|yes|<br>'''Contains sugar.'''[[Category:Sugar]]}}<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>
 
{{#ifeq:{{{unimplemented|}}}|yes|Unimplemented item; cannot be obtained|{{#switch:{{{obtain|?}}}||?=<i>Unknown</i>[[Category:Incomplete]]|#default={{{obtain}}}}}}}<noinclude>
 
 
 
</noinclude>{{#ifeq:{{{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>
 
'''''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|
 
<br>
 
<big>'''When Used'''</big><br><hr>
 
{{#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>
 
'''''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:{{{returnable|}}}|yes|[[Category:Returnables]]
 
<br>
 
<big>'''When Returned through [{{{returntext}}}]'''</big><br><hr>
 
{{#switch:{{{returned|?}}}||?=''Unknown''[[Category:Incomplete]]|#default=<br>{{{returned}}}}}<br>
 
:''Trying to return the item to yourself:''{{#switch:{{{returnself|?}}}||?= Unspecified[[Category:Incomplete]]|#default=<br>
 
:{{{returnself}}}}}<br>
 
'''''Effect on Receiver:'''''{{#switch:{{{returnedreceiver|?}}}||?= Unspecified[[Category:Incomplete]]|#default=<br>{{{returnedreceiver}}}}}
 
}}<noinclude>
 
 
 
</noinclude>{{#ifeq:{{{combat|}}}|yes|
 
<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>
 
{{{uses}}}}}<noinclude>
 
 
 
</noinclude>
 
[[Category:Items]]</includeonly><noinclude>__NOTOC__
 
 
==Instructions==
 
==Instructions==
 
This is a test template for use in testing template code before pushing it live onto the wiki. To test template code, insert it between the "includeonly" tags. The template can then be called with <nowiki>{{test|list of parameters}}</nowiki> on any other page to view the test results.
 
This is a test template for use in testing template code before pushing it live onto the wiki. To test template code, insert it between the "includeonly" tags. The template can then be called with <nowiki>{{test|list of parameters}}</nowiki> on any other page to view the test results.
  
 
[[Category:Test Templates]]</noinclude>
 
[[Category:Test Templates]]</noinclude>

Latest revision as of 23:36, 4 April 2020


Instructions

This is a test template for use in testing template code before pushing it live onto the wiki. To test template code, insert it between the "includeonly" tags. The template can then be called with {{test|list of parameters}} on any other page to view the test results.