Difference between revisions of "Template:Test"

From Twilight Heroes Wiki
Jump to: navigation, search
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;">
+
<includeonly>__NOTOC__
{{#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>
+
{{blackbox|{{{image}}}}}
<p style="text-align:center;">[[image:{{{image}}}|40px]]</p>
+
You are fighting {{#switch:{{{indef|?}}}|?=???[[Category:Incomplete]]|!=|#default={{{indef}}}}} {{{name}}}.
'''{{{name}}}'''<br>
+
 
<small>Plural: <i>{{#ifeq:{{{unimplemented|}}}|yes|Unimplemented item; no plural exists|{{#switch:{{{plural|?}}}||?=Unknown[[Category:Unknown Plurals]]|!=Unknown; currently impossible to determine[[Category:Indeterminable Plurals]]|#default={{{plural}}}}}}}</i></small><br>
 
 
{{#if:{{{desc|}}}|{{{desc}}}|''Empty Description''[[Category:Empty Description]]}}
 
{{#if:{{{desc|}}}|{{{desc}}}|''Empty Description''[[Category:Empty Description]]}}
 +
<br clear="all">
 +
Your opponent attacks ...<br>
  
'''{{#switch:{{lc:{{{type|?}}}}}||?=<i>Unknown</i>[[Category:Incomplete]]
+
'''Hit messages:'''<br>
|talisman|talismans=Talisman[[Category:Talismans]]
+
{{#switch:{{{hit1|?}}}|?=''Unspecified Message''[[Category:Incomplete]]|!=|#default=*{{{hit1}}}}}
|full|full-body suit|full-body suits=Full-body suit[[Category:Full-body Suits]]
+
{{#if:{{{hit2|}}}|*{{{hit2}}}}}
|misc|miscellaneous item=Miscellaneous Item[[Category:Miscellaneous Items]]
+
{{#if:{{{hit3|}}}|*{{{hit3}}}}}
|offhand items|offhand item|offhand=Offhand Item[[Category:Offhand Items]]
+
<br>
|melee|melee weapons|melee weapon=Melee weapon''' ({{MeleeWeaponType|{{{weapontype}}}}})'''[[Category:Melee Weapons]]
+
{{#if:{{{pronoun|}}}|{{{pronoun}}}|???[[Category:Incomplete]]}} hits you for {{element|physical|X}}.<br>
|ranged|ranged weapons|ranged weapon=Ranged weapon''' ({{RangedWeaponType|{{{weapontype}}}}})'''[[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>
+
'''Critical hit message:'''<br>
  
</noinclude>{{#if:{{{range|}}}|'''Range: {{{range}}}'''<br>}}<noinclude>
+
<span style="color:#507630;">Your opponent has a critical hit! {{{pronoun}}} hits you for </span>{{element|physical|X}}.<br>
 +
{{#if:{{{effect|}}}|<br>'''Special Attack:'''<br>
  
</noinclude>{{#if:{{{level|}}}|'''Level Required: {{{level}}}'''<br>}}<noinclude>
+
{{{effect}}}<br>[[Category:Enemies with Special Attack]]
 +
}}
  
</noinclude>{{#ifeq:{{{notrade|}}}|yes|'''Item cannot be traded or sold'''<br>}}<noinclude>
+
<br>'''Miss messages:'''<br>
 
+
{{#switch:{{{miss1|?}}}|?=''Unspecified Message''[[Category:Incomplete]]|!=and misses.|#default=*{{{miss1}}}}}
</noinclude>{{#if:{{{autosell|}}}|'''Autosell value: {{{autosell}}}'''<br>}}<noinclude>
+
{{#if:{{{miss2|}}}|*{{{miss2}}}}}
 
+
{{#if:{{{miss3|}}}|*{{{miss3}}}}}
</noinclude>{{#ifeq:{{{nomem|}}}|yes|'''Item cannot be placed in a memento display'''<br>[[Category:NoMem]]|[[Category:Mem]]}}<noinclude>
+
<br>
 
 
</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>
+
'''Fumble messages:'''<br>
  
</noinclude>{{#ifeq:{{{weldable|}}}|yes|<br>'''Can be welded'''[[Category:Can be Welded]]}}<noinclude>
+
Your foe fumbles! {{{pronoun}}} takes {{element|fumble|X}}.
  
</noinclude>{{#if:{{{ench|}}}|<br><b>{{{ench}}}</b>}}
+
<br>Victory! You beat up your foe and win the combat!<br>
  
<br><br><big>'''How Obtained'''</big><br><hr>
+
{{#switch:{{{chips|?}}}|?=''Unspecified chip drop''[[Category:Incomplete]]|0=|#default={{chips|amt={{{chips}}}}}}}<br>
{{#ifeq:{{{unimplemented|}}}|yes|Unimplemented item; cannot be obtained|{{#switch:{{{obtain|?}}}||?=<i>Unknown</i>[[Category:Incomplete]]|#default={{{obtain}}}}}}}<noinclude>
 
  
</noinclude>{{#ifeq:{{{consumable|}}}|yes|
+
{{#if:{{{xp|}}}|{{exp|amt={{{xp}}}}}|''Unspecified XP''[[Category:Incomplete]]}}
<br>
 
<big>'''When Consumed'''</big><br><hr>
 
{{#switch:{{{consume|?}}}||?=<i>Unknown</i>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{consume}}}}}{{#switch:{{{multiuse|?}}}||?=<br>
 
'''''Using multiple:''' Unspecified''[[Category:Unspecified Multiple Use]]
 
|none|!=
 
|missing=<br>
 
'''''Using multiple:''' Missing, please [http://www.twilightheroes.com/forums/viewtopic.php?f=2&t=771 report]''
 
|same=<br>
 
'''''Using multiple:''' Same as single use''
 
|#default=<br>
 
'''''Using multiple:'''''<br>
 
{{{multiuse}}}}}}}<noinclude>
 
  
</noinclude>{{#ifeq:{{{usable|}}}|yes|
+
{{#if:{{{item1|}}}|{{obtain|{{{item1}}}|{{{image1}}}}} ({{#if:{{{drop1|}}}|{{{drop1}}}%|''Unspecified Drop rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
<br>
+
{{#if:{{{item2|}}}|{{obtain|{{{item2}}}|{{{image2}}}}} ({{#if:{{{drop2|}}}|{{{drop2}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
<big>'''When Used'''</big><br><hr>
+
{{#if:{{{item3|}}}|{{obtain|{{{item3}}}|{{{image3}}}}} ({{#if:{{{drop3|}}}|{{{drop3}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
{{#switch:{{{used|?}}}||?=<i>Unknown</i>{{#ifeq:{{{unimplemented|}}}|yes||[[Category:Incomplete]]}}|#default={{{used}}}}}{{#switch:{{{multiuse|?}}}||?=<br><br>
+
{{#if:{{{item4|}}}|{{obtain|{{{item4}}}|{{{image4}}}}} ({{#if:{{{drop4|}}}|{{{drop4}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
'''''Using multiple:''' Unspecified''[[Category:Unspecified Multiple Use]]
+
{{#if:{{{item5|}}}|{{obtain|{{{item5}}}|{{{image5}}}}} ({{#if:{{{drop5|}}}|{{{drop5}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
|none|!=
+
{{#if:{{{item6|}}}|{{obtain|{{{item6}}}|{{{image6}}}}} ({{#if:{{{drop6|}}}|{{{drop6}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
|missing=<br><br>
+
{{#if:{{{item7|}}}|{{obtain|{{{item7}}}|{{{image7}}}}} ({{#if:{{{drop7|}}}|{{{drop7}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
'''''Using multiple:''' Missing, please [http://www.twilightheroes.com/forums/viewtopic.php?f=2&t=771 report]''
+
{{#if:{{{item8|}}}|{{obtain|{{{item8}}}|{{{image8}}}}} ({{#if:{{{drop8|}}}|{{{drop8}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
|same=<br><br>
+
{{#if:{{{item9|}}}|{{obtain|{{{item9}}}|{{{image9}}}}} ({{#if:{{{drop9|}}}|{{{drop9}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
'''''Using multiple:''' Same as single use''
+
{{#if:{{{item10|}}}|{{obtain|{{{item10}}}|{{{image10}}}}} ({{#if:{{{drop10|}}}|{{{drop10}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
|#default=<br><br>
 
'''''Using multiple:'''''<br>
 
{{{multiuse}}}}}}}<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>{{#switch:{{{uses|?}}}||?=|none=|#default=<br>
+
{{#if:{{{postfight|}}}|{{{postfight}}}}}
<big>'''Other Uses'''</big><br><hr>
+
== Known resistances/weaknesses ==
{{{uses}}}}}<noinclude>
+
{{#if:{{{res|}}}|{{{res}}}|''Unspecified''[[Category:Unspecified Resistance]]}}
  
</noinclude>
+
==Locations==
[[Category:Items]]</includeonly><noinclude>__NOTOC__
+
{{#if:{{{loc1|}}}|*[[{{{loc1}}}]]<br>|''Unspecified Locations''[[Category:Incomplete]]}}
 +
{{#if:{{{loc2|}}}|*[[{{{loc2}}}]]<br>}}
 +
{{#if:{{{loc3|}}}|*[[{{{loc3}}}]]}}
 +
[[Category:Enemies|{{PAGENAME}}]]</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 06:06, 17 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.