Difference between revisions of "Template:Infobox Enchantment"

From Idlescape Wiki
Jump to navigation Jump to search
m (Changed usage explanation)
m (Used infobox template)
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">{{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="130">|{{img|{{PAGENAME}}|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" style="white-space: nowrap;">Description</th>
+
| label2  = Max Buff (+Food)
    <td colspan="20">{{{desc}}}</td>
+
|  data2  = {{{max-buff|}}}
</tr>
+
| label3  = Max Effect (+Food)
|}}
+
|  data3  = {{{max-effect|}}}
{{#if: {{{max-buff|}}}|
+
| header20 = Scroll
<tr>
+
|  data21 = {{#if: {{{scroll-img|}}}|<img src="{{{scroll-img}}}" height="auto" width="42">{{{scroll-name}}}|{{img|{{{scroll-name}}}|42|word=1}}}}
    <th colspan="10">Max Buff (+Food)</th>
+
| label22 = Slot
    <td colspan="20">{{{max-buff}}}</td>
+
|  data22 = {{scroll-slot|}}}
</tr>
+
| label23 = Source
|}}
+
|  data23 = {{{scroll-source|}}}
{{#if: {{{max-effect|}}}|
+
| label24 = Level
<tr>
+
|  data24 = {{{scroll-level|}}}
    <th colspan="10">Max Effect (+Food)</th>
+
| label25 = Silver
    <td colspan="20">{{{max-effect}}}</td>
+
|  data25 = {{{silver|}}}
</tr>
+
| label26 = Rune Amount
|}}
+
|  data26 = {{{rune-amount|}}}
</table>
+
| label27 = Rune Type
{{#if: {{{scroll-name|}}}|
+
|  data27 = {{{rune-type|}}}
<div class="infobox-title">Scroll</div>
+
| label28 = Experience
<table style="padding: 1em; margin: auto;">
+
|  data28 = {{{experience|}}}
<tr>
+
| header40 = Cooking Ingredient
    <th colspan="10">{{#if: {{{scroll-img|}}}|<img src="{{{scroll-img}}}" height="auto" width="42">|{{img|{{{scroll-name}}}|42}}}}</th>
+
|  data41 = {{#if: {{{food-img|}}}|<img src="{{{scroll-img}}}" height="auto" width="42">{{{food-name}}}|{{img|{{{food-name}}}|42|word=1}}}}
    <td colspan="20">{{{scroll-name}}}</td>
+
| label42 = Source
</tr>
+
|  data42 = {{{food-source|}}}
 
+
| label43 = Effect
{{#if: {{{scroll-slot|}}}|
+
|  data43 = {{{food-effect|}}}
<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: {{{scroll-level|}}}|
 
<tr>
 
<th colspan="10">Level</th>
 
<td colspan="20">{{{scroll-level}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{silver|}}}|
 
<tr>
 
<th colspan="10">Silver</th>
 
<td colspan="20">{{{silver}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{rune-amount|}}}|
 
<tr>
 
<th colspan="10">Rune Amount</th>
 
<td colspan="20">{{{rune-amount}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{rune-type|}}}|
 
<tr>
 
<th colspan="10">Rune Type</th>
 
<td colspan="20">{{{rune-type}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{experience|}}}|
 
<tr>
 
<th colspan="10">Experience</th>
 
<td colspan="20">{{{experience}}}</td>
 
</tr>
 
|}}
 
</table>
 
|}}
 
{{#if: {{{food-name|}}}|
 
<div class="infobox-title">Cooking Ingredient</div>
 
<table style="padding: 1em; margin: auto;">
 
<tr>
 
    <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>
 
</tr>
 
{{#if: {{{food-source|}}}|
 
<tr>
 
<th colspan="10">Source</th>
 
<td colspan="20">{{{food-source}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{food-effect|}}}|
 
<tr>
 
<th colspan="10">Effect</th>
 
<td colspan="20">{{{food-effect}}}</td>
 
</tr>
 
|}}
 
</table>
 
|}}
 
</div>
 
<noinclude>
 
====Usage====
 
<pre>{{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
 
}}</pre>
 
 
 
====Copy pasta code:====
 
 
 
<pre>
 
{{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 =
 
 
}}
 
}}
</pre>
+
}}</includeonly>
[[Category:Template]]
 
</noinclude>
 

Revision as of 07:50, 13 February 2022

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