Template:Cn: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
ShushMaster (talk | contribs)
Undo revision 40856 by ShushMaster (talk)
mNo edit summary
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>[[File: Creature portrait {{{image|{{{1}}}}}} small.gif|{{{border|}}}{{{1}}}|link={{{2|{{{1}}}}}}]]{{-}}{{{noname|[[{{{2|{{{1}}}}}}|{{{name|{{{1}}}}}}]]}}}</includeonly><noinclude>
<includeonly>{{swh|{{exist|File:Mini Portrait {{{image|{{{1}}}}}} (HotA).png|[[File:Mini Portrait {{{image|{{{1}}}}}} (HotA).png|{{{1}}}|link={{{link|{{{2|{{{1}}}}}}}}}{{{border|}}}]]|[[File:Mini Portrait {{{image|{{{1}}}}}}.png|{{{1}}}|link={{{link|{{{2|{{{1}}}}}}}}}{{{border|}}}]]}}|[[File:Mini Portrait {{{image|{{{1}}}}}}.png|{{{1}}}|link={{{link|{{{2|{{{1}}}}}}}}}{{{border|}}}]]|noicon=}}{{-}}{{{noname|[[{{{link|{{{2|{{{1}}}}}}}}}|{{{name|{{{1}}}}}}]]}}}</includeonly><noinclude>
'''Cn''' is short of creature name.
'''Cn''' is short of creature name.


Line 7: Line 7:
# = Creature name
# = Creature name
# = Link (if needed)
# = Link (if needed)
*noname= for a creature portrait without text
*noname= for a creature portrait without text
*name=   for a custom naming
*name= for a custom name
*image= for a custom image
*link= for a custom link


Writing code
{{Cn|Halfling}} — <nowiki>{{Cn|Halfling}}</nowiki>
<pre>{{Cn|'creature name'}}</pre>


for example
{{Cn|Halfling|image=Halfling (HotA)}} — <nowiki>{{Cn|Halfling|image=Halfling (HotA)}}</nowiki>
<pre>{{Cn|Rogue}}</pre>


will give<br><br>
{{Cn|Halfling (Factory)|name=Halfling}} <nowiki>{{Cn|Halfling (Factory)|name=Halfling}}</nowiki>
{{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)}}


{{Cn|Santa Gremlin|image=WOG Santa Gremlin|link=In the Wake of Gods/Santa Gremlin}} — <nowiki>{{Cn|Santa Gremlin|image=WOG Santa Gremlin|link=In the Wake of Gods/Santa Gremlin}}</nowiki>


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

Latest revision as of 13:55, 1 January 2026

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 name
  • image= for a custom image
  • link= for a custom link

HalflingHalfling Halfling — {{Cn|Halfling}}

HalflingHalfling Halfling — {{Cn|Halfling|image=Halfling (HotA)}}

Halfling (Factory)Halfling (Factory) Halfling — {{Cn|Halfling (Factory)|name=Halfling}}

Santa GremlinSanta Gremlin Santa Gremlin — {{Cn|Santa Gremlin|image=WOG Santa Gremlin|link=In the Wake of Gods/Santa Gremlin}}