Template:H2: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>[[File:{{{2}}}_portrait.gif|{{{2}}}|link={{{2}}}]]{{-}}[[File:Hero_{{{image|{{{1|}}}}}}_small.gif|{{{1}}}|link={{{hero_link|{{{1}}}}}}]] [[{{{hero_link|{{{1}}}}}}|{{{1}}}]]{{{source|}}} {{{0|the [[{{{2|}}}]]}}}</includeonly><noinclude>
<includeonly>[[File:{{{2}}}_portrait.gif|{{{2}}}|link={{{2}}}]]{{-}}[[File:Hero_{{{image|{{{1|}}}}}}_small.png|{{{1}}}|link={{{hero_link|{{{1}}}}}}]] [[{{{hero_link|{{{1}}}}}}|{{{1}}}]]{{{source|}}} {{{0|the [[{{{2|}}}]]}}}</includeonly><noinclude>
'''H''' is short of '''H'''ero name. The template is used in lists to hero image and name with a link to it.
'''H''' is short of '''H'''ero name. The template is used in lists to hero image and name with a link to it.


Line 18: Line 18:


and code
and code
  <nowiki>{{h2|Yog|image=Yog Wizard|hero_link=Yog (Birth of a Barbarian)|Wizard}}</nowiki>
  <nowiki>{{h2|Yog|image=Yog (Birth of a Barbarian)|hero_link=Yog (Birth of a Barbarian)|Wizard}}</nowiki>
gives
gives


{{h2|Yog|image=Yog Wizard|hero_link=Yog (Birth of a Barbarian)|Wizard}}
{{h2|Yog|image=Yog (Wizard)|hero_link=Yog (Wizard)|Wizard}}


==See also:==
==See also:==

Latest revision as of 20:59, 2 October 2024

H is short of Hero name. The template is used in lists to hero image and name with a link to it.

Variables:

  1. Hero name
  2. Hero class

For example, code

{{H2|Mephala|Ranger}}

gives

Ranger Mephala Mephala the Ranger

{{H2|Gem|Druid|0=}}

gives

Druid Gem Gem

and code

{{h2|Yog|image=Yog (Birth of a Barbarian)|hero_link=Yog (Birth of a Barbarian)|Wizard}}

gives

Wizard Yog Yog the Wizard

See also:[edit | hide | hide all]

Template:H