User:ShushMaster/Test3: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[File: Creature portrait {{{image|{{{1}}}}}} small.gif|{{{1}}}|link={{{2|{{{1}}}}}}]]{{-}}{{{noname|[[{{{2|{{{1}}}}}}|{{{name|{{{1}}}}}}]]}}}</includeonly><noinclude>
<includeonly>|- style="text-align:center;"
'''Cn''' is short of creature name.
| style="text-align:center; background-color:#{{Green 1}}; color:white;"| '''{{{1}}}'''
 
|{{#if:{{{a|}}}|style="font-color:grey;"{{!}}|}} +{{#if:{{{a|}}}||'''}}{{{2}}}{{#if:{{{a|}}}||'''}}
== Use ==
|{{#if:{{{b|}}}|style="font-color:grey;"{{!}}|}} +{{#if:{{{b|}}}||'''}}{{{3}}}{{#if:{{{b|}}}||'''}}
The template is used to show a creature's image and a name, both leading to the creature article.
|{{#if:{{{c|}}}|style="color:grey;"{{!}}|}} +{{#if:{{{c|}}}||'''}}{{{4}}}{{#if:{{{c|}}}||'''}}
The variables for the template are:
|{{#if:{{{d|}}}|style="color:grey;"{{!}}|}} +{{#if:{{{d|}}}||'''}}{{{5}}}{{#if:{{{d|}}}||'''}}
# = Creature name
|{{#if:{{{e|}}}|style="color:grey;"{{!}}|}} +{{#if:{{{e|}}}||'''}}{{{6}}}{{#if:{{{e|}}}||'''}}
# = Link (if needed)
|{{#if:{{{f|}}}|style="color:grey;"{{!}}|}} +{{#if:{{{f|}}}||'''}}{{{7}}}{{#if:{{{f|}}}||'''}}</includeonly><noinclude>
*noname=  for a creature portrait without text
==Usage==
*name=    for a custom naming
<pre>{|
 
{{User:ShushMaster/Test3|1|2|3|4|5|6|7|a=a|b=b|c=c|d=d|e=e|f=f}}
Writing code
|}</pre>
<pre>{{Test3|'creature name'}}</pre>
{|
 
{{User:ShushMaster/Test3|1|2|3|4|5|6|7|a=a|b=b|c=c|d=d|e=e|f=f}}
for example
|}
<pre>{{Test3|Rogue}}</pre>
</noinclude>
 
will give<br><br>
{{Test3|Rogue}}
 
 
and<br>
 
<pre>{{Test3|Rogue|noname=}}{{Test3|Halfling|name=Rogues and Halflings}}</pre>
 
will give<br>
{{Test3|Rogue|noname=}}{{Test3|Halfling|name=Rogues and Halflings}}
 
 
----
<pre>{{Test3|Rogue|image=Orc Chieftain (HotA)}}</pre>
 
{{Test3|Rogue|image=Orc Chieftain (HotA)}}
 
 
[[Category: Table templates|Creature name]]
__NOTOC__</noinclude>

Latest revision as of 19:40, 11 December 2023

Usage[edit]

{|
{{User:ShushMaster/Test3|1|2|3|4|5|6|7|a=a|b=b|c=c|d=d|e=e|f=f}}
|}
1 +2 +3 +4 +5 +6 +7