Template:H: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
mNo edit summary
(examples added)
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>[[File:Hero_{{{1|}}}_small.gif|{{{1}}}|link={{{1}}}]] [[{{{1}}}]]</includeonly><noinclude>
<includeonly>[[File:Hero_{{{image|{{{1|}}}}}}_small.gif|{{{1}}}|link={{{hero_link|{{{1}}}}}}]] [[{{{hero_link|{{{1}}}}}}|{{{1}}}]]{{{source|}}} {{{0|the [[{{{2|}}}]]}}}</includeonly><noinclude>
'''Hn''' is short of '''H'''ero '''N'''ame.
'''H''' is short of '''H'''ero name. The template is used in lists to hero image and name with a link to it.


==Use==
'''Variables:'''
It's for [[List of heroes|lists]], to show hero image and name with a link to it
# Hero name
# Hero class


=====Variables=====
For example, code
1=[[Heroes|hero]] name
<nowiki>{{H|Mephala|Ranger}}</nowiki>
gives


=====Code=====
{{H|Mephala|Ranger}}
<pre>{{Hn|'Hero name'}}</pre>


==Example==
<nowiki>{{h|Mephala|0=}}</nowiki>
<pre>{{Hn|Gelu}}</pre>
gives
gives:


[[Image:Hero_Gelu_small.png‎|Gelu|link=Gelu]] [[Gelu]]
{{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