Difference between revisions of "Template:Test"

From Twilight Heroes Wiki
Jump to: navigation, search
(test)
m (Undo revision 69308 by Hoyifung04 (talk))
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>__NOTOC__
+
<includeonly></includeonly>
{{blackbox|{{{image}}}|{{{name}}}}}
+
<noinclude>__NOTOC__
You unilaterally decide your foe needs a slick new look and pull them into a whirlwind costume montage.
+
==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.
  
And... magnifique!
+
[[Category:Test Templates]]</noinclude>
 
 
{{#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]]}} {{#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}}}}}
 
<br>
 
 
 
'''Fumble messages:'''<br>
 
 
 
Your foe fumbles! {{{pronoun}}} takes {{element|fumble|X}}.
 
 
 
<br>Victory! You beat up your foe and win the combat!<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:{{{postfight|}}}|{{{postfight}}}}}
 
== Known resistances/weaknesses ==
 
{{#if:{{{newres|}}}|{{{newres}}}|''Unspecified''[[Category:Unspecified Resistance]]}}
 
 
 
==How to Encounter==
 
{{#if:{{{loc1|}}}|*Using [[Disguise Foe]] skill on foes whose name starts with {{{loc1}}}.<br>|''Unspecified Locations''[[Category:Incomplete]]}}
 
 
 
==Notes==
 
* XP gained is 8 * Level, capped at 400. No chips dropped though.
 
* Original drops, if any, no longer drop.
 
[[Category:Enemies|{{PAGENAME}}]][[Category:Disguised Foes|{{PAGENAME}}]]
 
</includeonly><noinclude>
 
 
 
{{test
 
|pronoun=He
 
|name=deranged quester
 
|desc=Since you changed this poor soul's costume, he's been mobbed by men with punctuation marks over their heads, sending him off to get sacred orbs or spaceship parts or boar spleens. You think he's finally cracked.
 
 
 
Either that or somebody offered him some pocket change for the extra scrap of spandex you're pretty sure you weren't carrying around until just now.
 
 
 
|image=derangedquester.gif
 
|hit1=The adventurer attempts to hit you until loot pops out. So far, so good.
 
|hit2=The deranged quester stops moving for a second, then launches into a barrage of swordstrokes and fireballs.{{hitnote|{{element|physical|}}}}+{{hitnote|{{element|fire|}}}}
 
|hit3=The quester starts digging through his belt pouch, muttering about a healing potion. He doesn't find that, but does find a flask of acid, which he dumps out. Thankfully, you manage to prevent him from polluting... with your foot. Which, admittedly, was there anyway, but it sounds more heroic this way.{{hitnote|{{element|acid|}}}}
 
|miss1=The adventure has a hypothesis that, if he hits you hard enough, loot will pop out. You decide against being his experimental subject.
 
|miss2=The deranged quester stops moving for a second, muttering something unprintable about lag.
 
|miss3= The quester starts digging through his belt pouch, muttering about a healing potion. He pulls out several bolts of cloth, two complete suits of armor, a fully-stocked spice cabinet, three swords, fourteen polearms, fifty feet of rope, and a live chicken before giving up.
 
 
 
He never does find the healing potion.
 
|xp=''some''
 
|item1=fetch quest|image1=fetchquest.gif|drop1=100
 
 
 
|loc1=D or Q
 
|newres={{res|fire|100}}
 
}}
 
 
 
[[Category:Standardization Templates|{{PAGENAME}}]]</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.