Editing Template:Infobox Enchantment
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | < | + | <div class="infobox"> |
− | + | <div class="infobox-header">{{{title|{{PAGENAME}}}}}</div> | |
− | + | <div class="infobox-image">{{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="130">|{{img|{{PAGENAME}}|130}}}}</div> | |
− | + | <table style="padding: 1em; margin: auto;"> | |
− | | | + | {{#if: {{{desc|}}}| |
− | | | + | <tr> |
− | | | + | <th colspan="10" style="white-space: nowrap;">Description</th> |
− | + | <td colspan="20">{{{desc}}}</td> | |
− | + | </tr> | |
− | + | |}} | |
− | + | {{#if: {{{max-buff|}}}| | |
− | + | <tr> | |
− | + | <th colspan="10">Max Buff (+Food)</th> | |
− | + | <td colspan="20">{{{max-buff}}}</td> | |
− | + | </tr> | |
− | + | |}} | |
− | + | {{#if: {{{max-effect|}}}| | |
− | + | <tr> | |
− | + | <th colspan="10">Max Effect (+Food)</th> | |
− | + | <td colspan="20">{{{max-effect}}}</td> | |
− | + | </tr> | |
− | + | |}} | |
− | + | </table> | |
− | | | + | {{#if: {{{scroll-name|}}}| |
− | + | <div class="infobox-title">Scroll</div> | |
− | + | <table style="padding: 1em; margin: auto;"> | |
− | + | <tr> | |
− | + | <th colspan="10">{{#if: {{{scroll-img|}}}|<img src="{{{scroll-img}}}" height="auto" width="42">|{{img|{{{scroll-name}}}|42}}}}</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: {{{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> | ||
+ | [[Category:Template]] | ||
+ | </noinclude> |