Difference between revisions of "Template:Infobox Enchantment"

From Idlescape Wiki
Jump to navigation Jump to search
m (Testing)
m (Testing)
Line 3: Line 3:
 
<div class="infobox-image"><img src="{{{image}}}" height="auto" width="130"></div>
 
<div class="infobox-image"><img src="{{{image}}}" height="auto" width="130"></div>
 
<table style="padding: 1em; margin: auto;">
 
<table style="padding: 1em; margin: auto;">
{{#if: {{{gold|}}}|
+
{{#if: {{{desc|}}}|
 
<tr>
 
<tr>
     <th colspan="10"><img src="https://idlescape.com/images/gold_coin.png" alt="Gold Coin" height="16" width="16"></th>
+
     <th colspan="10">Description</th>
     <td colspan="20">{{{gold}}}</td>
+
     <td colspan="20">{{{desc}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
{{#if: {{{level-req|}}}|
+
{{#if: {{{max-buff|}}}|
 
<tr>
 
<tr>
     <th colspan="10">Level Required</th>
+
     <th colspan="10">Maximum Buff</th>
 
     <td colspan="20">{{{level-req}}}</td>
 
     <td colspan="20">{{{level-req}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
{{#if: {{{source|}}}|
+
{{#if: {{{max-effect|}}}|
 
<tr>
 
<tr>
     <th colspan="10">Source</th>
+
     <th colspan="10">Maximum Effect</th>
     <td colspan="20">{{{source}}}</td>
+
     <td colspan="20">{{{max-effect}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
{{#if: {{{slot|}}}|
+
{{#if: {{{shrine|}}}|
 
<tr>
 
<tr>
     <th colspan="10">Slot</th>
+
     <th colspan="10">Shrine Buff</th>
     <td colspan="20">{{{slot}}}</td>
+
     <td colspan="20">{{{shrine}}}</td>
</tr>
 
|}}
 
{{#if: {{{atk-speed|}}}|
 
<tr>
 
    <th colspan="10">Attack Speed</th>
 
    <td colspan="20">{{{atk-speed}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{atk-type|}}}|
 
<tr>
 
    <th colspan="10">Attack Type</th>
 
    <td colspan="20">{{{atk-type}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{aug-slots|}}}|
 
<tr>
 
    <th colspan="10">Enchantment Slots</th>
 
    <td colspan="20">{{{aug-slots}}}</td>
 
 
</tr>
 
</tr>
 
|}}
 
|}}

Revision as of 05:06, 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 = 
}}