Template:H: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(16 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[[File:Hero_{{{image|{{{1|}}}}}}_small. | <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 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== | |||
{| class="wikitable" | |||
! Result | |||
! Code | |||
{{H|Mephala|Ranger}} | |- | ||
| {{H|Mephala|Ranger}} | |||
| <nowiki>{{H|Mephala|Ranger}}</nowiki> | |||
|- | |||
| {{h|Mephala|0=}} | |||
| <nowiki>{{h|Mephala|0=}}</nowiki> | |||
|- | |||
| {{h|Vey|0=|himage=(HotA)}} | |||
| <nowiki>{{h|Vey|0=|himage=(HotA)}}</nowiki> | |||
|- | |||
| {{h|Yog|image=Yog (Wizard)|hero_link=Yog (Wizard)|Wizard}} | |||
| <nowiki>{{h|Yog|image=Yog (Wizard)|hero_link=Yog (Wizard)|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> | |||
|- | |||
| {{H|Random}} | |||
| <nowiki>{{H|Random}}</nowiki> | |||
|} | |||
[[Category: Hero templates]] | |||
[[Category: Table templates|Hero name]]</noinclude> | [[Category: Table templates|Hero name]]</noinclude> |
Latest revision as of 02:56, 12 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:
- Hero name (can use "Random")
- 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[edit | hide | hide all]
Result | Code |
---|---|
Mephala the Ranger | {{H|Mephala|Ranger}} |
Mephala | {{h|Mephala|0=}} |
Vey | {{h|Vey|0=|himage=(HotA)}} |
Yog the Wizard | {{h|Yog|image=Yog (Wizard)|hero_link=Yog (Wizard)|Wizard}} |
{{H|Clancy|noname=}} | |
: Lorem ipsum | {{H|Henrietta|noname=}} |
Henrietta: Lorem ipsum | {{H|Henrietta|0=}} |
Henrietta the Mercenary: Lorem ipsum | {{H|Henrietta|Mercenary}} |
Random Hero | {{H|Random}} |