From Brotato Wiki
Supermageseb (talk | contribs) (First attempt at creating an infobox template) |
(add `image` override option (for Bat enemy)) |
||
(9 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;"> | ||
<div class="bold" style="margin-top:0px!important;font-size:22px;">{{{name}}}</div> | <div class="bold" style="margin-top:0px!important;font-size:22px;">{{{name}}}</div> | ||
<div style="width:100%;justify-content:space-between!important;display:flex;flex-direction: row!important;font-size:17px;"> | <div style="width:100%;justify-content:space-between!important;display:flex;flex-direction: row!important;font-size:17px;"> | ||
<div style="color:rgb(234,226,176)"> | <div style="color:rgb(234,226,176)">Elite</div> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 23: | Line 23: | ||
<div class="line"></div> | <div class="line"></div> | ||
<div class="stats-container"> | <div class="stats-container"> | ||
<div style="font-weight:bold; color:rgb(234,226,176);"> | <div style="font-weight:bold; color:rgb(234,226,176);">Minimum Danger</div> | ||
{{{minimumdanger}}} | |||
</div> | |||
|}} | |||
{{#if:{{{reward|}}}| | |||
<div class="line"></div> | |||
<div class="stats-container"> | |||
<div style="font-weight:bold; color:rgb(234,226,176);">Reward</div> | |||
{{{reward}}} | {{{reward}}} | ||
</div> | </div> | ||
|}} | |||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
Line 40: | Line 48: | ||
Results in: | Results in: | ||
{{Infobox | {{Infobox Elite | ||
|name=Rhino | |name=Rhino | ||
|stats='''1''' HP<br> | |stats='''1''' HP<br> | ||
Line 52: | Line 60: | ||
<pre> | <pre> | ||
{{Infobox Elite | {{Infobox Elite | ||
|name= | |name=Rhino | ||
|stats= {{Elite Data|Rhino|stats}} | |stats= {{Elite Data|Rhino|stats}} | ||
|minimumdanger= {{Elite Data|Rhino|minimumdanger}} | |minimumdanger= {{Elite Data|Rhino|minimumdanger}} | ||
Line 61: | Line 69: | ||
Results in: | Results in: | ||
{{Infobox Character | {{Infobox Elite | ||
|name=Rhino | |||
|stats= {{Elite Data|Rhino|stats}} | |||
|minimumdanger= {{Elite Data|Rhino|minimumdanger}} | |||
|unlocks= {{Elite Data|Rhino|unlocks}} | |||
}} | |||
<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 Elite | |||
|name=Rhino | |||
|image=Potato | |||
|stats= {{Elite Data|Rhino|stats}} | |||
|minimumdanger= {{Elite Data|Rhino|minimumdanger}} | |||
|reward= {{Character Data|Rhino|reward}} | |||
}} | |||
</pre> | |||
Results in: | |||
{{Infobox Elite | |||
|name=Rhino | |name=Rhino | ||
|image=Potato | |||
|stats= {{Elite Data|Rhino|stats}} | |stats= {{Elite Data|Rhino|stats}} | ||
|minimumdanger= {{Elite Data|Rhino|minimumdanger}} | |minimumdanger= {{Elite Data|Rhino|minimumdanger}} |
Latest revision as of 13:56, 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 Elite |name=Rhino |stats='''1''' HP<br> '''150''' +HP per round<br> }}
Results in:
With Template:Elite_Data (recommended):
{{Infobox Elite |name=Rhino |stats= {{Elite Data|Rhino|stats}} |minimumdanger= {{Elite Data|Rhino|minimumdanger}} |reward= {{Character Data|Rhino|reward}} }}
Results in:
Stats
1 HP
+750 +HP per wave
+250 Speed
1 Damage
1.5 +Damage per wave
Starting waves Elite Waves (round 11-18)
Minimum Danger
2
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 Elite |name=Rhino |image=Potato |stats= {{Elite Data|Rhino|stats}} |minimumdanger= {{Elite Data|Rhino|minimumdanger}} |reward= {{Character Data|Rhino|reward}} }}
Results in:
Stats
1 HP
+750 +HP per wave
+250 Speed
1 Damage
1.5 +Damage per wave
Starting waves Elite Waves (round 11-18)
Minimum Danger
2