From Brotato Wiki

(First attempt at creating a boss infobox template)
 
(add `image` override option (for Bat enemy))
 
(2 intermediate revisions by one other user not shown)
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 55: Line 55:
|name=Predator
|name=Predator
|stats= {{Boss Data|Predator|stats}}
|stats= {{Boss Data|Predator|stats}}
|reward= {{Boss Data|Rhino|reward}}
|reward= {{Boss Data|Predator|reward}}
}}
}}
</pre>
</pre>
Line 61: Line 61:
Results in:
Results in:


{{Infobox Elite
{{Infobox Boss
|name=Rhino
|name=Predator
|stats= {{Elite Data|Rhino|stats}}
|stats= {{Boss Data|Predator|stats}}
|reward= {{Elite Data|Rhino|reward}}
|reward= {{Boss Data|Predator|reward}}
}}
}}


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


Predator
Predator
Boss
Stats

29900 HP (Danger 0-4)
22425 HP (Danger 5)



With Template:Boss_Data (recommended):

{{Infobox Boss 
|name=Predator
|stats= {{Boss Data|Predator|stats}}
|reward= {{Boss Data|Predator|reward}}
}}

Results in:


Predator
Predator
Boss
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:


Predator
Predator
Boss
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)