Template:H2: Difference between revisions
Jump to navigation
Jump to search
m GIF to PNG class images |
m Remove need for himage= parameter. The pictures will now automatically update if the hota switch is on and the image exists. |
||
| Line 1: | Line 1: | ||
<includeonly>[[File:{{{2}}}_portrait.png|{{{2}}}|link={{{2}}}]]{{-}}{{swh|noicon=|[[File:Hero_{{{image|{{{1|}}}}}} {{{ | <includeonly>[[File:{{{2}}}_portrait.png|{{{2}}}|link={{{2}}}]]{{-}}{{swh|noicon=|{{exist|File:Hero_{{{image|{{{1|}}}}}} (HotA)_small.png|[[File:Hero_{{{image|{{{1|}}}}}} (HotA)_small.png|{{{1}}}|link={{{hero_link|{{{1}}}}}}]]|[[File:Hero_{{{image|{{{1|}}}}}}_small.png|{{{1}}}|link={{{hero_link|{{{1}}}}}}]]}}|[[File:Hero_{{{image|{{{1|}}}}}}_small.png|{{{1}}}|link={{{hero_link|{{{1}}}}}}]]}} [[{{{hero_link|{{{1}}}}}}|{{{name|{{{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 9: | Line 9: | ||
* image= (show a picture that does not match the hero's name) | * image= (show a picture that does not match the hero's name) | ||
* name= (display a different name) | * name= (display a different name) | ||
== Examples == | == Examples == | ||
| Line 21: | Line 20: | ||
{{h2|Yog|image=Yog (Wizard)|hero_link=Yog (Wizard)|Wizard}} | {{h2|Yog|image=Yog (Wizard)|hero_link=Yog (Wizard)|Wizard}} | ||
<nowiki>{{h2|Vey|Barbarian|0= | <nowiki>{{h2|Vey|Barbarian|0=}}</nowiki> | ||
{{h2|Vey|Barbarian|0= | {{h2|Vey|Barbarian|0=}} | ||
<nowiki>{{H2|Bidley|Captain|name=Jack Sparrow}}</nowiki> | <nowiki>{{H2|Bidley|Captain|name=Jack Sparrow}}</nowiki> | ||
Latest revision as of 23:50, 9 April 2025
H is short of Hero name. The template is used in lists to hero image and name with a link to it.
Variables:
- Hero name
- Hero class
- 0= (don't show the class)
- hero_link= (link to a hero page that doesn't match the hero's name)
- image= (show a picture that does not match the hero's name)
- name= (display a different name)
Examples[edit | hide | hide all]
{{H2|Mephala|Ranger}}
{{H2|Gem|Druid|0=}}
{{h2|Yog|image=Yog (Birth of a Barbarian)|hero_link=Yog (Birth of a Barbarian)|Wizard}}
{{h2|Vey|Barbarian|0=}}
{{H2|Bidley|Captain|name=Jack Sparrow}}
![]()
Jack Sparrow the Captain