Difference between revisions of "Template:Test"

From Twilight Heroes Wiki
Jump to: navigation, search
m (Undo revision 69308 by Hoyifung04 (talk))
 
(99 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>__NOTOC__
+
<includeonly></includeonly>
{{blackbox|{{{image}}}}}
+
<noinclude>__NOTOC__
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}}}}} ({{#if:{{{drop1|}}}|{{{drop1}}}%|''Unspecified Drop rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
 
{{#if:{{{item2|}}}|{{obtain|{{{item2}}}|{{{image2}}}}} ({{#if:{{{drop2|}}}|{{{drop2}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
 
{{#if:{{{item3|}}}|{{obtain|{{{item3}}}|{{{image3}}}}} ({{#if:{{{drop3|}}}|{{{drop3}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
 
{{#if:{{{item4|}}}|{{obtain|{{{item4}}}|{{{image4}}}}} ({{#if:{{{drop4|}}}|{{{drop4}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
 
{{#if:{{{item5|}}}|{{obtain|{{{item5}}}|{{{image5}}}}} ({{#if:{{{drop5|}}}|{{{drop5}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
 
{{#if:{{{item6|}}}|{{obtain|{{{item6}}}|{{{image6}}}}} ({{#if:{{{drop6|}}}|{{{drop6}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
 
{{#if:{{{item7|}}}|{{obtain|{{{item7}}}|{{{image7}}}}} ({{#if:{{{drop7|}}}|{{{drop7}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
 
{{#if:{{{item8|}}}|{{obtain|{{{item8}}}|{{{image8}}}}} ({{#if:{{{drop8|}}}|{{{drop8}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
 
{{#if:{{{item9|}}}|{{obtain|{{{item9}}}|{{{image9}}}}} ({{#if:{{{drop9|}}}|{{{drop9}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<br>}}
 
{{#if:{{{item10|}}}|{{obtain|{{{item10}}}|{{{image10}}}}} ({{#if:{{{drop10|}}}|{{{drop10}}}%|''Unspecified Drop Rate''[[Category:Needs Drop Rate Spading]]}})<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>

Latest revision as of 23:36, 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.