Template:Cn: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
ShushMaster (talk | contribs)
No edit summary
Legate (talk | contribs)
m make this pictures toggle if there is a hota image
Line 1: Line 1:
<includeonly>[[File: Creature portrait {{{image|{{{1}}}}}} small.gif|{{{1}}}|link={{{2|{{{1}}}}}}{{{border|}}}]]{{-}}{{{noname|[[{{{2|{{{1}}}}}}|{{{name|{{{1}}}}}}]]}}}</includeonly><noinclude>
<includeonly>{{swh|noicon=|{{exist|File:Creature portrait {{{image|{{{1}}}}}} (HotA) small.gif|[[File:Creature portrait {{{image|{{{1}}}}}} (HotA) small.gif|{{{1}}}|link={{{2|{{{1}}}}}}{{{border|}}}]]|[[File: Creature portrait {{{image|{{{1}}}}}} small.gif|{{{1}}}|link={{{2|{{{1}}}}}}{{{border|}}}]]}}|[[File:Creature portrait {{{image|{{{1}}}}}} small.gif|{{{1}}}|link={{{2|{{{1}}}}}}{{{border|}}}]]}}{{-}}{{{noname|[[{{{2|{{{1}}}}}}|{{{name|{{{1}}}}}}]]}}}</includeonly><noinclude>
'''Cn''' is short of creature name.
'''Cn''' is short of creature name.


Line 9: Line 9:
*noname=  for a creature portrait without text
*noname=  for a creature portrait without text
*name=    for a custom naming
*name=    for a custom naming
*border=  ...not sure?


Writing code
Writing code
Line 26: Line 27:
will give<br>
will give<br>
{{Cn|Rogue|noname=}}{{Cn|Halfling|name=Rogues and Halflings}}
{{Cn|Rogue|noname=}}{{Cn|Halfling|name=Rogues and Halflings}}


----
----

Revision as of 00:19, 10 April 2025

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
  • border= ...not sure?

Writing code

{{Cn|'creature name'}}

for example

{{Cn|Rogue}}

will give

RogueRogue Rogue


and

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

will give
RogueRogue HalflingHalfling Rogues and Halflings


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

RogueRogue Rogue