Difference between revisions of "Template:Test"

From Twilight Heroes Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly><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>__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[[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>
 
{{#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>
 
<p style="text-align:center;">[[image:{{{image}}}|40px]]</p>

Revision as of 04:16, 2 November 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.