Changes

Template:Enemy Infobox

915 bytes added, 04:42, 9 February 2023
Massive overhaul of this template. Cleaning up the wikitext, documenting the parameters, and adding native support for tabbers for enemies with 3 tiers.
{| class="infobox" style="float: right; font-size:89%; width:{{{width|23em}}}; border: 1px solid #800080; border-radius: 5px; -moz-border-radius: 5px; padding: 1.5px3px;"
|-
! colspan="32" style="background-color: #800080; color: #ffffffwhite; font-size:120%; padding:0.5em; border-collapse:collapse; border:#000000 1px solid3em;" | <!------><div style="line><!--- ---height:17px;">{{#if:{{{name|}}}|{{{namePAGENAME}}}|{{BASEPAGENAME}}}} {{#if:{{{namesubsubname|}}} |<br><span style="color: #f2f2f2; font-size:80%;">(''{{{namesub|subname}}}'')</span> }} </div>
|-
{{#if:{{{image<includeonly>tier1_image|}}} |{{!}}</includeonlytabber> {{!}}-{{!}} Tier 1={{{tier1_image|[[File:DefaultEnemy.png|300px]]}}} {{!}} colspan-{{!}}Tier 2="4" style="text-align{{{tier2_image|[[File:center;backgroundDefaultEnemy.png|300px]]}}} {{!}}-color:alpha;" {{!}}Tier 3={{{imagetier3_image|[[File:DefaultEnemy.png|300px]]}}} </tabber> | {{#if:{{{captionimage|}}} |<br />{{!}} colspan="2" style="text-align:center;" {{caption!}}{{{image}}} | {{!}}colspan="2" style="text-align:center;" {{!}} [[File:DefaultEnemy.png|300px]] }}
}}
|-
|{{#if: {{{caption|}}} | colspan="2" style="text-align:center;" {{!}} {{{caption}}}}}|-! colspan="32" style="background-color: #800080; color: #ffffffwhite; paddingfont-size:0em120%; " | Information|-| style="width:35%" | <!--Sets the width for the 1st column-->| style="width:65%" | <!--Sets the width for the 2nd column-->|-| '''Enemy Types'''| style="font-size:120%; " |{{{enemy_types|?}}}|-| '''Lane Type'''| style="font-size:120%" |<!---->{{#switch: {{{primary_lane|}}} | Ground = [[File:Ground_Spawn_Symbol.png|30px]] Ground | Air = [[File:Air_Spawn_Symbol.png|30px]] Air | {{{primary_lane|?}}}}}|-| '''Appearances'''| style="font-size:120%" |{{{appearances|?}}}|-| '''Schedule Icon'''| style="font-size:120%" |{{{schedule_icon|?}}}|-|} <noinclude>===Parameters==={| border="1" style="border-collapse:collapse; border:#000000 1px solid;" |-! Parameter !! Description| Information-| name || The name of the enemy.|-| subname || The subname of the enemy, if needed. Shows up underneath the name in smaller text inside parenthesis.|-| image || The image for the enemy. Do not use this parameter if you use the tier_image parameters.
|-
| style="width:35%" tier1_image || style="width:40%" || style="width:25%" |The image for the tier 1 version of the enemy.
|-
{{#if: {{{damage_type|}}}tier2_image |{{!}} '''[[Damage Type]]'''{{!}} colspan="| The image for the tier 2" style="font-size:120%" {{!}} {{{damage_type|}}} }}version of the enemy.
|-
{{#if: {{{damage|}}}tier3_image |{{!}} '''[[Damage]]'''{{!}} colspan="2" <br> style="font-size:120%" {{!}} {{{damage|}}} }}The image for the tier 3 version of the enemy.
|-
{{#if: {{{health|}}}caption |{{!}} '''[[Health]]'''{{!}} colspan="2" style="font-size:120% {{!}} {{{health|}}} }}A caption for the image, if needed. Shows up underneath the image.
|-
{{#if: {{{enemy type|}}}enemy_types ||{{!}} '''[[Enemy Type]]The enemy'''{{!}} colspan="2" style="font-size:120% {{!}} {{{enemy type|}}} }}s typing (such as Melee, Chaos, etc).
|-
{{#if: {{{primary lane|}}}lane_type ||{{!}} '''[[Primary Lane]]'''{{!}} colspan="2" style="font-size:120% {{!}} {{{primary The type of lane|}}} }}the enemy appears in (Ground or Air).
|-
{{#if: {{{| appearances|}}}|{{!}} '''[[Appearances]]'''{{!}} colspan="2" style="font-size:120% {{!}} {{{appearances|}}} }}The game modes the enemy appears in.
|-
{{#if: {{{schedule icon|}}}schedule_icon ||{{!}} The enemy'''[[s icon on the Schedule Icon]]'''{{!}} colspan="2" style="font-size:120% {{!}} {{{schedule icon|}}} }}Board.
|-
| width || A custom width for the info box. Default value is <code>23em</code>.
|}
</noinclude>
WikiDefender, bureaucrat, administrator
618
edits