Difference between revisions of "Template:Test"

From Twilight Heroes Wiki
Jump to: navigation, search
m
m
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>__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]]: {{#switch:{{{itemid|?}}}|?=Unknown[[Category:Incomplete]]|#default={{{itemid}}}}}<br>Description ID: {{#switch:{{{descid|?}}}|?=Unknown[[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}}}]]</p>
 
<p style="text-align:center;">[[image:{{{image}}}]]</p>
 
'''{{{name}}}'''
 
'''{{{name}}}'''

Revision as of 14:22, 6 July 2008

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.