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)
 
(73 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| cellspacing=0 cellpadding=0 style="background-color: #{{Blue 3}}; border: 1px solid; width:350px; 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; height:25px;" | {{{Creature|{{PAGENAME}}}}} ({{{Growth|}}})
! colspan=2 bgcolor={{blue 1}} style="color:white; height:25px;" | {{{Statistics|Statistics}}}
|-
|-
! colspan=9 align=center bgcolor={{blue 2}} | {{{Name|}}} stats
! bgcolor={{blue 2}} colspan=2 style="color:white;" | {{{Name|{{PAGENAME}}}}}
|-
|-
| rowspan=10 align=center valign=center style="border:opx solid #{{blue 3}}" | {{{Image|[[File: Creature {{{Name|{{PAGENAME}}}}}.gif]]}}}<br>
| rowspan=2 valign=center style="border: 5px solid #{{blue 3}}; width: 105px"|
{| cellspacing=0 cellpadding=0 style="background-color:#{{blue 3}}; text-align:center; width:100%"
 
! colspan=2 bgcolor={{blue 2}} style="font-size: 90%" | Cost per troop
{| cellspacing=0 cellpadding=0 align=center style="border-bottom: 5px solid #{{blue 3}}; background-color:#{{blue 3}};"
|-
| {{{Image|[[File:Creature {{{Name|{{PAGENAME}}}}}.gif]]}}}
| {{Gold}}
|}
| {{{Res|}}}
 
|-
{| cellspacing=0 cellpadding=0 align=center style="border:1px solid #{{blue 2}}; text-align:center; background-color: #{{Blue 3}}"
| {{{Cost}}}
! colspan=2 bgcolor={{blue 2}} style="color:white;" | {{-}}Cost per troop{{-}}
| {{{ResCost|}}}
|-  
| [[File:Resource Gold 20x18.gif]]<br>{{{Cost}}}
| {{{No_res|{{{Res|}}}<br>{{{ResCost|}}} }}}
|}
|}
|-
|-
|
{| border=0 cellspacing=0 cellpadding=0 style="border:5px solid {{blue 3}}; text-align:left; background-color: #{{Blue 3}}; width:100%"
| [[Primary skill#Attack skill|Attack]]
| [[Primary skill#Attack skill|Attack]]
| {{{Attack}}}
| {{{Attack|}}}
|-
|-
| [[Primary skill#defense skill|Defense]]  
| [[Primary skill#defense skill|Defense]]  
| {{{Defense}}}
| {{{Defense|}}}
|-
|-
| [[Damage]]  
| [[Damage]]  
| {{{Damage}}}
| {{{Damage|}}}
|-
|-
| [[Health]]
| [[Health]]
| {{{Health}}}
| {{{Health|}}}
|-
|-
| [[Speed]]  
| [[Speed]]  
| {{{Speed}}}
| {{{Speed|}}}
|-
|-
| Movement
| Movement
Line 35: Line 41:
| Size
| Size
| {{{Size|1}}}
| {{{Size|1}}}
{{{No_shots|{{!-}}
{{!}} [[Shots]]
{{!}} {{{Shots|''N/A''}}} }}}
|-
|-
| {{{No_shots|[[Shots]]
| Growth
{{!}} {{{Shots|}}} }}}
| {{{Growth|}}}
|-
|-
| colspan=5 | {{{No_spec|Special: {{{Special|}}} }}}
| [[AI Value]]
|-
| {{{AI_Value|}}}
! colspan=9 align=center bgcolor={{blue 2}} | {{{U_name|}}} stats
|-
| rowspan=10 align=center valign=center style="border:opx solid #{{blue 3}}" | {{{Image|[[File: Creature {{{U_name|{{PAGENAME}}}}}.gif]]}}}<br>
{| cellspacing=0 cellpadding=0 style="background-color:#{{blue 3}}; text-align:center; width:100%"
! colspan=2 bgcolor={{blue 2}} style="font-size: 90%" | Cost per troop
|-
| {{G}}
| {{{Res|}}}
|-
| {{{U_cost}}}
| {{{U_ResCost|}}}
|}
|}
|-
|-
| [[Primary skill#Attack skill|Attack]]
{{{No_spec|{{!}} colspan=2 align=left {{!}} {{-}}'''Special abilities:'''
| {{{U_attack}}}
{{!-}}
|-
{{!}} colspan=2 style="border: 5px solid #{{blue 3}}; border-top: 0px" {{!}} {{{Special|}}} }}}
| [[Primary skill#defense skill|Defense]]
{{{Onlyone|{{!-}}
| {{{U_defense}}}
{{!!}} bgcolor={{blue 2}} colspan=2 style="color:white;" {{!}} {{{U_name|}}}
|-
{{!-}} valign=top
| [[Damage]]
{{!}} rowspan=2 style="border: 5px solid #{{blue 3}}; vertical-align: top;" {{!}}
| {{{U_damage}}}
|-
| [[Health]]
| {{{U_health}}}
|-
| [[Speed]]
| {{{U_speed}}}
|-
| Movement
| {{{Movement|Ground}}}
|-
| Size
| {{{U_Size|{{{Size|1}}}}}}
|-
| {{{No_U_shots|[[Shots]]
{{!}} {{{U_shots|}}} }}}
|-
| {{{No_U_spec| colspan=5 {{!}} Special: {{{U_special|}}} }}}
|}<noinclude>


== How to use ==
{{!T}} cellspacing=0 cellpadding=0 align=center style="border-bottom: 5px solid #{{blue 3}}; background-color:#{{blue 3}};"
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".
{{!}} [[File:Creature {{{U_name|}}}.gif]]
 
{{T!}}
{| style="background: transparent;"  
| <pre>{{Creature
| Town      =
| lvl        =
| 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:
{{!T}} cellspacing=0 cellpadding=0 align=center style="border:1px solid #{{blue 2}}; text-align:center; background-color: #{{Blue 3}}"
<pre>
{{!!}} colspan=2 bgcolor={{blue 2}} style="color:white;" {{!}} {{-}}Cost per troop{{-}}
| Onlyone    = </pre>
{{!-}}
{{!}} [[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|}}}}}}
{{!-}}
{{!}} [[Primary skill#defense skill|Defense]]
{{!}} {{{U_defense|{{{Defense|}}}}}}
{{!-}}
{{!}} [[Damage]]
{{!}} {{{U_damage|{{{Damage|}}}}}}
{{!-}}
{{!}} [[Health]]
{{!}} {{{U_health|{{{Health|}}}}}}
{{!-}}
{{!}} [[Speed]]
{{!}} {{{U_speed|{{{Speed|}}}}}}
{{!-}}
{{!}} Movement
{{!}} {{{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!}}


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