Difference between revisions of "Template:Infobox Enchantment"

From Idlescape Wiki
Jump to navigation Jump to search
m (Testing)
m (Testing)
Line 46: Line 46:
 
|}}
 
|}}
 
</table>
 
</table>
{{#if: {{{acc|{{{melee-str|}}}}}}|
 
<div class="infobox-title">Offensive Stats</div>
 
<div class="infobox-stats">
 
<table class="fullWidth-table">
 
  <tr>
 
    <td colspan="15" class="infobox-nested">Accuracy</td>
 
    <td colspan="15" class="infobox-nested">Melee Str</td>
 
  </tr>
 
  <tr>
 
    <td colspan="15" class="infobox-nested">{{{acc}}}</td>
 
    <td colspan="15" class="infobox-nested">{{{melee-str}}}</td>
 
  </tr>
 
</table>
 
</div>
 
|}}
 
{{#if: {{{def-stats|}}}|
 
<div class="infobox-title">Defensive Stats</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">{{{def-stab}}}</td>
 
    <td colspan="6" class="infobox-nested">{{{def-slash}}}</td>
 
    <td colspan="6" class="infobox-nested">{{{def-crush}}}</td>
 
    <td colspan="6" class="infobox-nested">{{{def-magic}}}</td>
 
    <td colspan="6" class="infobox-nested">{{{def-range}}}</td>
 
  </tr>
 
</table>
 
</div>
 
|}}
 
{{#if: {{{miscname1|}}}|
 
<div class="infobox-title">Misc. Stats</div>
 
<div class="infobox-stats">
 
<table class="fullWidth-table" margin:auto;">
 
{{#if:{{{miscname2|}}}|
 
  <tr>
 
    <td colspan="15" class="infobox-nested">{{{miscname1}}}</td>
 
    <td colspan="15" class="infobox-nested">{{{miscname2}}}</td>
 
  </tr>
 
  <tr>
 
    <td colspan="15" class="infobox-nested">{{{miscstat1}}}</td>
 
    <td colspan="15" class="infobox-nested">{{{miscstat2}}}</td>
 
  </tr>
 
|
 
  <tr>
 
    <td colspan="30" class="infobox-nested">{{{miscname1}}}</td>
 
  </tr>
 
  <tr>
 
    <td colspan="30" class="infobox-nested">{{{miscstat1}}}</td>
 
  </tr>
 
}}
 
</table>
 
</div>
 
|}}
 
{{#if: {{{aug-stab|{{{aug-slash|{{{aug-crush|{{{aug-magic|{{{aug-range|}}}}}}}}}}}}}}}|
 
<div class="infobox-title">Augment 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">{{{aug-stab}}}</td>
 
    <td colspan="6" class="infobox-nested">{{{aug-slash}}}</td>
 
    <td colspan="6" class="infobox-nested">{{{aug-crush}}}</td>
 
    <td colspan="6" class="infobox-nested">{{{aug-magic}}}</td>
 
    <td colspan="6" class="infobox-nested">{{{aug-range}}}</td>
 
  </tr>
 
</table>
 
</div>
 
|}}
 
{{#if: {{{aug-acc|{{{aug-melee-str|}}}}}}|
 
<div class="infobox-stats">
 
<table class="fullWidth-table" margin:auto;">
 
  <tr>
 
    <td colspan="15" class="infobox-nested">Accuracy</td>
 
    <td colspan="15" class="infobox-nested">Melee Str</td>
 
  </tr>
 
  <tr>
 
    <td colspan="15" class="infobox-nested">{{{aug-acc}}}</td>
 
    <td colspan="15" class="infobox-nested">{{{aug-melee-str}}}</td>
 
  </tr>
 
</table>
 
</div>
 
|}}
 
{{#if: {{{aug-miscname1|}}}|
 
<div class="infobox-stats">
 
<table class="fullWidth-table" margin:auto;">
 
{{#if:{{{aug-miscname2|}}}|
 
  <tr>
 
    <td colspan="15" class="infobox-nested">{{{aug-miscname1}}}</td>
 
    <td colspan="15" class="infobox-nested">{{{aug-miscname2}}}</td>
 
  </tr>
 
  <tr>
 
    <td colspan="15" class="infobox-nested">{{{aug-miscstat1}}}</td>
 
    <td colspan="15" class="infobox-nested">{{{aug-miscstat2}}}</td>
 
  </tr>
 
|
 
  <tr>
 
    <td colspan="30" class="infobox-nested">{{{aug-miscname1}}}</td>
 
  </tr>
 
  <tr>
 
    <td colspan="30" class="infobox-nested">{{{aug-miscstat1}}}</td>
 
  </tr>
 
}}
 
</table>
 
</div>
 
|}}
 
{{#if: {{{aug-cost|}}}|
 
<div class="infobox-stats">
 
<table style="padding: 1em; margin:auto;">
 
<tr>
 
    <th colspan="15">Aug. Cost</th>
 
    <td style="text-align: left; vertical-align: middle;" colspan="15">{{{aug-cost}}}</td>
 
</tr>
 
</table>
 
</div>
 
|}}
 
 
</div>
 
</div>
 
<noinclude>
 
<noinclude>

Revision as of 05:03, 24 August 2021

Infobox Enchantment

Usage

{{Infobox Equipment
 |title = Automatic pagename, only use this if custom name is needed
 |image = Img URL e.g. https://idlescape.com/images/combat/equipment/bronze_med_helm_icon.png
 |desc = In game description
 |max-buff = Maximum possible buff
 |max-effect = Maximum possible effect
 |shrine-buff = Past highest shrine buff
 |scroll-image = Scroll image URL
 |scroll-name = Scroll name
 |scroll-slot = Scroll equipment type
 |scroll-source = Source of scroll
 |food-image = Ingredient image URL
 |food-name = Ingredient name
 |food-source = Source of ingredient
 }}

Copy pasta code:

{{Infobox Equipment
|title = 
|image = 
|desc = 
|max-buff = 
|max-effect = 
|shrine-buff = 
|scroll-image = 
|scroll-name = 
|scroll-slot = 
|scroll-source = 
|food-image = 
|food-name = 
|food-source = 
}}