Template:Cn: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
(adding "name=" and "noname=")
Line 1: Line 1:
<includeonly>[[File: Creature portrait {{{image|{{{1}}}}}} small.gif|{{{1}}}|link={{{2|{{{1}}}}}}]]{{-}}[[{{{2|{{{1}}}}}}|{{{1}}}]]</includeonly><noinclude>
<includeonly>[[File: Creature portrait {{{image|{{{1}}}}}} small.gif|{{{1}}}|link={{{2|{{{1}}}}}}]]{{-}}{{{noname|[[{{{2|{{{1}}}}}}|{{{name|{{{1}}}}}}]]}}}</includeonly><noinclude>
'''Cn''' is short of creature name.
'''Cn''' is short of creature name.


== 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
Line 13: Line 16:
<pre>{{Cn|Rogue}}</pre>
<pre>{{Cn|Rogue}}</pre>


will give<br>
will give<br><br>
{{Cn|Rogue}}
{{Cn|Rogue}}


and<br>
<pre>{{Cn|Rogue|noname=}}{{Cn|Halfling|name=Rogues and Halflings}}</pre>
will give<br>
{{Cn|Rogue|noname=}}{{Cn|Halfling|name=Rogues and Halflings}}


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

Revision as of 18:59, 28 July 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