Template:Hcs table row: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
(Update template to work with 1-3 creatures)
Line 2: Line 2:
<includeonly>|- class='{{sourceToggle|{{{source}}}|{{{only}}}}}' style="text-align:center;"
<includeonly>|- class='{{sourceToggle|{{{source}}}|{{{only}}}}}' style="text-align:center;"
| style="background-color:#{{Green 1}}; color:white;"| '''{{{1}}}'''
| style="background-color:#{{Green 1}}; color:white;"| '''{{{1}}}'''
|{{#if:{{{a|}}}|style="color:grey;"{{!}}|}} +{{#if:{{{a|}}}||'''}}{{{2}}}{{#if:{{{a|}}}||'''}}
| style="{{#switch:{{{a|}}} | =font-weight:bold;| color:grey;}}" | +{{{2}}}
|{{#if:{{{b|}}}|style="color:grey;"{{!}}|}} +{{#if:{{{b|}}}||'''}}{{{3}}}{{#if:{{{b|}}}||'''}}
| style="{{#switch:{{{b|}}} | =font-weight:bold;| color:grey;}}" | +{{{3}}}
|{{#if:{{{c|}}}|style="color:grey;"{{!}}|}} +{{#if:{{{c|}}}||'''}}{{{4}}}{{#if:{{{c|}}}||'''}}
| style="{{#switch: {{{4|}}}| | = display: none;}}{{#switch:{{{c|}}} | =font-weight:bold;| color:grey;}}" | +{{{4}}}
|{{#if:{{{d|}}}|style="color:grey;"{{!}}|}} +{{#if:{{{d|}}}||<span style="font-weight:bold;">}}{{{5}}}{{#if:{{{d|}}}||</span>}}</includeonly><noinclude>
| style="{{#switch: {{{5|}}}| | = display: none;}}{{#switch:{{{d|}}} | =font-weight:bold;| color:grey;}}" | +{{{5}}}
| style="{{#switch: {{{6|}}}| | = display: none;}}{{#switch:{{{e|}}} | =font-weight:bold;| color:grey;}}" | +{{{6}}}
| style="{{#switch: {{{7|}}}| | = display: none;}}{{#switch:{{{f|}}} | =font-weight:bold;| color:grey;}}" | +{{{7}}}</includeonly><noinclude>


===== Variables:=====
===== Variables:=====
# level
# level
# creature attack
# creature attack
# creature defense
# creature defense
# upg. creature attack
# upg. creature attack (if needed)
# upg. creature defense
# upg. creature defense (if needed)
# 3rd creature attack (if needed)
# 3rd creature defense (if needed)
* a= set to '1' if to turn base creature attack gray (if it did not improve this level).
* b= same, but for base creature defense.
* c= same, but for upg. creature attack.
* d= same, but for upg. creature defense.
* c= same, but for 3rd creature attack.
* d= same, but for 3rd creature defense.
 
== Examples ==
1)
{{hcs table
| hero= Piquedram
| cr= Azure Dragon
| ucr= Dwarf
| batt= 22
| bdef= 33
| ubatt= 2
| ubdef= 3
}}
{{hcs_table_row|3 |1 |1 |1 |1 |a=1 |b=1}}
{{hcs_table_row|9 |2 |2 |2 |2 |c=1 |d=1}}
{{hcs_table_row|15 |2 |2 |3 |3}}
|}
</div>
{{clear|left}}
2)
{{hcs table
| hero= Jeremy
| cr= Cannon
| batt= 5
| bdef= 6
}}
{{hcs_table_row|3 |1 |1|a=1 |b=1}}
{{hcs_table_row|9 |2 |2}}
{{hcs_table_row|15 |2 |2}}
|}
</div>
{{clear|left}}
3)
{{hcs table
| hero= Anabel
| cr= Pirate
| ucr= Corsair
| 3cr= Sea Dog
| batt= 8
| bdef= 6
| ubatt= 10
| ubdef= 8
| 3batt= 12
| 3bdef= 11
}}
{{hcs_table_row|3 |1 |1 |1 |1 |1 |1 |a=1 |b=1}}
{{hcs_table_row|9 |2 |2 |2 |2 |3 |4 |c=1 |d=1}}
{{hcs_table_row|15 |2 |2 |3 |3 |5 |6 |e=1 |f=1}}
|}
</div>
{{clear|left}}
 


{{hcs templates 'see also'}}
{{hcs templates 'see also'}}


[[Category:Table templates]]</noinclude>
[[Category:Table templates]]</noinclude>

Revision as of 14:03, 9 January 2025

Hero creature specialty table row

Variables:
  1. level
  2. creature attack
  3. creature defense
  4. upg. creature attack (if needed)
  5. upg. creature defense (if needed)
  6. 3rd creature attack (if needed)
  7. 3rd creature defense (if needed)
  • a= set to '1' if to turn base creature attack gray (if it did not improve this level).
  • b= same, but for base creature defense.
  • c= same, but for upg. creature attack.
  • d= same, but for upg. creature defense.
  • c= same, but for 3rd creature attack.
  • d= same, but for 3rd creature defense.

Examples

1)

Show Creature Specialty Table

2)

Show Cannon Specialty Table

3)

Show Creature Specialty Table


Related templates