Template:H: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Fix Random hero linking to a random page) |
||
Line 1: | Line 1: | ||
<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> | <includeonly>{{#switch: {{{1}}} | Random = [[File:Hero_Random_small.gif]] 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 [[: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. | ||
Line 40: | Line 40: | ||
|- | |- | ||
| {{H|Random | | {{H|Random}} | ||
| <nowiki>{{H|Random | | <nowiki>{{H|Random}}</nowiki> | ||
|} | |} |
Revision as of 13:17, 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:
- Hero name
- Hero class
Examples
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}} |
File:Hero Random small.gif Random Hero | {{H|Random}} |