Template:Creature: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Trying to get onlyone parameter working)
No edit summary
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| cellspacing=0 cellpadding=0 style="background-color: #{{Blue 3}}; border: 1px solid; width:250px; float:{{{float|right}}};"
{| cellspacing=0 cellpadding=0 border=0 style="border:1px solid; border-color:rgba(0,0,0,0); background-color:#{{blue 3}}; color:darkgoldenrod; width:240px; float:{{{float|right}}}; margin-left: {{{m_left|10px}}}; margin-right: {{{m_right|0px}}};"
! colspan=3 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=3 align=center bgcolor={{blue 2}} | {{{Name|}}} stats
! bgcolor={{blue 2}} colspan=2 | {{{Name|{{PAGENAME}}}}}
|-
|-
| rowspan=7 align=center valign=center style="width: 90px;" | {{{Image|[[File: Creature {{{Name|{{PAGENAME}}}}}.gif]]}}}
| rowspan=2 valign=center style="border: 5px solid #{{blue 3}}; width: 105px"|
 
{| cellspacing=0 cellpadding=0 align=center style="border-bottom: 5px solid #{{blue 3}}; background-color:#{{blue 3}};"
| {{{Image|[[File: Creature {{{Name|{{PAGENAME}}}}}.gif]]}}}
|}
 
{| cellspacing=0 cellpadding=0 align=center style="border:1px solid; text-align:center; background-color: #{{Blue 3}}"
! colspan=2 bgcolor={{blue 2}} | {{-}}Cost per troop{{-}}
|-
| [[File:Resource Gold 20x18.gif]]<br>{{{Cost}}}
| {{{No_res|{{{Res|}}}<br>{{{ResCost|}}} }}}
|}
 
|-
|-
| style="width: 100px;" | [[Primary skill#Attack skill|Attack]]
|  
| {{{Attack}}}
 
{| 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]]
| {{{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
| {{{Movement|Ground}}}  
| {{{Movement|Ground}}}  
|-
|-
| rowspan=3 valign=bottom |
{| 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
|-
| {{Gold}}
| {{{Res|}}}
|-
| {{{Cost}}}
| {{{ResCost|}}}
|}
| Size
| Size
| {{{Size|1}}}
| {{{Size|1}}}
{{{No_shots|{{!-}}
{{!}} [[Shots]]
{{!}} {{{Shots|''N/A''}}} }}}
|-
|-
| [[Shots]]
| Growth
| {{{Shots|''N/A''}}}
| {{{Growth|}}}
|-
|-
| colspan=2 style="font-size:90%" | '''Special:''' {{{Special|''none''}}}
| [[AI Value]]
| {{{AI_Value|}}}
|}
 
|-
|-
{{{Onlyone|
{{{No_spec|{{!}} colspan=2 align=left {{!}} {{-}}'''Special abilities:'''
{{!!}} colspan=3 align=center bgcolor={{blue 2}} {{!}} {{{U_name|}}} stats
{{!-}}
{{!}} rowspan=7 align=center valign=center {{!}} {{{U_image|[[File: Creature {{{U_name|}}}.gif]]}}}
{{!-}}
{{!-}}
{{!}} colspan=2 style="border: 5px solid #{{blue 3}}; border-top: 0px" {{!}} {{{Special|}}} }}}
{{{Onlyone|{{!-}}
{{!!}} bgcolor={{blue 2}} colspan=2 {{!}} {{{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; text-align:center; background-color: #{{Blue 3}}"
{{!!}} colspan=2 bgcolor={{blue 2}} {{!}} {{-}}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]]
{{!}} [[Primary skill#Attack skill|Attack]]
{{!}} {{{U_attack}}}
{{!}} {{{U_attack|{{{Attack|}}}}}}
{{!-}}
{{!-}}
{{!}} [[Primary skill#defense skill|Defense]]  
{{!}} [[Primary skill#defense skill|Defense]]  
{{!}} {{{U_defense}}}
{{!}} {{{U_defense|{{{Defense|}}}}}}
{{!-}}
{{!-}}
{{!}} [[Damage]]  
{{!}} [[Damage]]  
{{!}} {{{U_damage}}}
{{!}} {{{U_damage|{{{Damage|}}}}}}
{{!-}}
{{!-}}
{{!}} [[Health]]
{{!}} [[Health]]
{{!}} {{{U_health}}}
{{!}} {{{U_health|{{{Health|}}}}}}
{{!-}}
{{!-}}
{{!}} [[Speed]]  
{{!}} [[Speed]]  
{{!}} {{{U_speed}}}
{{!}} {{{U_speed|{{{Speed|}}}}}}
{{!-}}
{{!-}}
{{!}} Movement
{{!}} Movement
{{!}} {{{Movement|Ground}}}  
{{!}} {{{U_movement|{{{Movement|Ground}}}}}}
{{!-}}
{{!-}}
{{!}} rowspan=3 valign=bottom {{!}}
{| 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
|-
| {{Gold}}
| {{{Res|}}}
|-
| {{{U_cost}}}
| {{{U_ResCost|}}}
|}
{{!}} Size
{{!}} Size
{{!}} {{{U_size|{{{Size|1}}}}}}
{{!}} {{{U_size|{{{Size|1}}}}}}
{{{No_ushots|{{!-}}
{{!}} [[Shots]]
{{!}} {{{U_shots|{{{Shots|''N/A''}}}}}} }}}
{{!-}}
{{!-}}
{{!}} [[Shots]]
{{!}} Growth
{{!}} {{{U_shots|''N/A''}}}
{{!}} {{{Growth|}}}
{{!-}}
{{!}} [[AI Value]]
{{!}} {{{U_AI_Value|{{{AI_Value|}}}}}}
{{T!}}
 
{{!-}}
{{{No_uspec|{{!}} colspan=2 align=left {{!}} {{-}}'''Special abilities:'''
{{!-}}
{{!-}}
{{!}} colspan=2 style="font-size:90%" {{!}} '''Special:''' {{{U_special|''none''}}} }}}
{{!}} colspan=2 style="border: 5px solid #{{blue 3}}; border-top: 0px" {{!}} {{{U_special|{{{Special|}}}}}} }}} }}}
|}<noinclude>
|}<noinclude>


== How to use ==
[[Category: Misc templates|{{PAGENAME}}]]</noinclude>
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".
 
{| 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:
<pre>
| Onlyone    = </pre>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 17:35, 24 June 2021

Statistics
Creature
File:Creature Creature.gif
 Cost per troop 

{{{Cost}}}

Attack
Defense
Damage
Health
Speed
Movement Ground
Size 1
Shots N/A
Growth
AI Value
 Special abilities:
File:Creature .gif
 Cost per troop 

{{{U_cost}}}

Attack
Defense
Damage
Health
Speed
Movement Ground
Size 1
Shots N/A
Growth
AI Value
 Special abilities: