Difference between revisions of "Template:Test"

From Twilight Heroes Wiki
Jump to: navigation, search
(Replacing page with '<includeonly><noinclude>__NOTOC__ ==Instructions== This is a test template for use in testing template code before pushing it live onto the wiki. To test template code, insert ...')
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><noinclude>__NOTOC__
{{#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]]|#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[[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]]
 
|#default=<i>Unknown</i>[[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]]}}<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:{{{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>

Revision as of 04:19, 2 November 2009