Difference between revisions of "Template:Test"

From Twilight Heroes Wiki
Jump to: navigation, search
m (whoa, something's screwy here...)
m (heh, whoops)
Line 1: Line 1:
<includeonly></includeonly><noinclude>__NOTOC__
+
<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:{{Data1|{{PAGENAME}}|image}}]]</p>
 +
'''{{Data1|{{PAGENAME}}|name}}'''<br>
 +
<small>Plural: <i>{{#ifeq:{{{unimplemented|}}}|yes|Unimplemented item; no plural exists|{{#switch:{{Data1|{{PAGENAME}}|plural|?}}||?=Unknown[[Category:Unknown Plurals]]|!=Unknown; currently impossible to determine[[Category:Indeterminable Plurals]]|#default={{Data1|{{PAGENAME}}|plural|?}}}}}}</i></small><br>
 +
{{{desc}}}
 +
 
 +
'''{{#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[[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:{{{level|}}}|'''Level Required: {{{level}}}'''<br>}}<noinclude>
 +
 
 +
</noinclude>{{#if:{{{range|}}}|'''Range: {{{range}}}'''<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>}}<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:{{{usable|}}}|yes|
 +
<br>
 +
<big>'''When Used'''</big><br><hr>
 +
{{#switch:{{{used|?}}}||?=<i>Unknown</i>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{used}}}}}}}<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>{{#ifeq:{{{consumable|}}}|yes|
 +
<br>
 +
<big>'''When Consumed'''</big><br><hr>
 +
{{#switch:{{{consume|?}}}||?=<i>Unknown</i>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{consume}}}}}}}<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 21:40, 20 January 2009

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.