Template:H: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
m (Kapteeni Ruoska moved page Template:Hn to Template:H: just H is enough)
mNo edit summary
Line 1: Line 1:
<includeonly>[[File:Hero_{{{1|}}}_small.gif|{{{1}}}|link={{{1}}}]] [[{{{1}}}]]</includeonly><noinclude>
<includeonly>[[File:Hero_{{{1|}}}_small.gif|{{{1}}}|link={{{1}}}]] [[{{{1}}}]]</includeonly><noinclude>
'''Hn''' is short of '''H'''ero '''N'''ame.
'''H''' is short of '''H'''ero name. The template is used in lists to hero image and name with a link to it.


==Use==
'''Variables:'''
It's for [[List of heroes|lists]], to show hero image and name with a link to it
# Hero name


=====Variables=====
For example, code <nowiki>{{H|Mephala}}</nowiki> gives
1=[[Heroes|hero]] name


=====Code=====
{{H|Mephala}}
<pre>{{Hn|'Hero name'}}</pre>
 
==Example==
<pre>{{Hn|Gelu}}</pre>
gives:
 
[[Image:Hero_Gelu_small.png‎|Gelu|link=Gelu]] [[Gelu]]


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

Revision as of 14:47, 30 January 2017

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

For example, code {{H|Mephala}} gives

Mephala Mephala