Difference between revisions of "Template:Infobox Enchantment"

From Idlescape Wiki
Jump to navigation Jump to search
m (Testing)
(removing max buff and % since they will be outdated until it is automated)
 
(28 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div class="infobox">
+
<noinclude>{{Template:Infobox Enchantment/doc}}</noinclude><includeonly>{{Infobox
<div class="infobox-header">{{{title|{{PAGENAME}}}}}</div>
+
| autoheaders    = y
<div class="infobox-image"><img src="{{{image}}}" height="auto" width="130"></div>
+
| title          = {{{title|{{PAGENAME}}}}}
<table style="padding: 1em; margin: auto;">
+
|  image        = {{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="150">|{{img|{{PAGENAME}}|150}}}}
{{#if: {{{desc|}}}|
+
| label1  = Description
<tr>
+
|  data1  = {{{desc|}}}
    <th colspan="10">Description</th>
+
| header20 = Scroll
    <td colspan="20">{{{desc}}}</td>
+
| label21 = {{#if: {{{scroll-img|}}}|<img src="{{{scroll-img}}}" height="auto" width="42">|{{img|{{{scroll-name}}}|42}}}}
</tr>
+
|   data21 = {{{scroll-name|}}}
|}}
+
| label22 = Slot
{{#if: {{{max-buff|}}}|
+
|   data22 = {{{scroll-slot|}}}
<tr>
+
| label23 = Source
    <th colspan="10">Maximum Buff</th>
+
|  data23 = {{{scroll-source|}}}
    <td colspan="20">{{{max-buff}}}</td>
+
|  label24 = Level
</tr>
+
|  data24 = {{{scroll-level|}}}
|}}
+
|  label25 = Silver
{{#if: {{{max-effect|}}}|
+
|  data25 = {{{silver|}}}
<tr>
+
| label26 = Rune Amount
    <th colspan="10">Maximum Effect</th>
+
|  data26 = {{{rune-amount|}}}
    <td colspan="20">{{{max-effect}}}</td>
+
|  label27 = Rune Type
</tr>
+
|   data27 = {{{rune-type|}}}
|}}
+
| label28 = Experience
{{#if: {{{shrine|}}}|
+
|  data28 = {{{experience|}}}
<tr>
+
| header40 = Cooking Ingredient
    <th colspan="10">Shrine Buff</th>
+
| label41 = {{#if: {{{food-img|}}}|<img src="{{{food-img}}}" height="auto" width="42">|{{img|{{{food-name}}}|42}}}}
    <td colspan="20">{{{shrine}}}</td>
+
|  data41 = {{{food-name|}}}
</tr>
+
| label42 = Source
|}}
+
|  data42 = {{{food-source|}}}
</table>
+
label43 = Effect
<noinclude>
+
|   data43 = {{{food-effect|}}}
{{#if: {{{scroll-img|{{{scroll-name|}}}}}}|
+
}}</includeonly>
<div class="infobox-title">Scroll</div>
 
<tr>
 
    <th colspan="10"><div class="infobox-image"><img src="{{{scroll-img}}}" height="auto" width="32"></div></th>
 
    <td colspan="20">{{{scroll-name}}}</td>
 
</tr>
 
{{#if: {{{scroll-slot|}}}|
 
<tr>
 
<th colspan="10">Slot</th>
 
<td colspan="20">{{{scroll-slot}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{scroll-source|}}}|
 
<tr>
 
<th colspan="10">Source</th>
 
<td colspan="20">{{{scroll-source}}}</td>
 
</tr>
 
|}}
 
|}}
 
{{#if: {{{food-img|{{{food-name|}}}}}}|
 
<div class="infobox-title">Scroll</div>
 
<tr>
 
    <th colspan="10"><div class="infobox-image"><img src="{{{food-img}}}" height="auto" width="32"></div></th>
 
    <td colspan="20">{{{food-name}}}</td>
 
</tr>
 
{{#if: {{{food-source|}}}|
 
<tr>
 
<th colspan="10">Source</th>
 
<td colspan="20">{{{scroll-source}}}</td>
 
</tr>
 
|}}
 
|}}
 
</div>
 
<noinclude>
 
====Usage====
 
<pre>{{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
 
}}</pre>
 
 
 
====Copy pasta code:====
 
 
 
<pre>
 
{{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 =
 
}}
 
</pre>
 
 
 
</noinclude>
 

Latest revision as of 20:48, 17 November 2023

Usage[edit source]

{{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:[edit source]

{{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 = 
}}