Difference between revisions of "Template:Test"

From Twilight Heroes Wiki
Jump to: navigation, search
m (cleared)
m (testing new param for combatencounter)
Line 1: Line 1:
<includeonly></includeonly>
+
<includeonly>__NOTOC__
 +
{{blackbox|{{{image}}}|{{{name}}}}}
 +
{{#if:{{{prefight|}}}|{{{prefight}}}
 +
}}
 +
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}}}}}
 +
{{#if:{{{hit4|}}}|*{{{hit4}}}}}
 +
{{#if:{{{hit5|}}}|*{{{hit5}}}}}
 +
{{#if:{{{hit6|}}}|*{{{hit6}}}}}
 +
<br>
 +
{{#if:{{{pronoun|}}}|{{{pronoun}}}|???[[Category:Incomplete]]}} {{#ifeq:{{{pronoun|}}}|They|hit|hits}} you for {{element|physical|X}}.<br>
 +
 
 +
'''Critical hit message:'''<br>
 +
 
 +
<span style="color:#507630;">Your opponent has a critical hit! {{{pronoun}}} {{#ifeq:{{{pronoun|}}}|They|hit|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}}}}}
 +
{{#if:{{{miss4|}}}|*{{{miss4}}}}}
 +
{{#if:{{{miss5|}}}|*{{{miss5}}}}}
 +
{{#if:{{{miss6|}}}|*{{{miss6}}}}}
 +
<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|{{#if:{{{drop2|}}}|{{{drop2}}}|!}}}})<br>}}
 +
{{#if:{{{item3|}}}|{{obtain|{{{item3}}}|{{{image3}}}}} ({{droprate|{{#if:{{{drop3|}}}|{{{drop3}}}|!}}}})<br>}}
 +
{{#if:{{{item4|}}}|{{obtain|{{{item4}}}|{{{image4}}}}} ({{droprate|{{#if:{{{drop4|}}}|{{{drop4}}}|!}}}})<br>}}
 +
{{#if:{{{item5|}}}|{{obtain|{{{item5}}}|{{{image5}}}}} ({{droprate|{{#if:{{{drop5|}}}|{{{drop5}}}|!}}}})<br>}}
 +
{{#if:{{{item6|}}}|{{obtain|{{{item6}}}|{{{image6}}}}} ({{droprate|{{#if:{{{drop6|}}}|{{{drop6}}}|!}}}})<br>}}
 +
{{#if:{{{item7|}}}|{{obtain|{{{item7}}}|{{{image7}}}}} ({{droprate|{{#if:{{{drop7|}}}|{{{drop7}}}|!}}}})<br>}}
 +
{{#if:{{{item8|}}}|{{obtain|{{{item8}}}|{{{image8}}}}} ({{droprate|{{#if:{{{drop8|}}}|{{{drop8}}}|!}}}})<br>}}
 +
{{#if:{{{item9|}}}|{{obtain|{{{item9}}}|{{{image9}}}}} ({{droprate|{{#if:{{{drop9|}}}|{{{drop9}}}|!}}}})<br>}}
 +
{{#if:{{{item10|}}}|{{obtain|{{{item10}}}|{{{image10}}}}} ({{droprate|{{#if:{{{drop10|}}}|{{{drop10}}}|!}}}})<br>}}
 +
{{#if:{{{item11|}}}|{{obtain|{{{item11}}}|{{{image11}}}}} ({{droprate|{{#if:{{{drop11|}}}|{{{drop11}}}|!}}}})<br>}}
 +
 
 +
{{#if:{{{postfight|}}}|{{{postfight}}}}}
 +
== Known resistances/weaknesses ==
 +
{{#if:{{{newres|}}}|{{{newres}}}|''Unspecified''[[Category:Unspecified Resistance]]}}
 +
{{#if:{{{res|}}}|<br><small>Former resistances were {{{res}}}, remember to remove this information from the page when resistances are spaded.</small>}}
 +
 
 +
==Locations==
 +
{{#if:{{{loc1|}}}|*[[{{{loc1}}}]]<br>|''Unspecified Locations''[[Category:Incomplete]]}}
 +
{{#if:{{{loc2|}}}|*[[{{{loc2}}}]]<br>}}
 +
{{#if:{{{loc3|}}}|*[[{{{loc3}}}]]<br>}}
 +
{{#if:{{{loc4|}}}|*[[{{{loc4}}}]]}}
 +
</includeonly>
 
<noinclude>__NOTOC__
 
<noinclude>__NOTOC__
 
==Instructions==
 
==Instructions==

Revision as of 16:27, 4 April 2020


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.