Difference between revisions of "Template:Infobox Monster"

From Idlescape Wiki
Jump to navigation Jump to search
m (Auto-hide if no combat-level.)
m (Used infobox template)
Line 1: Line 1:
<div class="infobox">
+
<noinclude>{{Template:Infobox Monster/doc}}</noinclude><includeonly>{{Infobox
<div class="infobox-header">{{{title|{{PAGENAME}}}}}</div>
+
| autoheaders    = y
<div class="infobox-image">{{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="250">|{{img|{{PAGENAME}}|250}}}}</div>
+
| title          = {{{title|{{PAGENAME}}}}}
<table style="padding: 1em;margin: auto;">
+
|  image        = {{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="150">|{{img|{{PAGENAME}}|150}}}}
<tr>
+
|  label1  = Released
    <th colspan="10">Released</th>
+
|  data1  = {{{release|}}}
    <td colspan="20">{{{release}}}</td>
+
|  label2  = Zones
</tr>
+
|  data2  = {{{zones|}}}
<tr>
+
| label3  = Combat Level
    <th colspan="10">Zones</th>
+
|  data3  = {{{level|}}}
    <td colspan="20">{{{zones}}}</td>
+
| label4  = Max Hit
</tr>
+
|  data4  = {{{maxHit|}}}
{{#if: {{{level|}}}|
+
|  label5  = Attack Style
<tr>
+
|  data5  = {{{attackStyle|}}}
    <th colspan="10">Combat Level</th>
+
|  label6  = Attack Speed
    <td colspan="20">{{{level}}}</td>
+
|  data6  = {{{attackSpeed|}}}
</tr>
+
| header20 = Combat Stats
|}}
+
| slabel21 = {{img|constitution|20}}
<tr>
+
|  sdata21 = {{{maxHealth|}}}
    <th colspan="10">Max Hit</th>
+
| slabel22 = {{img|attack|20}}
    <td colspan="20">{{{maxHit}}}</td>
+
|  sdata22 = {{{attackLevel|}}}
</tr>
+
| slabel23 = {{img|strength|20}}
<tr>
+
|  sdata23 = {{{strengthLevel|}}}
    <th colspan="10">Attack Style</th>
+
| slabel24 = {{img|defence|20}}
    <td colspan="20">{{{attackStyle}}}</td>
+
|  sdata24 = {{{defenseLevel|}}}
</tr>
+
| slabel25 = {{img|magic splash|20}}
<tr>
+
|  sdata25 = {{{magic|}}}
    <th colspan="10">Attack Speed</th>
+
| slabel26 = {{img|range splash|20}}
    <td colspan="20">{{{attackSpeed}}}</td>
+
|  sdata26 = {{{range|}}}
</tr>
+
| header40 = Attack Bonus
</table>
+
| slabel41 = Accuracy
<div class="infobox-title">Combat Stats</div>
+
|  sdata41 = {{{accuracy|}}}
<div class="infobox-stats">
+
| header60 = Defence Bonus
<table class="fullWidth-table">
+
| slabel61 = Stab
  <tr>
+
|  sdata61 = {{{stab|}}}
    <td colspan="5" class="infobox-nested"><img src="https://idlescape.com/images/combat/constitution_icon.png" alt="Constitution Icon" height="20" width="20"></td>
+
| slabel62 = Slash
    <td colspan="5" class="infobox-nested"><img src="https://idlescape.com/images/combat/attack_icon.png" alt="Attack Icon" height="20" width="20"></td>
+
|  sdata62 = {{{slash|}}}
    <td colspan="5" class="infobox-nested"><img src="https://idlescape.com/images/combat/strength_icon.png" alt="Strength Icon" height="20" width="20"></td>
+
| slabel63 = Crush
    <td colspan="5" class="infobox-nested"><img src="https://idlescape.com/images/combat/defense_icon.png" alt="Defence Icon" height="20" width="20"></td>
+
|  sdata63 = {{{crush|}}}
    <td colspan="5" class="infobox-nested"><img src="https://idlescape.com/images/enchanting/enchanting_logo.png" alt="Magic Icon" height="20" width="20"></td>
+
| slabel64 = Magic
    <td colspan="5" class="infobox-nested"><img src="https://idlescape.com/images/combat/arrows_icon.png" alt="Range Icon" height="20" width="20"></td>
+
|  sdata64 = {{{magicDef|}}}
  </tr>
+
| slabel65 = Range
  <tr>
+
|  sdata65 = {{{rangeDef|}}}
    <td colspan="5" class="infobox-nested">{{{maxHealth}}}</td>
+
| header80 = Strength Bonus
    <td colspan="5" class="infobox-nested">{{{attackLevel}}}</td>
+
| slabel81 = Melee Str
    <td colspan="5" class="infobox-nested">{{{strengthLevel}}}</td>
+
|  sdata81 = {{{meeleStr|}}}
    <td colspan="5" class="infobox-nested">{{{defenseLevel}}}</td>
+
| slabel82 = Ranged Str
    <td colspan="5" class="infobox-nested">{{{magic}}}</td>
+
|  sdata82 = {{{rangeStr|}}}
    <td colspan="5" class="infobox-nested">{{{range}}}</td>
+
| slabel83 = Magic Str
  </tr>
+
|  sdata83 = {{{magicStr|}}}
</table>
+
| header90 = Notes
</div>
+
|  sdata91 = {{{notes|}}}
<div class="infobox-title">Attack Bonus</div>
+
}}</includeonly>
<div class="infobox-stats">
 
