Difference between revisions of "Template:Enemy Infobox"
From Dungeon Defenders 2 Wiki
(Adding in an example and attempting to fix the subname) |
(Greatly improving the formatting for the example) |
||
| Line 5: | Line 5: | ||
--->{{{name|{{PAGENAME}}}}} | --->{{{name|{{PAGENAME}}}}} | ||
{{#if: {{{subname|}}} | {{#if: {{{subname|}}} | ||
| − | | <span style="color: #f2f2f2; font-size:80%;">(''{{{subname}}}'')</span> | + | | <span style="color: #f2f2f2; font-size:80%; text-align:center;">(''{{{subname}}}'')</span> |
}} | }} | ||
</div> | </div> | ||
| Line 50: | Line 50: | ||
<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. | 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=== | ===Parameters=== | ||
{| border="1" style="border-collapse:collapse;" | {| border="1" style="border-collapse:collapse;" | ||
| Line 82: | Line 84: | ||
===Example=== | ===Example=== | ||
| − | <code><nowiki>{{Enemy Infobox | + | {| 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|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> | ||
| + | </div> | ||
| + | |<div style="display: flex; justify-content: center;"> | ||
{{Enemy Infobox | {{Enemy Infobox | ||
| name = Goblin | | name = Goblin | ||
| Line 103: | Line 117: | ||
| schedule_icon = [[File:Goblin Icon.png|60px]] | | schedule_icon = [[File:Goblin Icon.png|60px]] | ||
}} | }} | ||
| + | </div> | ||
| + | |} | ||
| + | |||
</noinclude> | </noinclude> | ||
| + | __NOEDITSECTION__ | ||
Revision as of 03:33, 9 February 2023
Enemy Infobox
| |
|---|---|
| |
| Information | |
| Enemy Types | ? |
| Lane Type | ? |
| Appearances | ? |
| Schedule Icon | ? |
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|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]]
}}
|

