Difference between revisions of "Template:Infobox Enchantment"

From Idlescape Wiki
Jump to navigation Jump to search
m (Autofill image from pagename.)
m (Autofilled other images.)
Line 26: Line 26:
 
<table style="padding: 1em; margin: auto;">
 
<table style="padding: 1em; margin: auto;">
 
<tr>
 
<tr>
     <th colspan="10"><img src="{{{scroll-img}}}" height="auto" width="42"></th>
+
     <th colspan="10">{{#if: {{{scroll-img|}}}|<img src="{{{scroll-img}}}" height="auto" width="42">|{{img|{{{scroll-name}}}|42}}}}</th>
 
     <td colspan="20">{{{scroll-name}}}</td>
 
     <td colspan="20">{{{scroll-name}}}</td>
 
</tr>
 
</tr>
Line 78: Line 78:
 
<table style="padding: 1em; margin: auto;">
 
<table style="padding: 1em; margin: auto;">
 
<tr>
 
<tr>
     <th colspan="10"><img src="{{{food-img}}}" height="auto" width="42"></th>
+
     <th colspan="10">{{#if: {{{food-img|}}}|<img src="{{{food-img}}}" height="auto" width="42">|{{img|{{{food-name}}}|42}}}}</th>
 
     <td colspan="20">{{{food-name}}}</td>
 
     <td colspan="20">{{{food-name}}}</td>
 
</tr>
 
</tr>
Line 99: Line 99:
 
====Usage====
 
====Usage====
 
  <pre>{{Infobox Enchantment
 
  <pre>{{Infobox Enchantment
  |title = Automatic pagename, only use this if custom name is needed
+
  |title = Autofilled from pagename, only use this if custom name is needed
  |image = Automatic pagename, Img URL e.g. https://idlescape.com/images/combat/equipment/bronze_med_helm_icon.png
+
  |image = Autofilled from pagename, img URL e.g. https://idlescape.com/images/combat/equipment/bronze_med_helm_icon.png
 
  |desc = In game description
 
  |desc = In game description
 
  |max-buff = Maximum possible buff (+Food)
 
  |max-buff = Maximum possible buff (+Food)
 
  |max-effect = Maximum possible effect (+Food)
 
  |max-effect = Maximum possible effect (+Food)
|scroll-img = Scroll image URL
 
 
  |scroll-name = Scroll name
 
  |scroll-name = Scroll name
 +
|scroll-img = Autofilled from scroll-name, Scroll image URL
 
  |scroll-slot = Scroll equipment type
 
  |scroll-slot = Scroll equipment type
 
  |scroll-source = Source of scroll
 
  |scroll-source = Source of scroll
Line 113: Line 113:
 
  |rune-type = Type of runes
 
  |rune-type = Type of runes
 
  |experience = Scrollcrafting experience
 
  |experience = Scrollcrafting experience
|food-img = Ingredient image URL
 
 
  |food-name = Ingredient name
 
  |food-name = Ingredient name
 +
|food-img = Autofilled from food-name, ingredient image URL
 
  |food-source = Source of ingredient
 
  |food-source = Source of ingredient
 
  |food-effect = Buff effect of the food
 
  |food-effect = Buff effect of the food

Revision as of 08:18, 27 January 2022

Infobox Enchantment
Infobox Enchantment


Usage

{{Infobox Enchantment
 |title = Autofilled from pagename, only use this if custom name is needed
 |image = Autofilled from pagename, img URL e.g. https://idlescape.com/images/combat/equipment/bronze_med_helm_icon.png
 |desc = In game description
 |max-buff = Maximum possible buff (+Food)
 |max-effect = Maximum possible effect (+Food)
 |scroll-name = Scroll name
 |scroll-img = Autofilled from scroll-name, Scroll image URL
 |scroll-slot = Scroll equipment type
 |scroll-source = Source of scroll
 |scroll-level = Enchanting level required to craft scroll
 |silver = Number of silver for scroll
 |rune-amount = Number of runes for scroll
 |rune-type = Type of runes
 |experience = Scrollcrafting experience
 |food-name = Ingredient name
 |food-img = Autofilled from food-name, ingredient image URL
 |food-source = Source of ingredient
 |food-effect = Buff effect of the food
 }}

Copy pasta code:

{{Infobox Enchantment
|title = 
|image = 
|desc = 
|max-buff = 
|max-effect = 
|scroll-img = 
|scroll-name = 
|scroll-slot = 
|scroll-source = 
|scroll-level = 
|silver = 
|rune-amount = 
|rune-type = 
|experience = 
|food-img = 
|food-name = 
|food-source = 
|food-effect = 
}}