Template:Cn: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
m (secondary link)
mNo edit summary
Line 1: Line 1:
<includeonly>[[Image:Creature portrait {{{1}}} small.gif|{{{1}}}|link={{{1}}}]] [[{{{2|{{{1}}}}}}|{{{1}}}]]</includeonly><noinclude>
<includeonly>[[Image:Creature portrait {{{1}}} small.gif|{{{1}}}|link={{{2|{{{1}}}}}}]] [[{{{2|{{{1}}}}}}|{{{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:
1 = Creature name
2 = Link (if needed)


 
Writing code
=====Variables=====
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>
{{Cn|Rogue}}




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

Revision as of 19:44, 30 March 2014

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)

Writing code

{{Cn|'creature name'}}

for example

{{Cn|Rogue}}

will give
Rogue Rogue