Changes

Template:Enemy Infobox

412 bytes added, 20:37, 12 February 2023
Small formatting change to the example
--->{{{name|{{PAGENAME}}}}}
{{#if: {{{subname|}}}
| <span p style="color: #f2f2f2; font-size:80%; text-align:center; margin: 0;">(''{{{subname}}}'')</spanp>
}}
</div>
| colspan="2" style="text-align:center;" |<!---
--->{{#if: {{{tier1_image|}}}
| <tabber> |-|Tier 1=[[{{{tier1_image|[[File:DefaultEnemy.png}}}|300px]]}}} |-|Tier 2=[[{{{tier2_image|[[File:DefaultEnemy.png}}}|300px]]}}} |-|Tier 3=[[{{{tier3_image|[[File:DefaultEnemy.png}}}|300px]]}}} </tabber> | {{#if: {{{image|}}} | [[{{{image}}} | [[File:DefaultEnemy.png}}}|300px]]
}}
}}
|-
|{{#if: {{{caption|}}}
| colspan="2" style="text-align:center;" {{!}} {{{caption}}}
}}
|-
! colspan="2" style="background-color: #800080; color: white; font-size:120%;" | Information
| Air = [[File:Air_Spawn_Symbol.png|30px]] Air
| {{{lane_type|?}}}
}}
|-
| '''Appearances'''
|-
| '''Schedule Icon'''
|[[{{{schedule_icon|?File:Miscellaneous Enemy Icon.png}}}|60px]]
|-
|}<noinclude>
<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;"
===Example===
{| style="width:80%;"! style="font-size:150%; width: 50%;" | Wiki Text! style="font-size:150%; width: 50%;" | Result|-|<div style="display: flex; justify-content: center;"><!------><codestyle="display: table; white-space: pre-wrap;"><!--- ---><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:
</nowiki><!---
---></code>
</div>
|<div style="display: flex; justify-content: center;">
{{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]]
}}
</div>
|}
 
</noinclude>
__NOEDITSECTION__
WikiDefender, bureaucrat, administrator
617
edits