Difference between revisions of "Template:Infobox Monster"

From Idlescape Wiki
Jump to navigation Jump to search
m
(replaced {{img}} with file for better performance)
 
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div class="infobox">
+
<includeonly>
<div class="infobox-header">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
+
{{Infobox
<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}}
+
| autoheaders    = y
<table>
+
| title = {{#if: {{{title|}}}|{{{title}}}|{{PAGENAME}}}}
{{#if:{{{release|}}}|<tr>
+
|  image = {{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="250">|{{img|{{PAGENAME}}|250}}}}
    <th>Released</th>
+
| label1  = Released
    <td>{{{release}}}</td>
+
|  data1  = {{{release|}}}
</tr>}}
+
|  label2  = Zones
{{#if:{{{zones|}}}|<tr>
+
|  data2  = {{{zones|}}}
    <th>Zones</th>
+
| header3 = Offensive Stats
    <td>{{{zones}}}</td>
+
| slabel4 = Attack Speed
</tr>}}
+
|  sdata4 = {{{attackSpeed|}}}
{{#if:{{{level|}}}|<tr>
+
| slabel5 = DPS
    <th>Combat Level</th>
+
|  sdata5 = {{{DPS|}}}
    <td>{{{level}}}</td>
+
| slabel6 = Crit Chance
</tr>}}
+
|  sdata6 = {{{critChance|}}}
{{#if:{{{maxHit|}}}|<tr>
+
| slabel7 = Crit Multiplier
    <th>Max hit</th>
+
|  sdata7 = {{{critMultiplier|}}}
    <td>{{{maxHit}}}</td>
+
| header8 = Offensive Affinities (%)
</tr>}}
+
| slabel9 = [[File:Melee_splash.png|frameless|20px]]
{{#if:{{{attackStyle|}}}|<tr>
+
|  sdata9 = {{{offMelee|}}}
    <th>Attack style</th>
+
| slabel10 = [[File:Magic_splash.png|frameless|20px]]
    <td>{{{attackStyle}}}</td>
+
|  sdata10 = {{{offMagic|}}}
</tr>}}
+
| slabel11 = [[File:Range_splash.png|frameless|20px]]
{{#if:{{{attackSpeed|}}}|<tr>
+
|  sdata11 = {{{offRange|}}}
    <th>Zones</th>
+
| sbreak12  = yes
    <td>{{{attackSpeed}}}</td>
+
| slabel13 = [[File:Stab_splash.png|frameless|20px]]
</tr>}}
+
|  sdata13 = {{{offPiercing|}}}
</table>
+
| slabel14 = [[File:Crush_splash.png|frameless|20px]]
<div class="infobox-title">Combat stats</div>
+
|  sdata14 = {{{offBlunt|}}}
<div class="infobox-stats">
+
| slabel15 = [[File:Slash_splash.png|frameless|20px]]
<table>
+
|  sdata15 = {{{offSlashing|}}}
  <tr>
+
| sbreak16  = yes
    <th>{{{maxHealth}}}</th>
+
| slabel17 = [[File:Fire_splash.png|frameless|20px]]
    <th>{{{attackLevel}}}</th>
+
|  sdata17 = {{{offFire|}}}
    <th>{{{strengthLevel}}}</th>
+
| slabel18 = [[File:Ice_splash.png|frameless|20px]]
    <th>{{{defenseLevel}}}</th>
+
|  sdata18 = {{{offIce|}}}
    <th>{{{magic}}}</th>
+
| slabel19 = [[File:Nature_splash.png|frameless|20px]]
    <th>{{{range}}}</th>
+
|  sdata19 = {{{offNature|}}}
  </tr>
+
| sbreak20 = yes
</table>
+
| slabel21 = [[File:Chaos_splash.png|frameless|20px]]
</div>
+
|  sdata21 = {{{offChaos|}}}
<div class="infobox-title">Attack bonus</div>
+
| slabel23 = [[File:Poison_splash.png|frameless|20px]]
<div class="infobox-stats">
+
|  sdata23 = {{{offPoison|}}}
<table>
+
| slabel24 = [[File:Lightning_splash.png|frameless|20px]]
  <tr>
+
|  sdata24 = {{{offLightning|}}}
    <th>{{{accuracy}}}</th>
+
| header25 = Defensive Stats
  </tr>
+
| slabel26 = Base Threat
</table>
+
|  sdata26 = {{{threat|}}}
</div>
+
| slabel27 = Crit Avoidance
<div class="infobox-title">Defence bonus</div>
+
|  sdata27 = {{{critAvoidance|}}}
<div class="infobox-stats">
+
| slabel28 = Crit Reduction
<table>
+
|  sdata28 = {{{critReduction|}}}
  <tr>
+
| header29 = Defensive Affinities (%)
    <th>{{{stab}}}</th>
+
| slabel30 = [[File:Melee_splash.png|frameless|20px]]
    <th>{{{slash}}}</th>
+
|  sdata30 = {{{defMeele|}}}
    <th>{{{crush}}}</th>
+
| slabel31 = [[File:Magic_splash.png|frameless|20px]]
    <th>{{{magicDef}}}</th>
+
|  sdata31 = {{{defMagic|}}}
    <th>{{{rangeDef}}}</th>
+
| slabel32 = [[File:Range_splash.png|frameless|20px]]
  </tr>
+
|  sdata32 = {{{defRange|}}}
</table>
+
| sbreak33 = yes
</div>
+
| slabel34 = [[File:Stab_splash.png|frameless|20px]]
<div class="infobox-title">Strength bonus</div>
+
|  sdata34 = {{{defPiercing|}}}
<div class="infobox-stats">
+
| slabel35 = [[File:Crush_splash.png|frameless|20px]]
<table>
+
|  sdata35 = {{{defBlunt|}}}
  <tr>
+
| slabel36 = [[File:Slash_splash.png|frameless|20px]]
    <th>{{{meeleStr}}}</th>
+
|  sdata36 = {{{defSlashing|}}}
    <th>{{{rangeStr}}}</th>
+
| sbreak37 = yes
    <th>{{{magicStr}}}</th>
+
| slabel38 = [[File:Fire_splash.png|frameless|20px]]
  </tr>
+
|  sdata38 = {{{defFire|}}}
</table>
+
| slabel39 = [[File:Ice_splash.png|frameless|20px]]
</div>
+
|  sdata39 = {{{defIce|}}}
</div>
+
| slabel40 = [[File:Nature_splash.png|frameless|20px]]
 +
|  sdata40 = {{{defNature|}}}
 +
| sbreak41 = yes
 +
| slabel42 = [[File:Chaos_splash.png|frameless|20px]]
 +
|  sdata42 = {{{defChaos|}}}
 +
| slabel43 = [[File:Poison_splash.png|frameless|20px]]
 +
|  sdata43 = {{{defPoison|}}}
 +
| slabel44 = [[File:Lightning_splash.png|frameless|20px]]
 +
|  sdata44 = {{{defLightning|}}}
 +
| header45 = Notes
 +
|  sdata45 = {{{notes|}}}
 +
}}</includeonly>
 +
