Template:H2: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
(add himage param)
Line 1: Line 1:
<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>
<includeonly>[[File:{{{2}}}_portrait.gif|{{{2}}}|link={{{2}}}]]{{-}}{{swh|noicon=|[[File:Hero_{{{image|{{{1|}}}}}} {{{himage|}}}_small.png|{{{1}}}|link={{{hero_link|{{{1}}}}}}]]|[[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 6: Line 6:
# Hero class
# Hero class


For example, code
'''Variables:'''
# Hero name
# Hero class
* 0= (don't show the class)
* hero_link= (link to a hero page that doesn't match the hero's name)
* image= (show a picture that does not match the hero's name)
* himage= (set to (HotA) if there is a hota version of the image)
 
== Examples ==
  <nowiki>{{H2|Mephala|Ranger}}</nowiki>
  <nowiki>{{H2|Mephala|Ranger}}</nowiki>
gives
{{H2|Mephala|Ranger}}
{{H2|Mephala|Ranger}}


  <nowiki>{{H2|Gem|Druid|0=}}</nowiki>
  <nowiki>{{H2|Gem|Druid|0=}}</nowiki>
gives
{{H2|Gem|Druid|0=}}
{{H2|Gem|Druid|0=}}


and code
  <nowiki>{{h2|Yog|image=Yog (Birth of a Barbarian)|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
{{h2|Yog|image=Yog (Wizard)|hero_link=Yog (Wizard)|Wizard}}


{{h2|Yog|image=Yog (Wizard)|hero_link=Yog (Wizard)|Wizard}}
<nowiki>{{h2|Vey|Barbarian|0=|himage=(HotA)}}</nowiki>
{{h2|Vey|Barbarian|0=|himage=(HotA)}}


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

Revision as of 17:55, 23 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

Variables:

  1. Hero name
  2. Hero class
  • 0= (don't show the class)
  • hero_link= (link to a hero page that doesn't match the hero's name)
  • image= (show a picture that does not match the hero's name)
  • himage= (set to (HotA) if there is a hota version of the image)

Examples

{{H2|Mephala|Ranger}}

Ranger MephalaMephala Mephala the Ranger

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

Druid GemGem Gem

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

Wizard YogYog Yog the Wizard

{{h2|Vey|Barbarian|0=|himage=(HotA)}}

Barbarian VeyVey Vey

See also:

Template:H