From Brotato Wiki
Supermageseb (talk | contribs) mNo edit summary |
(add `image` override option (for Bat enemy)) |
||
Line 3: | Line 3: | ||
<div class="itemboxheader"> | <div class="itemboxheader"> | ||
<div style="float:left"> | <div style="float:left"> | ||
{{Iconbox|{{{name}}}|caption=no|size=100px}} | {{Iconbox|{{{name}}}|caption=no|size=100px|image={{{image|{{{name}}}}}}}} | ||
</div> | </div> | ||
<div style="width:60%;max-width:280px;margin-left:15px;height:100px;justify-content:space-between!important;display:flex;flex-direction: column!important;float:left;margin-top:0px;"> | <div style="width:60%;max-width:280px;margin-left:15px;height:100px;justify-content:space-between!important;display:flex;flex-direction: column!important;float:left;margin-top:0px;"> | ||
Line 68: | Line 68: | ||
<hr style="clear: both; margin: 20px auto; padding-top: 20px; border-top: 0; background: none; border-bottom: 1px solid #555;"> | <hr style="clear: both; margin: 20px auto; padding-top: 20px; border-top: 0; background: none; border-bottom: 1px solid #555;"> | ||
With image override. This exists for cases when an enemy image filename would be the same as an item/weapon/character image (eg. Bat), so was changed to <code>Enemy_*.png</code> | |||
<pre> | |||
{{Infobox Boss | |||
|name=Predator | |||
|image=Baby Elephant | |||
|stats= {{Boss Data|Predator|stats}} | |||
|reward= {{Boss Data|Predator|reward}} | |||
}} | |||
</pre> | |||
Results in: | |||
{{Infobox Boss | |||
|name=Predator | |||
|image=Baby Elephant | |||
|stats= {{Boss Data|Predator|stats}} | |||
|reward= {{Boss Data|Predator|reward}} | |||
}} | |||
</noinclude> | </noinclude> |
Latest revision as of 14:00, 3 November 2024
Usage
This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.
{{Infobox Boss |name=Predator |stats='''29900''' HP (Danger 0-4)<br> '''22425''' HP (Danger 5)<br> }}
Results in:
With Template:Boss_Data (recommended):
{{Infobox Boss |name=Predator |stats= {{Boss Data|Predator|stats}} |reward= {{Boss Data|Predator|reward}} }}
Results in:
Stats
29900 HP (Danger 0-4)
31395 HP (Danger 5)
300 Speed
29.5 Damage
Reward
Winning the game (D1-4)
It's no longer a threat (D5)
With image override. This exists for cases when an enemy image filename would be the same as an item/weapon/character image (eg. Bat), so was changed to Enemy_*.png
{{Infobox Boss |name=Predator |image=Baby Elephant |stats= {{Boss Data|Predator|stats}} |reward= {{Boss Data|Predator|reward}} }}
Results in:
Stats
29900 HP (Danger 0-4)
31395 HP (Danger 5)
300 Speed
29.5 Damage
Reward
Winning the game (D1-4)
It's no longer a threat (D5)