Difference between revisions of "Template:Enemy Infobox"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Fixing incorrect parameter names and attempting a fix for the tabber feature)
(Simplifying the image/tabber section)
Line 9: Line 9:
 
     </div>
 
     </div>
 
|-
 
|-
{{#if: {{{tier1_image|}}}
+
| colspan="2" style="text-align:center;" |<!---
     | {{!}}<tabber>
+
--->{{#if: {{{tier1_image|}}}
              |-|Tier 1={{{tier1_image|[[File:DefaultEnemy.png|300px]]}}}
+
     | <tabber>
              |-|Tier 2={{{tier2_image|[[File:DefaultEnemy.png|300px]]}}}
+
        |-|Tier 1={{{tier1_image|[[File:DefaultEnemy.png|300px]]}}}
              |-|Tier 3={{{tier3_image|[[File:DefaultEnemy.png|300px]]}}}
+
        |-|Tier 2={{{tier2_image|[[File:DefaultEnemy.png|300px]]}}}
          </tabber>
+
        |-|Tier 3={{{tier3_image|[[File:DefaultEnemy.png|300px]]}}}
 +
      </tabber>
 
     | {{#if: {{{image|}}}
 
     | {{#if: {{{image|}}}
         | {{!}} colspan="2" style="text-align:center;" {{!}} {{{image}}}
+
         | {{{image}}}
         | {{!}} colspan="2" style="text-align:center;" {{!}} [[File:DefaultEnemy.png|300px]]
+
         | [[File:DefaultEnemy.png|300px]]
 
     }}
 
     }}
 
}}
 
}}

Revision as of 01:55, 9 February 2023

Enemy Infobox
DefaultEnemy.png
Information
Enemy Types ?
Lane Type ?
Appearances ?
Schedule Icon ?


Parameters

Parameter Description
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.
tier1_image The image for the tier 1 version of the enemy.
tier2_image The image for the tier 2 version of the enemy.
tier3_image The image for the tier 3 version of the enemy.
caption A caption for the image, if needed. Shows up underneath the image.
enemy_types The enemy's typing (such as Melee, Chaos, etc).
lane_type The type of lane the enemy appears in (Ground or Air).
appearances The game modes the enemy appears in.
schedule_icon The enemy's icon on the Schedule Board.
width A custom width for the info box. Default value is 23em.