Template:H: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
mNo edit summary
(examples added)
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>[[File:Hero_{{{1|}}}_small.gif|{{{1}}}|link={{{1}}}]] [[{{{1}}}]] the [[{{{2|}}}]]</includeonly><noinclude>
<includeonly>[[File:Hero_{{{image|{{{1|}}}}}}_small.gif|{{{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 <nowiki>{{H|Mephala|Ranger}}</nowiki> gives
For example, code
<nowiki>{{H|Mephala|Ranger}}</nowiki>
gives


{{H|Mephala|Ranger}}
{{H|Mephala|Ranger}}


<nowiki>{{h|Mephala|0=}}</nowiki>
gives
{{h|Mephala|0=}}
and code
<nowiki>{{h|Yog|image=Yog Wizard|hero_link=Yog (Birth of a Barbarian)|Wizard}}</nowiki>
gives
{{h|Yog|image=Yog Wizard|hero_link=Yog (Birth of a Barbarian)|Wizard}}
[[Category: Hero templates]]
[[Category: Table templates|Hero name]]</noinclude>
[[Category: Table templates|Hero name]]</noinclude>

Revision as of 14:35, 21 September 2018

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

{{H|Mephala|Ranger}}

gives

Mephala Mephala the Ranger

{{h|Mephala|0=}}

gives

Mephala Mephala

and code

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

gives

Yog Yog the Wizard