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)
 
(25 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: {{{gold|}}}|
+
| label1  = Description
<tr>
+
|  data1  = {{{desc|}}}
    <th colspan="10"><img src="https://idlescape.com/images/gold_coin.png" alt="Gold Coin" height="16" width="16"></th>
+
| header20 = Scroll
    <td colspan="20">{{{gold}}}</td>
+
| label21 = {{#if: {{{scroll-img|}}}|<img src="{{{scroll-img}}}" height="auto" width="42">|{{img|{{{scroll-name}}}|42}}}}
</tr>
+
|  data21 = {{{scroll-name|}}}
|}}
+
| label22 = Slot
{{#if: {{{level-req|}}}|
+
|  data22 = {{{scroll-slot|}}}
<tr>
+
|  label23 = Source
    <th colspan="10">Level Required</th>
+
|   data23 = {{{scroll-source|}}}
    <td colspan="20">{{{level-req}}}</td>
+
| label24 = Level
</tr>
+
|  data24 = {{{scroll-level|}}}
|}}
+
|  label25 = Silver
{{#if: {{{source|}}}|
+
|   data25 = {{{silver|}}}
<tr>
+
| label26 = Rune Amount
    <th colspan="10">Source</th>
+
|  data26 = {{{rune-amount|}}}
    <td colspan="20">{{{source}}}</td>
+
|  label27 = Rune Type
</tr>
+
|   data27 = {{{rune-type|}}}
|}}
+
| label28 = Experience
{{#if: {{{slot|}}}|
+
|  data28 = {{{experience|}}}
<tr>
+
| header40 = Cooking Ingredient
    <th colspan="10">Slot</th>
+
| label41 = {{#if: {{{food-img|}}}|<img src="{{{food-img}}}" height="auto" width="42">|{{img|{{{food-name}}}|42}}}}
    <td colspan="20">{{{slot}}}</td>
+
|  data41 = {{{food-name|}}}
</tr>
+
label42 = Source
|}}
+
|   data42 = {{{food-source|}}}
{{#if: {{{atk-speed|}}}|
+
| label43 = Effect
<tr>
+
|   data43 = {{{food-effect|}}}
    <th colspan="10">Attack Speed</th>
+
}}</includeonly>
    <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>
 
|}}
 
</table>
 
</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

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