Difference between revisions of "Template:Enemy Infobox"

(Simplifying the image/tabber section)
m (added margin to border)
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" style="float: right; width:{{{width|23em}}}; border: 1px solid #800080; border-radius: 5px; padding: 3px;"
+
{| class="infobox" style="float: right; width:{{{width|23em}}}; border: 5px solid; border-radius: 5px; padding: 3px; margin: 10px; border-image-source: linear-gradient(45deg, #380835 0%, #18022E 100%); border-image-slice: 1;  box-shadow:0 0 15px #9E6649;"  
 
|-
 
|-
! colspan="2" style="background-color: #800080; color: white; font-size:120%; padding:0.3em;" |<!---
+
! colspan="2" style="background: linear-gradient(to bottom, #18022E 0%, #380835 100%); color: #e69500; font-size:150%; font-family: Impact; padding:0.3em; -webkit-text-stroke: 0.1px #e3191c;" |<!---
 
---><div><!---
 
---><div><!---
 
     --->{{{name|{{PAGENAME}}}}}
 
     --->{{{name|{{PAGENAME}}}}}
 
         {{#if: {{{subname|}}}
 
         {{#if: {{{subname|}}}
             | <br><span style="color: #f2f2f2; font-size:80%;">(''{{{subname}}}'')</span>
+
             | <p style="color: #FFA500; font-size:80%; text-align:center; margin: 0;">(''{{{subname}}}'')</p>
 
         }}
 
         }}
 
     </div>
 
     </div>
Line 11: Line 11:
 
| colspan="2" style="text-align:center;" |<!---
 
| colspan="2" style="text-align:center;" |<!---
 
--->{{#if: {{{tier1_image|}}}
 
--->{{#if: {{{tier1_image|}}}
    | <tabber>
+
        | <tabber>
        |-|Tier 1={{{tier1_image|[[File:DefaultEnemy.png|300px]]}}}
+
            |-|Tier 1=[[{{{tier1_image|File:DefaultEnemy.png}}}|300px]]
        |-|Tier 2={{{tier2_image|[[File:DefaultEnemy.png|300px]]}}}
+
            |-|Tier 2=[[{{{tier2_image|File:DefaultEnemy.png}}}|300px]]
        |-|Tier 3={{{tier3_image|[[File:DefaultEnemy.png|300px]]}}}
+
            |-|Tier 3=[[{{{tier3_image|File:DefaultEnemy.png}}}|300px]]
      </tabber>
+
          </tabber>
    | {{#if: {{{image|}}}
+
         | [[{{{image|File:DefaultEnemy.png}}}|300px]]
         | {{{image}}}
 
        | [[File:DefaultEnemy.png|300px]]
 
 
     }}
 
     }}
}}
 
 
|-
 
|-
 
|{{#if: {{{caption|}}}
 
|{{#if: {{{caption|}}}
 
     | colspan="2" style="text-align:center;" {{!}} {{{caption}}}
 
     | colspan="2" style="text-align:center;" {{!}} {{{caption}}}
}}
+
}}
 
|-
 
|-
! colspan="2" style="background-color: #800080; color: white; font-size:120%;" | Information
+
! colspan="2" style="background: linear-gradient(to bottom, #18022E 0%, #380835 100%); color: #e69500; font-size:130%; font-family: Impact; -webkit-text-stroke: 0.1px #e3191c;" | Information
 
|-
 
|-
 
| style="width:35%" | <!--Sets the width for the 1st column-->
 
| style="width:35%" | <!--Sets the width for the 1st column-->
Line 39: Line 36:
 
     | Air = [[File:Air_Spawn_Symbol.png|30px]] Air
 
     | Air = [[File:Air_Spawn_Symbol.png|30px]] Air
 
     | {{{lane_type|?}}}
 
     | {{{lane_type|?}}}
}}
+
}}
 
|-
 
|-
 
| '''Appearances'''
 
| '''Appearances'''
Line 45: Line 42:
 
|-
 
|-
 
| '''Schedule Icon'''
 
| '''Schedule Icon'''
|{{{schedule_icon|?}}}
+
| [[{{{schedule_icon|File:Miscellaneous Enemy Icon.png}}}|60px]]
 
|-
 
|-
|}
+
|}<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.
  
<noinclude>
 
 
===Parameters===
 
===Parameters===
 
{| border="1" style="border-collapse:collapse;"
 
{| border="1" style="border-collapse:collapse;"
Line 61: Line 59:
 
| image || The image for the enemy. Do not use this parameter if you use the tier_image parameters.
 
| 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.
+
| 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.
+
| 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.
+
| 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.
 
| caption || A caption for the image, if needed. Shows up underneath the image.
Line 79: Line 77:
 
| width || A custom width for the info box. Default value is <code>23em</code>.
 
| width || A custom width for the info box. Default value is <code>23em</code>.
 
|}
 
|}
 +
 +
===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;"><!---
 +
---><code style="display: table; white-space: pre-wrap;"><!---
 +
    ---><nowiki>
 +
 +
            {{Enemy Infobox
 +
            | name = Goblin
 +
            | subname = Bob
 +
            | image = File:Goblin - Tier 3.png
 +
            | caption = a goblin with a sinister smile         
 +
            | enemy_types = Melee, Goblin
 +
            | lane_type = Ground
 +
            | appearances = All game modes
 +
            | schedule_icon = File:Goblin Icon.png
 +
            }}
 +
 +
        </nowiki><!---
 +
---></code>
 +
</div>
 +
|<div style="display: flex; justify-content: center;">
 +
{{Enemy Infobox
 +
| name = Goblin
 +
| subname = Bob
 +
| image = File:Goblin - Tier 3.png
 +
| caption = a goblin with a sinister smile
 +
| enemy_types = Melee, Goblin
 +
| lane_type = Ground
 +
| appearances = All game modes
 +
| schedule_icon = File:Goblin Icon.png
 +
}}
 +
</div>
 +
|}
 +
 
</noinclude>
 
</noinclude>
 +
__NOEDITSECTION__

Latest revision as of 23:40, 10 May 2024

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

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

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. 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.
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.

Example

Wiki Text Result
{{Enemy Infobox | name = Goblin | subname = Bob | image = File:Goblin - Tier 3.png | caption = a goblin with a sinister smile | enemy_types = Melee, Goblin | lane_type = Ground | appearances = All game modes | schedule_icon = File:Goblin Icon.png }}
Goblin

(Bob)

Goblin - Tier 3.png
a goblin with a sinister smile
Information
Enemy Types Melee, Goblin
Lane Type Ground Spawn Symbol.png Ground
Appearances All game modes
Schedule Icon Goblin Icon.png