Template:H: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
m (Kapteeni Ruoska moved page Template:Hn to Template:H: just H is enough)
(Remove extra space in template when not showing the hero class.)
 
(19 intermediate revisions by 5 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}}}}}}{{{img-style|}}}]] {{{noname|[[{{{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=====
==Examples==
1=[[Heroes|hero]] name
{| class="wikitable"
! Result
! Code


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


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


[[Image:Hero_Gelu_small.png‎|Gelu|link=Gelu]] [[Gelu]]
|-
| {{h|Yog|image=Yog (Birth of a Barbarian)|hero_link=Yog (Birth of a Barbarian)|Wizard}}
| <nowiki>{{h|Yog|image=Yog (Birth of a Barbarian)|hero_link=Yog (Birth of a Barbarian)|Wizard}}</nowiki>


|-
| {{H|Clancy|noname=}}
| <nowiki>{{H|Clancy|noname=}}</nowiki>
|-
| {{H|Henrietta|noname=}}: Lorem ipsum
| <nowiki>{{H|Henrietta|noname=}}</nowiki>
|-
| {{H|Henrietta|0=}}: Lorem ipsum
| <nowiki>{{H|Henrietta|0=}}</nowiki>
|-
| {{H|Henrietta|Mercenary}}: Lorem ipsum
| <nowiki>{{H|Henrietta|Mercenary}}</nowiki>
|}
[[Category: Hero templates]]
[[Category: Table templates|Hero name]]</noinclude>
[[Category: Table templates|Hero name]]</noinclude>

Latest revision as of 13:40, 26 March 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

Examples[edit]

Result Code
Mephala Mephala the Ranger {{H|Mephala|Ranger}}
Mephala Mephala {{h|Mephala|0=}}
Yog Yog the Wizard {{h|Yog|image=Yog (Birth of a Barbarian)|hero_link=Yog (Birth of a Barbarian)|Wizard}}
Clancy {{H|Clancy|noname=}}
Henrietta : Lorem ipsum {{H|Henrietta|noname=}}
Henrietta Henrietta: Lorem ipsum {{H|Henrietta|0=}}
Henrietta Henrietta the Mercenary: Lorem ipsum {{H|Henrietta|Mercenary}}