Template:H: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
(add himage= (set to "(HotA)" to show the hota image based on the content switch.)
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}} | Random = [[File:Hero_Random_small.png|link=]] Random Hero | [[File:Hero_{{{image|{{{1|}}}}}}_small.png|{{{1}}}|link={{{hero_link|{{{1}}}}}}{{{img-style|}}}]] {{{noname|[[{{{hero_link|{{{1}}}}}}|{{{1}}}]]{{{source|}}}{{{0| the [[{{{2|}}}]]}}}}}}}}</includeonly><noinclude>
<includeonly>{{#switch: {{{1}}} | Random = [[File:Hero_Random_small.png|link=]] Random Hero | {{swh|noicon=|[[File:Hero_{{{image|{{{1|}}}}}} {{{himage|}}}_small.png|{{{1}}}|link={{{hero_link|{{{1}}}}}}{{{img-style|}}}]]|[[File:Hero_{{{image|{{{1|}}}}}}_small.png|{{{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 [[:Category:Hero_portraits|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:'''
# Hero name
# Hero name (can use "Random")
# Hero class
# Hero class
* 0= (don't show the class)
* hero_link= (link to a hero page that doesn't match the hero's name)
* noname= (only show the picture)
* 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==
==Examples==
Line 18: Line 23:
| {{h|Mephala|0=}}
| {{h|Mephala|0=}}
| <nowiki>{{h|Mephala|0=}}</nowiki>
| <nowiki>{{h|Mephala|0=}}</nowiki>
|-
| {{h|Vey|0=|himage=(HotA)}}
| <nowiki>{{h|Vey|0=(HotA)}}</nowiki>


|-
|-

Revision as of 18:16, 11 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 (can use "Random")
  2. Hero class
  • 0= (don't show the class)
  • hero_link= (link to a hero page that doesn't match the hero's name)
  • noname= (only show the picture)
  • 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

Result Code
MephalaMephala Mephala the Ranger {{H|Mephala|Ranger}}
MephalaMephala Mephala {{h|Mephala|0=}}
VeyVey Vey {{h|Vey|0=(HotA)}}
YogYog Yog the Wizard {{h|Yog|image=Yog (Birth of a Barbarian)|hero_link=Yog (Birth of a Barbarian)|Wizard}}
ClancyClancy {{H|Clancy|noname=}}
HenriettaHenrietta: Lorem ipsum {{H|Henrietta|noname=}}
HenriettaHenrietta Henrietta: Lorem ipsum {{H|Henrietta|0=}}
HenriettaHenrietta Henrietta the Mercenary: Lorem ipsum {{H|Henrietta|Mercenary}}
Random Hero {{H|Random}}