Template:Creature table row: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(removed "town", let the redirect handle it, and this way we can have empty for neutral creatuers)
m (add example)
(50 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<includeonly>|-align=center
<includeonly>|- class='{{sourceToggle|{{{source|}}}|{{{only|}}}}}'
|align=left|{{Cn|{{{1}}}}}||align=left|[[{{{2|}}}]]||{{{3}}}||{{{4}}}||{{{5}}}||{{{6}}}||{{{7}}}||{{{8}}}||{{{9}}}||align=right|{{{10}}} {{gold}}||{{{11|}}}||align=left|{{-}}{{{12|}}}</includeonly><noinclude>
|style="text-align:left; border-right:5px solid #{{Blue 3}}; white-space: nowrap;"|{{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:#d8d8eb;"|<span title="Minimum Damage">{{{6}}}||style="background-color:#d8d8eb;"|<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>
 


== Variables ==
== Variables ==
# Creature Name
# Creature name
# Town
# Town
# Level
# Level
Line 16: Line 15:
# Resource ({{mercury}}, {{sulfur}}, {{crystal}} or {{gem}})
# Resource ({{mercury}}, {{sulfur}}, {{crystal}} or {{gem}})
# Special
# Special
: image
: crname+


== Use ==
NOTE: Use the 'source' and 'only' parameters for content switching.
<pre>{{Creaturetable}}
{{Creaturetablerow|'name'|'town'|'lvl'|'att'|'def'|'min'|'max'|'hp'|'spd'|'cost'|'res'|'spec'}}
|}</pre>
 


== Code preview ==
== Examples ==
{{Creaturetable}}
{{Creature table}}
|- align=center
{{Creature table row|Halfling          |Neutral  |1| 4| 2| 1| 3|   4| 5|15|   75|   40|               |[[Ranged attack|Ranged]] (24 shots), Positive [[Luck]]|only=hidewithhota}}
| align=left |{{Cn|Imp}}|| align=left |{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}|| align=right |1000 {{gold}}{{-}}|| align=right | || align=left |{{-}}12 Meh Meh
{{Creature table row|Leprechaun        |Neutral  |2| 8| 5| 3| 5| 15| 5| 9| 208| 100|               |Doubles friendly unit [[Luck]] chance, Casts [[Fortune]]|only=hota}}
|- align=center
| align=left |{{Cn|Imp}}|| align=left |{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}|| align=right |1000 {{gold}}{{-}}|| align=right | || align=left |{{-}}12 Meh Meh
|- align=center
| align=left |{{Cn|Imp}}|| align=left |{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}|| align=right |1000 {{gold}}{{-}}|| align=right |11 {{Mercury}}|| align=left |{{-}}12 Meh Meh
|- align=center
| align=left |{{Cn|Imp}}|| align=left |{{-}}Meh||3{{-}}||4{{-}}||5{{-}}||6{{-}}||7{{-}}||8{{-}}||9{{-}}|| align=right |1000 {{gold}}{{-}}|| align=right |11 {{sulfur}}|| align=left |{{-}}12 Meh Meh
|}
|}


{{creature table template 'see also'}}


== See also ==
[[Category:Table templates|{{PAGENAME}}]]
[[:Template:Creaturetable]]
 
 
[[Category: Table templates|{{PAGENAME}}]]
__NOTOC__</noinclude>
__NOTOC__</noinclude>

Revision as of 18:38, 24 September 2024


Variables

  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+

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

Examples

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














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

Related templates