User:ShushMaster/Test1: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>[[File: Creature portrait {{{image|{{{1}}}}}} small.gif|{{{1}}}|link={{{2|{{{1}}}}}}]]{{-}}{{{noname|[[{{{2|{{{1}}}}}}|{{{name|{{{1}}}}}}]]}}}</includeonly><noinclude>
{| border cellspacing=2 style="text-align:center;"
'''test1''' is short of creature name.
! Town
 
! Dwelling
== Use ==
! Unit
The template is used to show a creature's image and a name, both leading to the creature article.
! Lvl
The variables for the template are:
! Grw
# = Creature name
! Cost
# = Link (if needed)
!
*noname=  for a creature portrait without text
! Total Cost
*name=   for a custom naming
! Visiting Scheme
 
|-
Writing code
| [[File:Adventure Map Castle fort.gif|120px|Castle|link=Castle]] || [[File:Barracks-dwelling.gif|Barracks|link=Barracks]] || [[File:Swordsman portrait.gif|Swordsman|link=Swordsman]]<br>Swordsman|| 4|| 4|| 300 {{G}}|| || 1200 {{G}}|| [[File:Barracks-dwelling (vs).png|Barracks|link=Barracks]]
<pre>{{test1|'creature name'}}</pre>
|}
 
for example
<pre>{{test1|Rogue}}</pre>
 
will give<br><br>
{{test1|Rogue}}
 
 
and<br>
 
<pre>{{test1|Rogue|noname=}}{{test1|Halfling|name=Rogues and Halflings}}</pre>
 
will give<br>
{{test1|Rogue|noname=}}{{test1|Halfling|name=Rogues and Halflings}}
 
[[Category: Table templates|Creature name]]
__NOTOC__</noinclude>

Revision as of 21:39, 9 August 2018

Town Dwelling Unit Lvl Grw Cost Total Cost Visiting Scheme
Castle Barracks Swordsman
Swordsman
4 4 300 Gold 1200 Gold Barracks