Template:H: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(not everybody is hota)
mNo edit summary
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>[[File:Hero_{{{image|{{{1|}}}}}}_small.gif|{{{1}}}|link={{{hero_link|{{{1}}}}}}]] [[{{{hero_link|{{{1}}}}}}|{{{1}}}]]{{{source|}}} {{{0|the [[{{{2|}}}]]}}}{{if||{{{wh|}}}|{{-wh}}|}}</includeonly><noinclude>
<includeonly>{{#switch: {{{1}}} | Random = [[File:Hero_Random_small.gif|link=]] Random Hero | [[File:Hero_{{{image|{{{1|}}}}}}_small.gif|{{{1}}}|link={{{hero_link|{{{1}}}}}}{{{img-style|}}}]] {{{noname|[[{{{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 [[:Category:Hero_portraits|hero image]] and name with a link to it.


'''Variables:'''
'''Variables:'''
Line 6: Line 6:
# Hero class
# Hero class


For example, code
==Examples==
<nowiki>{{H|Mephala|Ranger}}</nowiki>
{| class="wikitable"
gives
! Result
! Code


{{H|Mephala|Ranger}}
|-
| {{H|Mephala|Ranger}}
| <nowiki>{{H|Mephala|Ranger}}</nowiki>


<nowiki>{{h|Mephala|0=}}</nowiki>
|-
gives
| {{h|Mephala|0=}}
| <nowiki>{{h|Mephala|0=}}</nowiki>


{{h|Mephala|0=}}
|-
| {{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>


and code
|-
<nowiki>{{h|Yog|image=Yog (Birth of a Barbarian)|hero_link=Yog (Birth of a Barbarian)|Wizard}}</nowiki>
| {{H|Clancy|noname=}}
gives
| <nowiki>{{H|Clancy|noname=}}</nowiki>


{{h|Yog|image=Yog (Birth of a Barbarian)|hero_link=Yog (Birth of a Barbarian)|Wizard}}
|-
| {{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>
 
|-
| {{H|Random}}
| <nowiki>{{H|Random}}</nowiki>
 
|}


[[Category: Hero templates]]
[[Category: Hero templates]]
[[Category: Table templates|Hero name]]</noinclude>
[[Category: Table templates|Hero name]]</noinclude>

Latest revision as of 13:18, 11 September 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 | hide | hide all]

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}}
Random Hero {{H|Random}}