Template:Mob infobox: Difference between revisions

From BTA-Mirror
imported>Denatidum
(Created page with "<includeonly><div style="float:right; margin-left: 20px;"> <div class="infobox out"> <span class="shadow c-f">{{{title|{{PAGENAME}}}}}</span> </div> {{#if: {{{image|}}} | <div class="infobox in"> {{{image|}}} </div> | }} {{#if: {{{item|{{{durability|{{{renewable|{{{stackable|}}}}}}}}}}}} | <div class="infobox out"> {{#if: {{{item|}}} | {{Inventory slot|item={{{item|}}}}}}} {{#if: {{{description{{{durability|{{{renewable|{{{stackable|{{{tool|}}}}}}}}}}}}}}}...")
imported>Ttv pedro270707
mNo edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div style="float:right; margin-left: 20px;">
<includeonly><div style="float:right; margin-left: 20px;">
<div class="infobox out">
<div class="infobox out">
<span class="shadow c-f">{{{title|{{PAGENAME}}}}}</span>
<span class="shadow c-0">{{{title|{{PAGENAME}}}}}</span>
</div>
</div>
{{#if: {{{image|}}} |
{{#if: {{{image|}}} |
Line 8: Line 8:
</div>
</div>
| }}
| }}
{{#if: {{{item|{{{durability|{{{renewable|{{{stackable|}}}}}}}}}}}} |
{{#if: {{{health|{{{behavior|{{{dmgeasy|{{{spawn|}}}}}}}}}}}} |
<div class="infobox out">
<div class="infobox out">
{{#if: {{{item|}}} | {{Inventory slot|item={{{item|}}}}}}}
{{#if: {{{description{{{durability|{{{renewable|{{{stackable|{{{tool|}}}}}}}}}}}}}}} |
<table class="infobox-table">
<table class="infobox-table">
             {{#if: {{{health|}}} |
             {{#if: {{{health|}}} |
<tr>
<tr>
<th>Health</th>
<th>Health</th>
<td>{{{health}}} ({{Healthbar|value={{{health|}}}}})</td>
<td>{{hp|{{{health|}}}}}</td>
</tr>
</tr>
| }}
| }}
Line 25: Line 23:
</tr>
</tr>
| }}
| }}
{{#if: {{{dmgeasy|}}} |
{{#if: {{{dmgeasy|{{{dmgnormal|{{{dmghard|}}}}}}}}} |
<tr>
<tr>
<th>Damage</th>
<th>Damage</th>
<td>Easy: {{{dmgeasy}}} ({{Healthbar|value={{{dmgeasy|}}}|size=9}})<br>Normal: {{{dmgnormal}}} ({{Healthbar|value={{{dmgnormal|}}}|size=9}}<br>Hard: {{{dmghard}}} ({{Healthbar|value={{{dmghard|}}}|size=9}})</td>
<td>Easy: {{hp|{{{dmgeasy|{{{dmgnormal|{{{dmghard|}}}}}}}}}}}<br>
Normal: {{hp|{{{dmgnormal|{{{dmgeasy|{{{dmghard|}}}}}}}}}}}<br>
Hard: {{hp|{{{dmghard|{{{dmgeasy|{{{dmgnormal|}}}}}}}}}}}</td>
</tr>
</tr>
| }}
| }}
Line 40: Line 40:
| }}
| }}
</div>
</div>
| }}
</div></includeonly><noinclude>
</div></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
<!-- Put categories on the documentation page -->
<!-- Put categories on the documentation page -->
</noinclude>
</noinclude>

Latest revision as of 00:41, 29 March 2023

[view | edit | history | purge]Documentation

Zombie

Health 20 (♥ × 10)
Behavior Hostile
Damage Easy: 2.5 (♥)

Normal: 3 (♥)

Hard: 4.5 (♥♥)
Spawn Light level 0

This template allows for the creation of mob infoboxes. This example on the side is created with {{Mob infobox|title=Zombie|image=[[File:Zombie Cyan Render.png|160px]]|health=20|behavior=Hostile|dmgeasy=2.5|dmgnormal=3|dmghard=4.5|spawn=Light level 0}}.

Parameter Description Defaults to
title The title of the infobox. {{{PAGENAME}}}
image Previews the main image of the infobox.
health Specifies the health of the mob. Hearts are half of the HP value. (e.g. 7 HP = 3.5 hearts)
behavior Specifies the behavior type of the mob. Three behavior types are acceptable: Passive, Neutral and Hostile. Additional information can be added if necessary.
dmgeasy Specifies the damage value of the mob while in Easy difficulty. Not necessary if the mob is passive.
dmgnormal Specifies the damage value of the mob while in Normal difficulty. Not necessary if the mob is passive.
dmghard Specifies the damage value of the mob while in Hard difficulty. Not necessary if the mob is passive.
spawn Specifies what conditions are needed for that mob to spawn.
[view | edit | history | purge]The above documentation is transcluded from Template:Mob infobox/doc.