User:ShushMaster/Test3: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>|-
<includeonly>[[File: Creature portrait {{{image|{{{1}}}}}} small.gif|{{{1}}}|link={{{2|{{{1}}}}}}]]{{-}}{{{noname|[[{{{2|{{{1}}}}}}|{{{name|{{{1}}}}}}]]}}}</includeonly><noinclude>
| {{{town|[[File:Adventure Map {{{1}}} fort.gif|x80px|{{{1}}}|link={{{1}}}]]}}} || {{{dwelling|[[File:{{{2}}}-dwelling.gif|{{{2}}}|link={{{2}}}]]<br>[[{{{2}}}]]}}} || {{{guards|{{cn|{{{4}}}|noname=}}}}}{{{3}}}|| {{{unit|[[File:{{{4}}} portrait.gif|{{{4}}}|link={{{4}}}]]<br>[[{{{4}}}]]}}}|| {{{level|{{{5}}}}}}|| {{{growth|{{{6}}}}}}|| {{{cost|{{{7}}}{{-}}{{G}}}}}|| {{{nototal|{{{8}}}{{-}}{{G}}}}}|| [[File:{{{2}}}-dwelling (vs).png|{{{2}}}|link={{{2}}}]]</includeonly><noinclude>
'''Cn''' is short of creature name.


'''External dwellings table row'''
== Use ==
The template is used to show a creature's image and a name, both leading to the creature article.
The variables for the template are:
# = Creature name
# = Link (if needed)
*noname=  for a creature portrait without text
*name=    for a custom naming


# town
Writing code
# dwelling
<pre>{{Test3|'creature name'}}</pre>
# guards
# creature
# level
# growth
# cost
# total cost


<nowiki>{{test3|Castle|Portal of Glory|Angel|7|1|3000|, 1 {{gem}}|}}</nowiki>
for example
<pre>{{Test3|Rogue}}</pre>


{{test3|Castle|Portal of Glory|Angel|7|1|3000|, 1 {{gem}}|}}
will give<br><br>
{{Test3|Rogue}}


</noinclude>
 
and<br>
 
<pre>{{Test3|Rogue|noname=}}{{Test3|Halfling|name=Rogues and Halflings}}</pre>
 
will give<br>
{{Test3|Rogue|noname=}}{{Test3|Halfling|name=Rogues and Halflings}}
 
 
----
<pre>{{Test3|Rogue|image=Orc Chieftain (HotA)}}</pre>
 
{{Test3|Rogue|image=Orc Chieftain (HotA)}}
 
 
[[Category: Table templates|Creature name]]
__NOTOC__</noinclude>

Revision as of 05:07, 28 August 2018

Cn is short of creature name.

Use

The template is used to show a creature's image and a name, both leading to the creature article. The variables for the template are:

  1. = Creature name
  2. = Link (if needed)
  • noname= for a creature portrait without text
  • name= for a custom naming

Writing code

{{Test3|'creature name'}}

for example

{{Test3|Rogue}}

will give

Template:Test3


and

{{Test3|Rogue|noname=}}{{Test3|Halfling|name=Rogues and Halflings}}

will give
Template:Test3Template:Test3



{{Test3|Rogue|image=Orc Chieftain (HotA)}}

Template:Test3