Template:War machine: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
(Clean up template, add mini pic)
 
(30 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| cellspacing=0 cellpadding=0 style="background-color: #CCCCFF; border-width: 0px; float: {{{float|right}}};" cellpadding="3";
<includeonly>{| cellpadding=0 cellspacing=0 style="background-color:#{{Blue 3}}; border: 1px solid; width: 150px; float:{{{float|right}}};"
|-
! colspan=3 bgcolor={{Blue 1}} style="color:#FFFFFF; height: 35px;" | [[File: Mini Portrait {{{Name}}}.png]]{{---}}{{{Name}}}
| colspan=5 align=center bgcolor=3250FF style="color:#FFFFFF; height: 25px;" | '''{{{Name}}}'''
|- align=center
|-
| colspan=2 style="valign:middle; border: 5px solid #{{Blue 3}};" | [[Image: {{{Name}}}.png]]
| rowspan="4" align=center valign=center | [[Image: Creature {{{Image|{{{Name}}}}}}.gif]]
|- {{#if: {{{Attack|}}} |  | style="display: none;"}}
| '''[[Primary skill#attack skill|Attack]]'''  
| {{---}}'''[[Primary skill#attack skill|Attack]]'''
| {{{Attack}}}
| {{{Attack|}}}
| '''[[Speed]]'''  
|- {{#if: {{{Defense|}}} |  | style="display: none;"}}
| {{{Speed}}}
| {{---}}'''[[Primary skill#defense skill|Defense]]'''
|-
| {{{Defense|}}}
| '''[[Primary skill#defense skill|Defense]]'''  
|- {{#if: {{{Damage|}}} |  | style="display: none;"}}
| {{{Defense|{{{Defence}}}}}}
| {{---}}'''[[Damage]]'''
| '''[[Movement (combat)|Movement]]'''
| {{{Damage|}}}
| {{{Movement|}}}  
|- {{#if: {{{Health|}}} |  | style="display: none;"}}
|-
| {{---}}'''[[Health]]'''
| '''[[Damage]]'''  
| {{{Health|}}}
| {{{Damage}}}
|- {{#if: {{{Cost|}}} |  | style="display: none;"}}
| {{{No_shots|'''[[Shots]]'''}}}
| {{---}}'''[[Cost]]'''  
| {{{Cost|}}}
|- {{#if: {{{Shots|}}} |  | style="display: none;"}}
| {{---}}'''[[Shots]]'''
| {{{Shots|}}}
| {{{Shots|}}}
|- valign="top"
|}</includeonly><noinclude>
| '''[[Health]]'''
| {{{Health}}}
| '''[[Cost]]'''
| {{{Cost}}} {{Gold}}
|-
| colspan="5" width=300 | {{{No_spec|'''Special:''' {{{Special}}}}}}
|}<noinclude>


== How to use ==
{{War machine
Copy the code at the beginning of the creature article, and fill in the missing information. Notice, that the factors below are case sensitive meaning, that "Town" is not the same as "town".
| Name      = Ammo Cart
| Defense  = 5
| Health    = 100
| Cost      = 1000 {{G}}
}}


{| style="background: transparent;"
{{War machine
| <pre>{{Creature
  | Name      = First Aid Tent
| Town      =
  | Health    = 75
| lvl        =
  | Cost      = 750 {{G}}
| Growth    =
}}
  | Name      =  
| Attack    =
| Defense    =
| Damage    =
  | Health    =  
| Speed      =
| Movement  =
| Shots      =
  | Cost      =  
| Special    =
| U_name    =
| U_attack  =
| U_defense  =
| U_damage  =
| U_health  =
| U_speed    =
| U_movement =
| U_shots    =
| U_cost    =
| U_special  =
}} </pre>
|}


If only one set of information is needed (e.g. [[neutral creature]]s, you can add the following row with no value:
{{War machine
<pre>
| Name      = Catapult
  | Onlyone   = </pre>
| Attack    = 10
  | Defense   = 10
| Health    = 1000
| Cost      = N/A
| Shots      = 24
}}


[[Category:Help templates|Creature]]</noinclude>
{{War machine
| Name      = Ballista
| Attack    = 10
| Defense  = 10
| Damage    = 2–3
| Health    = 250
| Cost      = 2500 {{G}}
| Shots    = 24
}}
 
{{War machine
| Name      = Cannon
| Attack    = 20
| Defense    = 10
| Damage    = 4–7
| Health    = 250
| Cost      = 4000 {{G}}
| Shots      = 8
}}
 
[[Category: Creature templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 17:13, 21 August 2024


   Ammo Cart
   Attack
   Defense 5
   Damage
   Health 100
   Cost 1000 Gold
   Shots
   First Aid Tent
   Attack
   Defense
   Damage
   Health 75
   Cost 750 Gold
   Shots
   Catapult
   Attack 10
   Defense 10
   Damage
   Health 1000
   Cost N/A
   Shots 24
   Ballista
   Attack 10
   Defense 10
   Damage 2–3
   Health 250
   Cost 2500 Gold
   Shots 24
   Cannon
   Attack 20
   Defense 10
   Damage 4–7
   Health 250
   Cost 4000 Gold
   Shots 8