Template:Cn: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(adding "name=" and "noname=")
No edit summary
Line 26: Line 26:
will give<br>
will give<br>
{{Cn|Rogue|noname=}}{{Cn|Halfling|name=Rogues and Halflings}}
{{Cn|Rogue|noname=}}{{Cn|Halfling|name=Rogues and Halflings}}
----
<pre>{{cn|Rogue|image=Orc Chieftain (HotA)}}</pre>
{{cn|Rogue|image=Orc Chieftain (HotA)}}


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

Revision as of 16:39, 3 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

{{Cn|'creature name'}}

for example

{{Cn|Rogue}}

will give

Rogue Rogue


and

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

will give
Rogue Halfling Rogues and Halflings



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

Rogue Rogue