Changes

Template:Enemy Infobox

987 bytes added, 07:29, 9 February 2023
Adding in an example and attempting to fix the subname
--->{{{name|{{PAGENAME}}}}}
{{#if: {{{subname|}}}
| <br><span style="color: #f2f2f2; font-size:80%;">(''{{{subname}}}'')</span>
}}
</div>
<noinclude>
Subname and caption do not appear if they are not set. Setting the tier_image parameters produces a tabber that can show 3 variants of an enemy.
===Parameters===
{| border="1" style="border-collapse:collapse;"
| image || The image for the enemy. Do not use this parameter if you use the tier_image parameters.
|-
| tier1_image || The image for the tier 1 version of the enemy. Do not use this parameter if you use the image parameter.
|-
| tier2_image || The image for the tier 2 version of the enemy. Do not use this parameter if you use the image parameter.
|-
| tier3_image || The image for the tier 3 version of the enemy. Do not use this parameter if you use the image parameter.
|-
| caption || A caption for the image, if needed. Shows up underneath the image.
| width || A custom width for the info box. Default value is <code>23em</code>.
|}
 
===Example===
<code><nowiki>{{Enemy Infobox
| name = Goblin
| subname = Bob
| image = [[File:Goblin - Tier 3.png|300px]]
| caption = a goblin with a sinister smile
| enemy_types = Melee, Goblin
| lane_type = Ground
| appearances = All game modes
| schedule_icon = [[File:Goblin Icon.png|60px]]
}}</nowiki></code> produces the following:
 
{{Enemy Infobox
| name = Goblin
| subname = Bob
| image = [[File:Goblin - Tier 3.png|300px]]
| caption = a goblin with a sinister smile
| enemy_types = Melee, Goblin
| lane_type = Ground
| appearances = All game modes
| schedule_icon = [[File:Goblin Icon.png|60px]]
}}
</noinclude>
WikiDefender, bureaucrat, administrator
618
edits