Difference between revisions of "Template:Test"

From Twilight Heroes Wiki
Jump to: navigation, search
m
m (Undo revision 69308 by Hoyifung04 (talk))
 
(120 intermediate revisions by 4 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;">[[Items by number (1-99)|Item Number]]: {{#ifeq:{{{itemid|}}}||Unknown[[Category:Incomplete]]|{{{itemid}}}}}<br>Description ID: {{#ifeq:{{{descid|}}}||Unknown[[Category:Incomplete]]|{{{descid}}}}}<br>{{#ifeq:{{{descid|}}}|||[http://www.twilightheroes.com/popup.php?item={{{descid}}} (view in-game)]}}</div>
+
<includeonly></includeonly>
<p style="text-align:center;">[[image:{{{image}}}]]</p>
+
<noinclude>__NOTOC__
'''{{{name}}}'''
 
 
 
{{{desc}}}
 
 
 
'''{{#switch:{{lc:{{{type}}}}}|talisman|talismans=Talisman|full|full-body suit|full-body suits=Full-body suit|misc|miscellaneous item=Miscellaneous Item|offhand items|offhand item|offhand=Offhand Item|melee|melee weapons|melee weapon=Melee weapon|ranged|ranged weapons|ranged weapon=Ranged weapon|shirt|shirts=Shirt|helmet|helmets=Helmet|acc|accessory|accessories=Accessory|#default={{{type}}}}}'''<br>{{#if:{{{power|}}}|'''Power: {{{power}}}'''<br>}}{{#if:{{{level|}}}|'''Level Required: {{{level}}}'''<br>}}{{#if:{{{range|}}}|'''Range: {{{range}}}'''<br>}}{{#if:{{{autosell|}}}|'''Autosell value: {{{autosell}}}'''<br>}}{{#ifeq:{{{notrade|}}}|yes|'''Item cannot be traded or sold'''<br>}}{{#ifeq:{{{nosell|}}}|yes|'''Item cannot be auto-sold'''<br>}}{{#ifeq:{{{consumable|}}}|yes|<br>'''Consumable'''[[Category:Consumables]]}}{{#ifeq:{{{usable|}}}|yes|<br>'''Usable'''[[Category:Usables]]}}{{#ifeq:{{{combat|}}}|yes|<br>'''Combat Usable'''[[Category:Combat Usables]]}}{{#ifeq:{{{weldable|}}}|yes|<br>'''Can be welded'''[[Category:Can be Welded]]}}{{#if:{{{ench|}}}|<br><b>{{{ench}}}</b>}}
 
 
 
[[Category:{{#switch:{{lc:{{{type}}}}}|talisman|talismans=Talismans|full|full-body suit|full-body suits=Full-body Suits|misc|miscellaneous item=Miscellaneous Item|offhand items|offhand item|offhand=Offhand Items|melee|melee weapons|melee weapon=Melee Weapons|ranged|ranged weapons|ranged weapon=Ranged Weapons|shirt|shirts=Shirts|helmet|helmets=Helmets|acc|accessories|accessory=Accessories|#default={{{type}}}}}]][[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.