Template:Creature: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
mNo edit summary
(Remove exist template that would hide missing pictures)
 
(128 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| cellspacing=0 cellpadding=0 style="background-color: #{{Blue 3}}; border: 1px solid; text-align:left; float:{{{float|right}}};"
<includeonly>{| cellspacing=0 cellpadding=0 border=0 style="border:1px solid; border-color:rgba(0,0,0,0); background-color:#{{blue 3}}; width:240px; float:{{{float|right}}}; margin-left: {{{m_left|10px}}}; margin-right: {{{m_right|0px}}};"
| colspan=5 align=center bgcolor=#{{Blue 1}} style="color:white" | {{{Neutral|'''Level {{{lvl}}} creatures of [[{{{Town}}}|<span style="color:#FFF">{{{Town}}}</span>]]''' }}} <br><span style="color:#FFF; font-size:90%; ">''[[Growth|<span style="color:#FFF">Basic growth</span>]]: {{{Growth}}}''</span>
! colspan=2 bgcolor={{blue 1}} style="color:white; height:25px;" | {{{Statistics|Statistics}}}
|-
|-
!           align=center bgcolor={{blue 2}} | {{{Name|{{PAGENAME}}}}}
! bgcolor={{blue 2}} colspan=2 style="color:white;" | {{{Name|{{PAGENAME}}}}}
! colspan=4 align=center bgcolor={{blue 2}} | Stats
|-
|-
| rowspan=5 align=center valign=center style="border:5px solid #{{blue 3}}" | [[Image: Creature {{{Image|{{{Name|{{PAGENAME}}}}}}}}.gif]]
| rowspan=2 valign=center style="border: 5px solid #{{blue 3}}; width: 105px"|
| style="height:19px" | '''[[Primary skill#attack skill|Attack]]'''
 
| {{{Attack}}}
{| cellspacing=0 cellpadding=0 align=center style="border-bottom: 5px solid #{{blue 3}}; background-color:#{{blue 3}};"
| '''[[Speed]]'''
| {{{Image|[[File:Creature {{{Name|{{PAGENAME}}}}}.gif]]}}}
| {{{Speed}}}
|}
 
{| cellspacing=0 cellpadding=0 align=center style="border:1px solid #{{blue 2}}; text-align:center; background-color: #{{Blue 3}}"
! colspan=2 bgcolor={{blue 2}} style="color:white;" | {{-}}Cost per troop{{-}}
|-
| [[File:Resource Gold 20x18.gif]]<br>{{{Cost}}}
| {{{No_res|{{{Res|}}}<br>{{{ResCost|}}} }}}
|}
 
|-
|-
| style="height:19px" | '''[[Primary skill#defense skill|Defense]]'''
|  
| {{{Defense|{{{Defence}}}}}}
 
| '''[[Movement (combat)|Movement]]'''
{| border=0 cellspacing=0 cellpadding=0 style="border:5px solid {{blue 3}}; text-align:left; background-color: #{{Blue 3}}; width:100%"
| {{{Movement|}}}  
| [[Primary skill#Attack skill|Attack]]
| {{{Attack|}}}
|-
|-
| style="height:19px" | '''[[Damage]]'''
| [[Primary skill#defense skill|Defense]]  
| {{{Damage}}}
| {{{Defense|}}}
| {{{No_shots|'''[[Shots]]'''}}}
| {{{Shots|}}}
|- valign="top"
| '''[[Health]]'''
| {{{Health}}}
| '''[[Cost]]'''
| {{{Cost}}} {{Gold}}
|-
|-
| colspan="5" width=300 | {{{No_spec|'''Special:''' {{{Special}}}}}}  
| [[Damage]]
| {{{Damage|}}}
|-
| [[Health]]
| {{{Health|}}}
|-
| [[Speed]]
| {{{Speed|}}}
|-
| Movement
| {{{Movement|Ground}}}
|-
| Size
| {{{Size|1}}}
{{{No_shots|{{!-}}
{{!}} [[Shots]]
{{!}} {{{Shots|''N/A''}}} }}}
|-
| Growth
| {{{Growth|}}}
|-
| [[AI Value]]
| {{{AI_Value|}}}
|}
 
|-
|-
{{{Onlyone|
{{{No_spec|{{!}} colspan=2 align=left {{!}} {{-}}'''Special abilities:'''
{{!}} align=center bgcolor={{blue 2}} {{!}} '''{{{Name|{{PAGENAME}}}}}'''
{{!-}}
{{!}} colspan=4 align=center bgcolor={{blue 2}} {{!}} '''Stats'''
{{!}} colspan=2 style="border: 5px solid #{{blue 3}}; border-top: 0px" {{!}} {{{Special|}}} }}}
{{{Onlyone|{{!-}}
{{!!}} bgcolor={{blue 2}} colspan=2 style="color:white;" {{!}} {{{U_name|}}}
{{!-}} valign=top
{{!}} rowspan=2 style="border: 5px solid #{{blue 3}}; vertical-align: top;" {{!}}
 
{{!T}} cellspacing=0 cellpadding=0 align=center style="border-bottom: 5px solid #{{blue 3}}; background-color:#{{blue 3}};"
{{!}} [[File:Creature {{{U_name|}}}.gif]]
{{T!}}
 
{{!T}} cellspacing=0 cellpadding=0 align=center style="border:1px solid #{{blue 2}}; text-align:center; background-color: #{{Blue 3}}"
{{!!}} colspan=2 bgcolor={{blue 2}} style="color:white;" {{!}} {{-}}Cost per troop{{-}}
{{!-}}
{{!}} [[File:Resource Gold 20x18.gif]]<br>{{{U_cost}}}
{{!}} {{{Res|}}}<br>{{{U_ResCost|}}}
{{T!}}
{{!-}} style="vertical-align: top;"
{{!}} style="vertical-align: top;" {{!}} {{!T}} border=0 cellspacing=0 cellpadding=0 style="border:5px solid {{blue 3}}; text-align:left; background-color: #{{Blue 3}}; width:100%; vertical-align: top;"
{{!}} [[Primary skill#Attack skill|Attack]]
{{!}} {{{U_attack|{{{Attack|}}}}}}
{{!-}}
{{!-}}
{{!}} rowspan=5 align=center valign=center {{!}} [[File:Creature {{{U_image|{{{U_name|}}}}}}.gif]]
{{!}} [[Primary skill#defense skill|Defense]]  
{{!}} '''[[Primary skill#attack skill|Attack]]'''
{{!}} {{{U_defense|{{{Defense|}}}}}}
{{!}} {{{U_attack}}}
{{!}} '''[[Speed]]'''
{{!}} {{{U_speed}}}
{{!-}}
{{!-}}
{{!}} '''[[Primary skill#defense skill|Defense]]'''
{{!}} [[Damage]]  
{{!}} {{{U_defense|{{{U_defence}}}}}}
{{!}} {{{U_damage|{{{Damage|}}}}}}
{{!}} '''[[Movement (combat)|Movement]]'''
{{!}} {{{U_movement|}}}
{{!-}}
{{!-}}
{{!}} '''[[Damage]]'''
{{!}} [[Health]]
{{!}} {{{U_damage}}}
{{!}} {{{U_health|{{{Health|}}}}}}
{{!}} {{{No_shots|'''[[Shots]]'''}}}
{{!}} {{{U_shots|}}}
{{!-}}
{{!-}}
{{!}} '''[[Health]]'''
{{!}} [[Speed]]  
{{!}} {{{U_health}}}
{{!}} {{{U_speed|{{{Speed|}}}}}}
{{!}} '''[[Cost]]'''
{{!}} {{{U_cost}}} {{Gold}}
{{!-}}
{{!-}}
{{!}} colspan="5" width=300 {{!}} {{{No_U_spec|'''Special:''' {{{U_special}}} }}} }}}<!-- ONLYONE PRAMETER ENDING !-->
{{!}} Movement
|}<noinclude>
{{!}} {{{U_movement|{{{Movement|Ground}}}}}}
{{!-}}
{{!}} Size
{{!}} {{{U_size|{{{Size|1}}}}}}
{{{No_ushots|{{!-}}
{{!}} [[Shots]]
{{!}} {{{U_shots|{{{Shots|''N/A''}}}}}} }}}
{{!-}}
{{!}} Growth
{{!}} {{{Growth|}}}
{{!-}}
{{!}} [[AI Value]]
{{!}} {{{U_AI_Value|{{{AI_Value|}}}}}}
{{T!}}


== How to use ==
{{!-}}
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".
{{{No_uspec|{{!}} colspan=2 align=left {{!}} {{-}}'''Special abilities:'''
 
{{!-}}
{| style="background: transparent;"  
{{!}} colspan=2 style="border: 5px solid #{{blue 3}}; border-top: 0px" {{!}} {{{U_special|{{{Special|}}}}}} }}} }}}
| <pre>{{Creature
|}</includeonly><noinclude>
  | Town      =
==Example==
  | lvl        =
{{Creature
| Growth    =  
  | AI_Value = 126
  | Name       =  
  | Name     = Archer
  | Attack     =  
  | Attack   = 6
  | Defense   =  
  | Defense   = 3
  | Damage     =  
  | Speed     = 4
  | Health    =  
  | Growth    = 9
  | Speed      =  
  | Damage    = 2–3
  | Movement  =  
  | Health    = 10
  | Shots     =  
  | Shots     = 12
  | Cost       =  
  | Cost     = 100
  | Special   =
  | Special  = • [[Ranged attack]]
| U_name    =
  | U_AI_Value= 184
| U_attack   =  
  | U_name    = Marksman
  | U_defense  =  
  | U_speed   = '''6'''
  | U_damage  =  
  | U_damage = 2–3 '''(x2)'''
  | U_health   =  
  | U_shots   = '''24'''
  | U_speed    =
  | U_cost   = 150
  | U_movement =  
  | U_special = • [[Ranged attack]]<br>• '''[[Double attack]]'''
  | U_shots   =  
}}
  | U_cost     =  
[[Category: Creature templates]]</noinclude>
  | 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:
<pre>
| Onlyone    = </pre>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 17:44, 12 December 2023

Example[edit]

Statistics
Archer
 Cost per troop 

100

Attack 6
Defense 3
Damage 2–3
Health 10
Speed 4
Movement Ground
Size 1
Shots 12
Growth 9
AI Value 126
 Special abilities:
Ranged attack
Marksman
 Cost per troop 

150

Attack 6
Defense 3
Damage 2–3 (x2)
Health 10
Speed 6
Movement Ground
Size 1
Shots 24
Growth 9
AI Value 184
 Special abilities:
Ranged attack
Double attack