<table class="fullWidth-table">
 
  <tr>
 
    <td colspan="30">Accuracy</td>
 
  </tr>
 
  <tr>
 
    <td colspan="30">{{{accuracy}}}</td>
 
  </tr>
 
</table>
 
</div>
 
<div class="infobox-title">Defence Bonus</div>
 
<div class="infobox-stats">
 
<table class="fullWidth-table">
 
  <tr>
 
    <td colspan="6" class="infobox-nested">Stab</td>
 
    <td colspan="6" class="infobox-nested">Slash</td>
 
    <td colspan="6" class="infobox-nested">Crush</td>
 
    <td colspan="6" class="infobox-nested">Magic</td>
 
    <td colspan="6" class="infobox-nested">Range</td>
 
  </tr>
 
  <tr>
 
    <td colspan="6" class="infobox-nested">{{{stab}}}</td>
 
    <td colspan="6" class="infobox-nested">{{{slash}}}</td>
 
    <td colspan="6" class="infobox-nested">{{{crush}}}</td>
 
    <td colspan="6" class="infobox-nested">{{{magicDef}}}</td>
 
    <td colspan="6" class="infobox-nested">{{{rangeDef}}}</td>
 
  </tr>
 
</table>
 
</div>
 
<div class="infobox-title">Strength Bonus</div>
 
<div class="infobox-stats">
 
<table class="fullWidth-table">
 
  <tr>
 
    <td colspan="10" class="infobox-nested">Melee Str</td>
 
    <td colspan="10" class="infobox-nested">Ranged Str</td>
 
    <td colspan="10" class="infobox-nested">Magic Dmg</td>
 
  </tr>
 
  <tr>
 
    <td colspan="10" class="infobox-nested">{{{meeleStr}}}</td>
 
    <td colspan="10" class="infobox-nested">{{{rangeStr}}}</td>
 
    <td colspan="10" class="infobox-nested">{{{magicStr}}}</td>
 
  </tr>
 
  <tr>
 
    <td colspan="30" class="infobox-nested">{{{notes|}}}</td>
 
  </tr>
 
</table>
 
</div>
 
</div>
 
 
 
 
 
<noinclude>
 
====Usage====
 
<nowiki>{{Infobox Monster</nowiki>
 
|title =
 
|image =
 
|release =
 
|zones =
 
|level =
 
|maxHit =
 
|attackStyle =
 
|attackSpeed =
 
|maxHealth =
 
|attackLevel =
 
|strengthLevel =
 
|defenseLevel =
 
|magic =
 
|range =
 
|accuracy =
 
|stab =
 
|slash =
 
|crush =
 
|magicDef =
 
|rangeDef =
 
|meeleStr =
 
|rangeStr =
 
|magicStr =
 
|notes =
 
<nowiki>}}</nowiki>
 
</noinclude><noinclude>
 
[[Category:Template]]
 
</noinclude>
 

Revision as of 09:05, 13 February 2022

Infobox Monster
Infobox Monster
Zonesfarm

Usage

The template automatically creates an infobox for the page, only give it a name when the page's name isn't a monster.

Example

{{Infobox Monster|Chicken|zones=farm|DPS=0(melee)}}

Quick Copy

 {{Infobox Monster|zones=|DPS=)}}