Difference between revisions of "Template:Test"

From Twilight Heroes Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly></includeonly><noinclude>__NOTOC__
+
<includeonly>__NOTOC__
 +
{{blackbox|{{{image}}}}}
 +
You are fighting {{#switch:{{{indef|?}}}|?=???[[Category:Incomplete]]|!=|#default={{{indef}}}}} {{{name}}}.
 +
 
 +
{{#if:{{{desc|}}}|{{{desc}}}|''Empty Description''[[Category:Empty Description]]}}
 +
<br clear="all">
 +
Your opponent attacks ...<br>
 +
 
 +
'''Hit messages:'''<br>
 +
{{#switch:{{{hit1|?}}}|?=''Unspecified Message''[[Category:Incomplete]]|!=|#default=*{{{hit1}}}}}
 +
{{#if:{{{hit2|}}}|*{{{hit2}}}}}
 +
{{#if:{{{hit3|}}}|*{{{hit3}}}}}
 +
<br>
 +
{{#if:{{{pronoun|}}}|{{{pronoun}}}|???[[Category:Incomplete]]}} hits you for {{element|physical|X}}.<br>
 +
 
 +
'''Critical hit message:'''<br>
 +
 
 +
<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>
 +
 
 +
{{{effect}}}<br>[[Category:Enemies with Special Attack]]
 +
}}
 +
 
 +
<br>'''Miss messages:'''<br>
 +
{{#switch:{{{miss1|?}}}|?=''Unspecified Message''[[Category:Incomplete]]|!=and misses.|#default=*{{{miss1}}}}}
 +
{{#if:{{{miss2|}}}|*{{{miss2}}}}}
 +
{{#if:{{{miss3|}}}|*{{{miss3}}}}}
 +
<br>
 +
 
 +
'''Fumble messages:'''<br>
 +
 
 +
Your foe fumbles! {{{pronoun}}} takes {{element|fumble|X}}.
 +
 
 +
<br>Victory! You beat up your foe and win the combat!<br>
 +
 
 +
{{#switch:{{{chips|?}}}|?=''Unspecified chip drop''[[Category:Incomplete]]|0=|#default={{chips|amt={{{chips}}}}}}}<br>
 +
 
 +
{{#if:{{{xp|}}}|{{exp|amt={{{xp}}}}}|''Unspecified XP''[[Category:Incomplete]]}}
 +
 
 +
{{#if:{{{item1|}}}|{{obtain|{{{item1}}}|{{{image1}}}}} ({{droprate|#if:{{{drop1|}}}|{{{drop1}}}|!}}}}|)<br>}}
 +
{{#if:{{{item2|}}}|{{obtain|{{{item2}}}|{{{image2}}}}} ({{droprate|{{{drop2}}}}})<br>}}
 +
{{#if:{{{item3|}}}|{{obtain|{{{item3}}}|{{{image3}}}}} ({{droprate|{{{drop3}}}}})<br>}}
 +
{{#if:{{{item4|}}}|{{obtain|{{{item4}}}|{{{image4}}}}} ({{droprate|{{{drop4}}}}})<br>}}
 +
{{#if:{{{item5|}}}|{{obtain|{{{item5}}}|{{{image5}}}}} ({{droprate|{{{drop5}}}}})<br>}}
 +
{{#if:{{{item6|}}}|{{obtain|{{{item6}}}|{{{image6}}}}} ({{droprate|{{{drop6}}}}})<br>}}
 +
{{#if:{{{item7|}}}|{{obtain|{{{item7}}}|{{{image7}}}}} ({{droprate|{{{drop7}}}}})<br>}}
 +
{{#if:{{{item8|}}}|{{obtain|{{{item8}}}|{{{image8}}}}} ({{droprate|{{{drop8}}}}})<br>}}
 +
{{#if:{{{item9|}}}|{{obtain|{{{item9}}}|{{{image9}}}}} ({{droprate|{{{drop9}}}}})<br>}}
 +
{{#if:{{{item10|}}}|{{obtain|{{{item10}}}|{{{image10}}}}} ({{droprate|{{{drop10}}}}})<br>}}
 +
 
 +
{{#if:{{{postfight|}}}|{{{postfight}}}}}
 +
== Known resistances/weaknesses ==
 +
{{#if:{{{res|}}}|{{{res}}}|''Unspecified''[[Category:Unspecified Resistance]]}}
 +
 
 +
==Locations==
 +
{{#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 02:31, 20 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.