Difference between revisions of "Template:Combat"

From Twilight Heroes Wiki
Jump to: navigation, search
m (Hm, nope... Undo revision 8249 by Bagatelle (Talk))
m (implement redlink fix... hopefully?)
Line 1: Line 1:
<includeonly>'''[[{{{name}}}]]'''<br>
+
<includeonly>'''{{#if:{{{name2|}}}|[[{{{name}}}{{!}}{{{name2}}}]]|[[{{{name}}}]]}}'''<br>
 
[[Image:{{{image}}}|left]]
 
[[Image:{{{image}}}|left]]
 
'''Item Drops:''' {{{items}}}
 
'''Item Drops:''' {{{items}}}
Line 24: Line 24:
 
<pre>{{combat
 
<pre>{{combat
 
|name=
 
|name=
 +
|name2=
 
|image=
 
|image=
 
|items=
 
|items=
Line 45: Line 46:
  
  
If an enemy has a character in its name that the wiki can't parse, use this solution:<br>
+
If an enemy has a character in its name that the wiki can't parse, use name= to list the page name, and the name2= parameter to give the display name.
 
+
<pre>{{combat
<pre>'''[[big and tall shoreman|big & tall shoreman]]'''
+
|name=big and tall shoreman
{{combat
+
|name2=big & tall shoreman
|name=&amp;nbsp;
 
 
|image=longshoreman.jpg
 
|image=longshoreman.jpg
 
|items=[[big left hook]], [[docker's pants]]
 
|items=[[big left hook]], [[docker's pants]]
Line 58: Line 58:
  
 
''Results in...''<br>
 
''Results in...''<br>
'''[[big and tall shoreman|big & tall shoreman]]'''
+
{{combat|name=big and tall shoreman|name2=big & tall shoreman|image=longshoreman.jpg|items=[[big left hook]], [[docker's pants]]|chips=54-87|EL=|exp=70|HP=}}
{{combat|name=&nbsp;|image=longshoreman.jpg|items=[[big left hook]], [[docker's pants]]|chips=54-87|EL=|exp=70|HP=}}
 
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 17:01, 13 March 2008


Usage

{{combat
|name=
|name2=
|image=
|items=
|chips=
|EL=
|exp=
|HP=}}

Examples

{{combat
|name=thug
|image=thug.jpg
|items=[[baseball bat]], [[hammer]]
|chips=4-11
|EL=
|exp=5
|HP=5}}

Results in...

thug
Thug.jpg

Item Drops: baseball bat, hammer

Chip Drops: 4-11

Experience Gained: 5

Health: 5




If an enemy has a character in its name that the wiki can't parse, use name= to list the page name, and the name2= parameter to give the display name.

{{combat
|name=big and tall shoreman
|name2=big & tall shoreman
|image=longshoreman.jpg
|items=[[big left hook]], [[docker's pants]]
|chips=54-87
|EL=
|exp=70
|HP=}}

Results in...

big and tall shoreman
Longshoreman.jpg

Item Drops: big left hook, docker's pants

Chip Drops: 54-87

Experience Gained: 70