Template:Cn: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Creature Name with Image)
 
No edit summary
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>[[Image:Creature portrait {{{1}}} small.gif|{{{1}}}|link={{{1}}}]] [[{{{1}}}]]</includeonly><noinclude>
<includeonly>[[File: Creature portrait {{{image|{{{1}}}}}} small.gif|{{{1}}}|link={{{2|{{{1}}}}}}{{{border|}}}]]{{-}}{{{noname|[[{{{2|{{{1}}}}}}|{{{name|{{{1}}}}}}]]}}}</includeonly><noinclude>
'''Cn''' is short of '''C'''reature '''N'''ame.
'''Cn''' is short of creature name.


==Use==
== Use ==
It's used to show creature image and name with a link to it
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


=====Variables=====
Writing code
1=[[Creatures|creature]] name
 
=====Code=====
<pre>{{Cn|'creature name'}}</pre>
<pre>{{Cn|'creature name'}}</pre>


==Example==
for example
<pre>{{Cn|Rogue}}</pre>
<pre>{{Cn|Rogue}}</pre>
gives:


[[Image:Creature portrait Rogue small.gif|Rrgue|link=Rogue]] [[Rogue]]
will give<br><br>
{{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}}
 
 
----
<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>

Latest revision as of 05:28, 28 August 2018

Cn is short of creature name.

Use[edit | hide | hide all]

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