Template:Hero table row: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Description; some code cleaning)
Line 1: Line 1:
<includeonly>|-
| {{Hn|{{{1}}}}}||{{{2}}}||[[Image:Specialty_{{{3}}}_small.png]]||{{-}}{{{3}}}||[[Image:{{{4}}}_small.png]]||{{-}}[[{{{4}}}]]||{{{6|[[Image:{{{5}}}_small.png]]}}}||{{-}}{{{6|[[{{{5}}}]]}}}</includeonly><noinclude>
== Variables ==
# Hero name
# Class
# Specialty
# Skill 1
# Skill 2
# If empty Skill 2
== Use ==
<pre>{{Herotable}}
{{Herotablerow|'name'|'class'|'specialty'|'skill 1'|'skill 2'}}
|}</pre>
== Code preview ==
{| cellpadding=0 cellspacing=0 border=0 style="width:660px; background-color:#AEA; border: 1px solid #000;" class="sortable"
|- bgcolor=#262 style="height: 25px; color: #DFD"
| style="width: 99px; padding-left: 45px;" | '''Name'''
| style="width: 82px;"                    | '''Class'''
| style="width: 30px;" class="unsortable"  | <!--- Small specialty picture !--->
| style="width: 93px;"                    | '''Specialty'''
| style="width: 26px;" class="unsortable"  | <!--- First small secondary skill picture !--->
| style="width: 139px;"                    | '''Skill 1'''
| style="width: 26px;" class="unsortable"  | <!--- Second small secondary skill picture !--->
|                                            '''Skill 2''' <!--- Second secondary skill !--->
|-
|-
| [[Image:Hero {{{1}}} small.png]] ||&nbsp;[[{{{1}}}]]&nbsp;||&nbsp;{{{2}}}&nbsp;||[[Image:Specialty {{{3}}} small.png]]||&nbsp;{{{3}}}&nbsp;||[[Image: {{{4}}} small.png]]||&nbsp;[[{{{4}}}]]&nbsp;||{{{6|[[Image: {{{5}}} small.png]]}}}||&nbsp;{{{6|[[{{{5}}}]]}}}&nbsp;<noinclude>
| {{Hn|General Kendal}}
| Necromancer
| [[Image:Specialty Meteor shower small.png]]
| &nbsp;Meteor shower
| [[Image:Advanced necromancy small.png]]
| &nbsp;Advanced necromancy
| [[Image:Advanced scouting small.png]]
| &nbsp;Advanced scouting
|}
 


[[Category: Table templates|{{PAGENAME}}]]</noinclude>
[[Category: Table templates|{{PAGENAME}}]]</noinclude>

Revision as of 11:17, 24 March 2014


Variables

  1. Hero name
  2. Class
  3. Specialty
  4. Skill 1
  5. Skill 2
  6. If empty Skill 2


Use

{{Herotable}}
{{Herotablerow|'name'|'class'|'specialty'|'skill 1'|'skill 2'}}
|}


Code preview

Name Class Specialty Skill 1 Skill 2
General Kendal General Kendal the [[]] Necromancer File:Specialty Meteor shower small.png  Meteor shower File:Advanced necromancy small.png  Advanced necromancy File:Advanced scouting small.png  Advanced scouting