Difference between revisions of "Template:Infobox Item"

From Idlescape Wiki
Jump to navigation Jump to search
(added source)
(fixed some things)
Line 3: Line 3:
 
<div class="infobox-image"><img src="{{{image}}}" height="auto" width="250"></div>
 
<div class="infobox-image"><img src="{{{image}}}" height="auto" width="250"></div>
 
<table style="padding: 1em;">
 
<table style="padding: 1em;">
 +
 
<tr>
 
<tr>
     <th colspan="10"><img src="https://idlescape.com/images/gold_coin.png" alt="Gold Coin" height="20" width="20"></th>
+
     <th width="50"><img src="https://idlescape.com/images/gold_coin.png" alt="Gold Coin" height="20" width="20"></th>
     <td colspan="20">{{{gold}}}</td>
+
     <td>{{{gold}}}</td>
 
</tr>
 
</tr>
 
{{#if: {{{heat|}}}|
 
{{#if: {{{heat|}}}|
 
<tr>
 
<tr>
     <th colspan="10"><img src="https://idlescape.com/images/heat_icon.png" alt="Gold Coin" height="20" width="20"></th>
+
     <th><img src="https://idlescape.com/images/heat_icon.png" alt="Gold Coin" height="20" width="20"></th>
     <td colspan="20">{{{heat}}}</td>
+
     <td>{{{heat}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
 
{{#if: {{{hp|}}}|
 
{{#if: {{{hp|}}}|
 
<tr>
 
<tr>
     <th colspan="10">HP</th>
+
     <th>HP</th>
     <td colspan="20">{{{hp}}}</td>
+
     <td>{{{hp}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
 
{{#if: {{{level-req|}}}|
 
{{#if: {{{level-req|}}}|
 
<tr>
 
<tr>
     <th colspan="10">Level Required</th>
+
     <th>Level Required</th>
     <td colspan="20">{{{level-req}}}</td>
+
     <td>{{{level-req}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
 
{{#if: {{{source|}}}|
 
{{#if: {{{source|}}}|
 
<tr>
 
<tr>
     <th colspan="10">Source</th>
+
     <th>Source</th>
     <td colspan="20">{{{source}}}</td>
+
     <td>{{{source}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
 
</table>
 
</table>
{{#if: {{{stab|{{{slash|}}}|{{{crush|}}}|{{{accuracy|}}}|{{{strength|}}}|{{{speed|}}}|{{{attacktype|}}}|}}}|
+
{{#if: {{{stab|{{{slash|{{{crush|{{{accuracy|{{{strength|{{{speed|{{{attacktype|}}}}}}}}}}}}}}}}}}}}}|
 
<div class="infobox-title">Combat Stats</div>
 
<div class="infobox-title">Combat Stats</div>
 
<div class="infobox-stats">
 
<div class="infobox-stats">
 
<table style="padding: 1em;">
 
<table style="padding: 1em;">
{{#if: {{{stab|}}} |
+
{{#if: {{{stab|a}}} |
 
<tr>
 
<tr>
     <th colspan="10">Stab Defense</th>
+
     <th width="90">Stab Defense</th>
     <td colspan="20">{{{stab}}}</td>
+
     <td>{{{stab}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
 
{{#if: {{{slash|}}} |
 
{{#if: {{{slash|}}} |
 
<tr>
 
<tr>
     <th colspan="10">Slash Defense</th>
+
     <th width="90">Slash Defense</th>
     <td colspan="20">{{{slash}}}</td>
+
     <td>{{{slash}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
 
{{#if: {{{crush|}}} |
 
{{#if: {{{crush|}}} |
 
<tr>
 
<tr>
     <th colspan="10">Crush Defense</th>
+
     <th width="90">Crush Defense</th>
     <td colspan="20">{{{crush}}}</td>
+
     <td>{{{crush}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
 
{{#if: {{{accuracy|}}} |
 
{{#if: {{{accuracy|}}} |
 
<tr>
 
<tr>
     <th colspan="10">Accuracy</th>
+
     <th width="90">Accuracy</th>
     <td colspan="20">{{{accuracy}}}</td>
+
     <td>{{{accuracy}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
 
{{#if: {{{strength|}}} |
 
{{#if: {{{strength|}}} |
 
<tr>
 
<tr>
     <th colspan="10">Strength</th>
+
     <th width="90">Strength</th>
     <td colspan="20">{{{strength}}}</td>
+
     <td>{{{strength}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
 
{{#if: {{{speed|}}} |
 
{{#if: {{{speed|}}} |
 
<tr>
 
<tr>
     <th colspan="10">Attack Speed</th>
+
     <th width="90">Attack Speed</th>
     <td colspan="20">{{{speed}}}</td>
+
     <td>{{{speed}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
 
{{#if: {{{attacktype|}}} |
 
{{#if: {{{attacktype|}}} |
 
<tr>
 
<tr>
     <th colspan="10">Attack Type</th>
+
     <th width="90">Attack Type</th>
     <td colspan="20">{{{attacktype}}}</td>
+
     <td>{{{attacktype}}}</td>
 
</tr>
 
</tr>
}}
+
|}}
 
</table>
 
</table>
 
</div>
 
</div>
Line 84: Line 85:
 
<div class="infobox-title">Non Combat Stat</div>
 
<div class="infobox-title">Non Combat Stat</div>
 
<div class="infobox-stats">
 
<div class="infobox-stats">
<table class="fullWidth-table">
+
<table style="padding: 1em;">
 
<tr>
 
<tr>
<th colspan="10">{{{non-combat-name|}}}</th>
+
<th>{{{non-combat-name}}}</th>
<td colspan="20">{{{non-combat-stat|}}}</td>
+
<td>{{{non-combat-stat}}}</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 95: Line 96:
 
<div class="infobox-title">Seeds</div>
 
<div class="infobox-title">Seeds</div>
 
<div class="infobox-stats">
 
<div class="infobox-stats">
<table class="fullWidth-table">
+
<table style="padding: 1em;">
 
<tr>
 
<tr>
     <th colspan="10">Seed Size</th>
+
     <th width="80">Seed Size</th>
     <td colspan="20">{{{seed-size}}}</td>
+
     <td>{{{seed-size}}}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
     <th colspan="10">Experience</th>
+
     <th>Experience</th>
     <td colspan="20">{{{experience}}}</td>
+
     <td>{{{experience}}}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
     <th colspan="10">Harvest Time</th>
+
     <th>Harvest Time</th>
     <td colspan="20">{{{harvest-time}}}</td>
+
     <td>{{{harvest-time}}}</td>
 
</tr>
 
</tr>
 
</table>
 
</table>

Revision as of 09:07, 27 August 2020

Infobox Item
Gold Coin {{{gold}}}



Usage

{{Infobox Item
|title =
|image =
|gold =
|heat =
|hp =
|source=
|level-req =
|stab =
|slash =
|crush =
|accuracy =
|strength =
|speed =
|attacktype =
|non-combat-name =
|non-combat-stat =
|seed-size =
|experience =
|harvest-time =
}}