Template:Creature table row: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(resource variable and some code cleaning)
mNo edit summary
 
(78 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<includeonly>|- align=center
<includeonly>|- class='{{sourceToggle|{{{source|}}}|{{{only|}}}}}'
|align=left|[[Image:Creature portrait {{{1}}} small.gif|{{{1}}}|link={{{1}}}]] [[{{{1}}}]]||align=left|{{-}}{{{2}}}||{{{3}}}{{-}}||{{{4}}}{{-}}||{{{5}}}{{-}}||{{{6}}}{{-}}||{{{7}}}{{-}}||{{{8}}}{{-}}||{{{9}}}{{-}}||align=right|{{{10}}}||align=right|{{{11}}} {{gold}}{{-}}||align=left |{{-}}{{{12|}}}</includeonly><noinclude>
|style="text-align:left; border-right:5px solid #{{Blue 3}}; white-space: nowrap;"|{{swh|noicon=|{{Cn|{{{1}}}|image={{{image|{{{1}}}{{{himage|}}}}}}}}{{{crname+|}}}|{{Cn|{{{1}}}|image={{{image|{{{1}}}}}}}}{{{crname+|}}}}}
|<span title="{{{2}}}">[[File:Town portrait {{{2}}} small.gif|link={{{2}}}]]
|data-sort-value="{{{3}}}"|<span title="Level">{{{3}}}{{{level_comment|}}}
|<span title="Attack">{{{4}}}
|<span title="Defense">{{{5}}}
|style="background-color:#{{Blue 4}};"|<span title="Minimum Damage">{{{6}}}
|style="background-color:#{{Blue 4}};"|<span title="Maximum Damage">{{{7}}}
|<span title="Health">{{{8}}}
|<span title="Speed">{{{9}}}
|<span title="Growth">{{{10}}}
|<span title="AI_Value">{{{11}}}
|style="text-align:right;"|{{{12}}} {{gold}}
|style="white-space: nowrap;"|{{{13|}}}{{-}}
|style="text-align:left; border-right:5px solid #{{Blue 3}}"|{{{14|}}}</includeonly><noinclude>


==Code Preview==
== Variables ==
# Creature name
# Town
# Level
# Attack
# Defense
# Minimum damage
# Maximum damage
# Health
# Speed
# Cost ({{gold}})
# Resource ({{mercury}}, {{sulfur}}, {{crystal}} or {{gem}})
# Special
* image
* crname+
* If there is a hota version of the image, add <nowiki>"himage=(HotA)"</nowiki>


{| cellpadding=0 cellspacing=0 border=0 style="background-color:#DDDDFF; border: 1px solid #000000;" class="sortable"
NOTE: Use the 'source' and 'only' parameters for content switching.
|- bgcolor=0000FF  align=center style="height: 25px; color:#FFFFFF;"
 
| width=150 |{{-}}'''Name'''
== Examples ==
| align=left width=100 |{{-}}'''Town'''
{{Creature table}}
| width=30 | {{-}}'''Lvl'''
{{Creature table row|Halfling          |Neutral  |1| 4| 2| 1| 3|   4| 5|15|   75|   40|               |[[Ranged attack|Ranged]] (24 shots), Positive [[Luck]]|only=hidewithhota}}
| width=30 | {{-}}'''Att'''
{{Creature table row|Leprechaun        |Neutral  |2| 8| 5| 3| 5| 15| 5| 9| 208| 100|               |Doubles friendly unit [[Luck]] chance, Casts [[Fortune]]|only=hota}}
| width=30 | {{-}}'''Def'''
| width=30 | {{-}}'''D(-)'''
| width=30 | {{-}}'''D(+)'''
| width=30 | {{-}}'''Hlth'''
| width=30 | {{-}}'''Spd'''
| width=50 class="unsortable" | <!--- column for resource !--->
| {{-}}'''Cost'''
| align=left class="unsortable" width=250 |{{-}}'''Special'''
|- align=center
|align=left|[[Image:Creature portrait Imp small.gif|Imp|link=Imp]] [[Imp]]||align=left|{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}||align=right|10 {{Gem}}||align=right|1100 {{gold}}{{-}}||align=left |{{-}}12
|- align=center
|align=left|[[Image:Creature portrait Imp small.gif|Imp|link=Imp]] [[Imp]]||align=left|{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}||align=right|10 {{Gem}}||align=right|1100 {{gold}}{{-}}||align=left |{{-}}12
|}
|}


[[Category: Table templates|{{PAGENAME}}]]</noinclude>
{{creature table template 'see also'}}
 
[[Category:Table templates|{{PAGENAME}}]]
__NOTOC__</noinclude>

Latest revision as of 18:44, 1 October 2024


Variables[edit | hide | hide all]

  1. Creature name
  2. Town
  3. Level
  4. Attack
  5. Defense
  6. Minimum damage
  7. Maximum damage
  8. Health
  9. Speed
  10. Cost (Gold)
  11. Resource (Mercury, Sulfur, Crystal or Gem)
  12. Special
  • image
  • crname+
  • If there is a hota version of the image, add "himage=(HotA)"

NOTE: Use the 'source' and 'only' parameters for content switching.

Examples[edit | hide]

 Name   Town   Lvl   Att   Def   Dmg-   Dmg+   HP   Spd   Grw   AI Val   Cost   Special 














Halfling Halfling Halfling Halfling 1 4 2 1 3 4 5 15 75 40 Gold   Ranged (24 shots), Positive Luck
Leprechaun Leprechaun Leprechaun Leprechaun 2 8 5 3 5 15 5 9 208 100 Gold   Doubles friendly unit Luck chance, Casts Fortune

Related templates[edit | hide]