<noinclude>{{/doc}}[[Category:Template]]</noinclude>

Latest revision as of 14:51, 31 May 2024


Chicken
Released19-11-2019 (Update)
Zonesfarm
Offensive Stats
Attack SpeedDPSCrit ChanceCrit Multiplier
2.4s0(melee)5%110%
Offensive Affinities (%)
Melee splash.pngMagic splash.pngRange splash.png
000
Stab splash.pngCrush splash.pngSlash splash.png
000
Fire splash.pngIce splash.pngNature splash.png
000
Chaos splash.pngPoison splash.pngLightning splash.png
000
Defensive Stats
Base ThreatCrit AvoidanceCrit Reduction
-4205%10%
Defensive Affinities (%)
Melee splash.pngMagic splash.pngRange splash.png
000
Stab splash.pngCrush splash.pngSlash splash.png
0-250
Fire splash.pngIce splash.pngNature splash.png
000
Chaos splash.pngPoison splash.pngLightning splash.png
000

Usage[edit source]

Leave title empty if it's the same as the page title
Leave image empty if it's the image of page title, else put image link
offMelee means melee offensive affinity
defMelee means melee defensive affinity
you can get the stat from https://discord.com/channels/616248556956942336/1245598114254163989

{{Infobox Monster
|title=
|image=
|release=
|zones=
|attackSpeed=
|DPS=
|critChance=
|critMultiplier=
|offMelee=
|offMagic=
|offRange=
|offPiercing=
|offBlunt=
|offSlashing=
|offFire=
|offIce=
|offNature=
|offChaos=
|offPoison=
|offLightning
|threat=
|critAvoidance=
|critReduction=
|defMeele=
|defMagic=
|defRange=
|defPiercing=
|defBlunt=
|defSlashing=
|defFire=
|defIce=
|defNature=
|defChaos=
|defPoison=
|defLightning
|notes = 
}}