Difference between revisions of "Template:Infobox Enchantment"

From Idlescape Wiki
Jump to navigation Jump to search
m (Undo revision 4912 by Silent1 (talk))
Tag: Undo
m (Autofill image from pagename.)
Line 1: Line 1:
 
<div class="infobox">
 
<div class="infobox">
 
<div class="infobox-header">{{{title|{{PAGENAME}}}}}</div>
 
<div class="infobox-header">{{{title|{{PAGENAME}}}}}</div>
<div class="infobox-image"><img src="{{{image}}}" height="auto" width="130"></div>
+
<div class="infobox-image">{{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="150">|{{img|{{PAGENAME}}|130}}}}</div>
 
<table style="padding: 1em; margin: auto;">
 
<table style="padding: 1em; margin: auto;">
 
{{#if: {{{desc|}}}|
 
{{#if: {{{desc|}}}|
Line 100: Line 100:
 
  <pre>{{Infobox Enchantment
 
  <pre>{{Infobox Enchantment
 
  |title = Automatic pagename, only use this if custom name is needed
 
  |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
+
  |image = Automatic 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)

Revision as of 08:03, 27 January 2022

Infobox Enchantment
Infobox Enchantment


Usage

{{Infobox Enchantment
 |title = Automatic 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
 |desc = In game description
 |max-buff = Maximum possible buff (+Food)
 |max-effect = Maximum possible effect (+Food)
 |scroll-img = Scroll image URL
 |scroll-name = Scroll name
 |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-img = Ingredient image URL
 |food-name = Ingredient name
 |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 = 
}}