Difference between revisions of "Template:Test"

From Twilight Heroes Wiki
Jump to: navigation, search
(so it looks like the much-used Template:Item has an unclosed <div>...)
Line 1: Line 1:
<includeonly>__NOTOC__<div style="font-size:80%;text-align:right;position:absolute;top:0px;right:15px;">
+
<includeonly>__NOTOC__<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|?}}}
 
{{#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]]
 
||?=<i>Unknown</i>[[Category:Incomplete]]
Line 5: Line 5:
 
|#default={{{descid}}}}}<br>{{#switch:{{{descid|?}}}
 
|#default={{{descid}}}}}<br>{{#switch:{{{descid|?}}}
 
||!|?=
 
||!|?=
|#default=[http://www.twilightheroes.com/popup.php?item={{{descid}}} (view in-game)]}}}}</div>
+
|#default=[http://www.twilightheroes.com/popup.php?item={{{descid}}} (view in-game)]}}}}</div></div>
 
<p style="text-align:center;">[[image:{{{image}}}|40px]]</p>
 
<p style="text-align:center;">[[image:{{{image}}}|40px]]</p>
 
'''{{{name}}}'''<br>
 
'''{{{name}}}'''<br>

Revision as of 13:07, 1 May 2015


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.