Difference between revisions of "Template:ClassInfobox"

From King Arthur's Gold Wiki
Jump to: navigation, search
m
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template is used to show infobox for class
+
This template is used to show the infobox for the three player classes.
  
 
Usage :
 
Usage :
  
<code>
+
<pre>
 
{{ClassInfobox
 
{{ClassInfobox
 
|Image=Knight.png
 
|Image=Knight.png
 
|Name=knight
 
|Name=knight
 +
|Life = 1 / 2 / 3 / 4
 
|Type=Melee
 
|Type=Melee
|Speed=Slow
 
 
}}
 
}}
</code>
+
</pre>
  
</noinclude>
+
[[Category:Templates]]</noinclude><includeonly>
 
+
[[File:{{{Image}}}|frame|alt={{{Name}}}|'''Life''':
<includeonly>
+
{{#switch: {{{Life}}}
[[File:{{{Image}}}|frame|alt={{{Name}}}|'''Life''': [[File:Heart.png]][[File:Heart.png]][[File:Heart.png]]
+
|1 = [[File:Heart.png|link=Heart]]
<br>'''Type''': {{{Type}}}
+
|2 = [[File:Heart.png|link=Heart]][[File:Heart.png|link=Heart]]
<br>'''Move speed''': {{{Speed}}}]]
+
|3 = [[File:Heart.png|link=Heart]][[File:Heart.png|link=Heart]][[File:Heart.png|link=Heart]]
</includeonly>
+
|4 = [[File:Heart.png|link=Heart]][[File:Heart.png|link=Heart]][[File:Heart.png|link=Heart]][[File:Heart.png|link=Heart]]
 +
}}
 +
<br>'''Type''': {{{Type}}}]]</includeonly>

Latest revision as of 18:53, 31 July 2013

This template is used to show the infobox for the three player classes.

Usage :

{{ClassInfobox
|Image=Knight.png
|Name=knight
|Life = 1 / 2 / 3 / 4
|Type=Melee
}}