Template:CnuAlt: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
Created page with "<includeonly>{{#if:{{{image|}}}|{{CnAlt|{{{1}}}|image={{{image}}}|noname=|{{{3|{{{1}}} and {{{2}}}}}}}}|{{CnAlt|{{{1}}}|noname=|{{{3|{{{1}}} and {{{2}}}}}}}}}}{{#if:{{{image2|}}}|{{CnAlt|{{{2}}}|image={{{image2}}}|noname=|{{{3|{{{1}}} and {{{2}}}}}}}}|{{CnAlt|{{{2}}}|noname=|{{{3|{{{1}}} and {{{2}}}}}}}}}}{{#if:{{{third|}}}|{{CnAlt|{{{third}}}|noname=|{{{3|{{{1}}} and {{{2}}}}}}}}}}{{{noname|[[{{{3|{{{1}}} and {{{2}}}}}}|{{{name|{{{3|{{{1}}} and {{{2}}}}}}}}}]]}}}</inclu..."
 
Redirected page to Template:Cnu
Tag: New redirect
 
Line 1: Line 1:
<includeonly>{{#if:{{{image|}}}|{{CnAlt|{{{1}}}|image={{{image}}}|noname=|{{{3|{{{1}}} and {{{2}}}}}}}}|{{CnAlt|{{{1}}}|noname=|{{{3|{{{1}}} and {{{2}}}}}}}}}}{{#if:{{{image2|}}}|{{CnAlt|{{{2}}}|image={{{image2}}}|noname=|{{{3|{{{1}}} and {{{2}}}}}}}}|{{CnAlt|{{{2}}}|noname=|{{{3|{{{1}}} and {{{2}}}}}}}}}}{{#if:{{{third|}}}|{{CnAlt|{{{third}}}|noname=|{{{3|{{{1}}} and {{{2}}}}}}}}}}{{{noname|[[{{{3|{{{1}}} and {{{2}}}}}}|{{{name|{{{3|{{{1}}} and {{{2}}}}}}}}}]]}}}</includeonly><noinclude>
#REDIRECT[[Template:Cnu]]
 
== 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:
# = Base creature name
# = Updated creature name
# = Link (if needed, otherwise created from the base and upgraded creature names)
*noname=  for a creature portrait without text
*name=    for a custom naming, otherwise, same as link
*image=  for the base [[:Category:Creature portraits (small)|creature image]], if non-default
*image2=  for the upgraded creature image, if non-default
*third=  for a third upgraded creature, if needed -- if provided, you likely also need to give an explicit link
 
Typical use is:
<pre>{{CnuAlt|'base creature name'|'upgraded creature name'}}</pre>
 
Examples:
{|
! Code !! Result
|-
|<pre>{{CnuAlt|Cavalier|Champion}}</pre>||{{CnuAlt|Cavalier|Champion}}
|-
|<pre>{{CnuAlt|Gog|Magog|noname=}}</pre>||{{CnuAlt|Gog|Magog|noname=}}
|-
|<pre>{{CnuAlt|Gold Golem|Diamond Golem|Neutral creature|name=Gold and Diamond Golems}}</pre>||{{CnuAlt|Gold Golem|Diamond Golem|Neutral creature|name=Gold and Diamond Golems}}
|-
|<pre>{{CnuAlt|Halfling|Halfling Grenadier|image=Pikeman|image2=Firebird}}</pre>||{{CnuAlt|Halfling|Halfling Grenadier|image=Pikeman|image2=Firebird}}
|-
|<pre>{{CnuAlt|Pirate|Corsair|third=Sea Dog|Pirate, Corsair, and Sea Dog}}</preCnuAlt|Pirate|Corsair|third=Sea Dog|Pirate, Corsair, and Sea Dog}}
|}
 
[[Category: Table templates|Creature name]]
__NOTOC__</noinclude>

Latest revision as of 14:28, 1 January 2026

Redirect to: