Difference between revisions of "Template:Infobox Enchantment"
Jump to navigation
Jump to search
m (food-img cannot autofill if food-name is a link.) |
m (Changed usage explanation) |
||
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">{{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width=" | + | <div class="infobox-image">{{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="130">|{{img|{{PAGENAME}}|130}}}}</div> |
<table style="padding: 1em; margin: auto;"> | <table style="padding: 1em; margin: auto;"> | ||
{{#if: {{{desc|}}}| | {{#if: {{{desc|}}}| | ||
Line 113: | Line 113: | ||
|rune-type = Type of runes | |rune-type = Type of runes | ||
|experience = Scrollcrafting experience | |experience = Scrollcrafting experience | ||
− | |food-name = Ingredient name | + | |food-name = Ingredient name, will automatically create a link eg. Salt -> [[Salt]] |
− | |food-img = | + | |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 11:14, 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, will automatically create a link eg. Salt -> [[Salt]] |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-name = |scroll-img = |scroll-slot = |scroll-source = |scroll-level = |silver = |rune-amount = |rune-type = |experience = |food-name = |food-img = |food-source = |food-effect = }}