Template:War machine: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Undo revision 12594 by Kapteeni Ruoska (talk))
(Clean up template, add mini pic)
 
(31 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" | {{{Neutral|'''Level {{{lvl}}} creatures of [[{{{Town}}}|<span style="color:#FFFFFF">{{{Town}}}</span>]]''' }}} <br><span style="color:#FFFFFF; font-size:90%; ">''[[Growth|<span style="color:#FFFFFF">Basic growth</span>]]: {{{Growth}}}''</span>
|- align=center
|-
| colspan=2 style="valign:middle; border: 5px solid #{{Blue 3}};" | [[Image: {{{Name}}}.png]]
| colspan="5" align="center" | '''{{{Name}}}'''
|- {{#if: {{{Attack|}}} | | style="display: none;"}}
|-
| {{---}}'''[[Primary skill#attack skill|Attack]]'''
| rowspan="4" align=center valign=center | [[Image: Creature {{{Image|{{{Name}}}}}}.gif]]
| {{{Attack|}}}
| '''[[Primary skill#attack skill|Attack]]'''  
|- {{#if: {{{Defense|}}} |  | style="display: none;"}}
| {{{Attack}}}
| {{---}}'''[[Primary skill#defense skill|Defense]]'''
| '''[[Speed]]'''  
| {{{Defense|}}}
| {{{Speed}}}
|- {{#if: {{{Damage|}}} |  | style="display: none;"}}
|-
| {{---}}'''[[Damage]]'''
| '''[[Primary skill#defense skill|Defense]]'''  
| {{{Damage|}}}
| {{{Defense|{{{Defence}}}}}}
|- {{#if: {{{Health|}}} |  | style="display: none;"}}
| '''[[Movement (combat)|Movement]]'''
| {{---}}'''[[Health]]'''
| {{{Movement|}}}  
| {{{Health|}}}
|-
|- {{#if: {{{Cost|}}} |  | style="display: none;"}}
| '''[[Damage]]'''  
| {{---}}'''[[Cost]]'''  
| {{{Damage}}}
| {{{Cost|}}}
| {{{No_shots|'''[[Shots]]'''}}}
|- {{#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}}}}}}
|-
| colspan="5" align="center" | {{{Onlyone|'''{{{U_name|<noinclude>-</noinclude>}}}'''}}}
|-
| rowspan="4" align=center valign=center | {{{Onlyone|[[Image:Creature {{{U_image|{{{U_name|}}}}}}.gif]] }}}
| {{{Onlyone|'''[[Primary skill#attack skill|Attack]]''' }}}
| {{{Onlyone|{{{U_attack}}} }}}
| {{{Onlyone|'''[[Speed]]''' }}}
| {{{Onlyone|{{{U_speed}}} }}}
|-
| {{{Onlyone|'''[[Primary skill#defense skill|Defense]]''' }}}
| {{{Onlyone|{{{U_defense|{{{U_defence}}}}}} }}}
| {{{Onlyone|'''[[Movement (combat)|Movement]]''' }}}
| {{{Onlyone|{{{U_movement|}}} }}}
|-
| {{{Onlyone|'''[[Damage]]''' }}}
| {{{Onlyone|{{{U_damage}}} }}}
| {{{Onlyone|{{{No_shots|'''[[Shots]]'''}}} }}}
| {{{Onlyone|{{{U_shots|}}}
|- valign="top"
| {{{Onlyone|'''[[Health]]''' }}}
| {{{Onlyone|{{{U_health}}} }}}
| {{{Onlyone|'''[[Cost]]''' }}}
| {{{Onlyone|{{{U_cost}}} {{Gold}} }}}
|-
| colspan="5" width=300 | {{{Onlyone|{{{No_U_spec|'''Special:''' {{{U_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