User:ShushMaster/Test1: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:


== Use ==
== 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:
The template is used to show a creature's image and a name, both leading to the creature article.
1 = Creature name
The variables for the template are:
2 = Link (if needed)
# = Creature name
# = Link (if needed)
*noname=  for a creature portrait without text
*name=    for a custom naming


Writing code
Writing code

Revision as of 16:32, 28 July 2018

test1 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

{{test1|'creature name'}}

for example

{{test1|Rogue}}

will give

Template:Test1


and

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

will give
Template:Test1Template:Test1