Editing Template:Infobox Equipment
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> |
− | | title | + | <div class="infobox-image"><img src="{{{image}}}" height="auto" width="150"></div> |
− | | | + | <table style="padding: 1em; margin: auto;"> |
+ | {{#if: {{{gold|}}}| | ||
+ | <tr> | ||
+ | <th colspan="10"><img src="https://idlescape.com/images/gold_coin.png" alt="Gold Coin" height="16" width="16"></th> | ||
+ | <td colspan="20">{{{gold}}}</td> | ||
+ | </tr> | ||
+ | |}} | ||
+ | {{#if: {{{level-req|}}}| | ||
+ | <tr> | ||
+ | <th colspan="10">Level Required</th> | ||
+ | <td colspan="20">{{{level-req}}}</td> | ||
+ | </tr> | ||
+ | |}} | ||
+ | {{#if: {{{source|}}}| | ||
+ | <tr> | ||
+ | <th colspan="10">Source</th> | ||
+ | <td colspan="20">{{{source}}}</td> | ||
+ | </tr> | ||
+ | |}} | ||
+ | {{#if: {{{slot|}}}| | ||
+ | <tr> | ||
+ | <th colspan="10">Slot</th> | ||
+ | <td colspan="20">{{{slot}}}</td> | ||
+ | </tr> | ||
+ | |}} | ||
+ | {{#if: {{{aug-slots|}}}| | ||
+ | <tr> | ||
+ | <th colspan="10">Augument Slots</th> | ||
+ | <td colspan="20">{{{aug-slots}}}</td> | ||
+ | </tr> | ||
+ | |}} | ||
+ | {{#if: {{{atk-type|}}}| | ||
+ | <tr> | ||
+ | <th colspan="10">Attack Type</th> | ||
+ | <td colspan="20">{{{atk-type}}}</td> | ||
+ | </tr> | ||
+ | |}} | ||
+ | </table> | ||
+ | {{#if: {{{atk-Type|}}}| | ||
+ | <div class="infobox-title">Offensive Stats</div> | ||
+ | <div class="infobox-stats"> | ||
+ | <table class="fullWidth-table"> | ||
+ | <tr> | ||
+ | <td colspan="6" class="infobox-nested">Stab</td> | ||
+ | <td colspan="6" class="infobox-nested">Slash</td> | ||
+ | <td colspan="6" class="infobox-nested">Crush</td> | ||
+ | <td colspan="6" class="infobox-nested">Magic</td> | ||
+ | <td colspan="6" class="infobox-nested">Range</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="6" class="infobox-nested">{{{atk-stab}}}</td> | ||
+ | <td colspan="6" class="infobox-nested">{{{atk-slash}}}</td> | ||
+ | <td colspan="6" class="infobox-nested">{{{atk-crush}}}</td> | ||
+ | <td colspan="6" class="infobox-nested">{{{atk-magic}}}</td> | ||
+ | <td colspan="6" class="infobox-nested">{{{atk-range}}}</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | </div> | ||
+ | |}} | ||
+ | {{#if: {{{def-stats|}}}| | ||
+ | <div class="infobox-title">Defensive Stats</div> | ||
+ | <div class="infobox-stats"> | ||
+ | <table class="fullWidth-table"> | ||
+ | <tr> | ||
+ | <td colspan="6" class="infobox-nested">Stab</td> | ||
+ | <td colspan="6" class="infobox-nested">Slash</td> | ||
+ | <td colspan="6" class="infobox-nested">Crush</td> | ||
+ | <td colspan="6" class="infobox-nested">Magic</td> | ||
+ | <td colspan="6" class="infobox-nested">Range</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="6" class="infobox-nested">{{{def-stab}}}</td> | ||
+ | <td colspan="6" class="infobox-nested">{{{def-slash}}}</td> | ||
+ | <td colspan="6" class="infobox-nested">{{{def-crush}}}</td> | ||
+ | <td colspan="6" class="infobox-nested">{{{def-magic}}}</td> | ||
+ | <td colspan="6" class="infobox-nested">{{{def-range}}}</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | </div> | ||
+ | |}} | ||
+ | {{#if: {{{acc|{{{melee-str|}}}}}}| | ||
+ | <div class="infobox-title">Misc. Stats</div> | ||
+ | <div class="infobox-stats"> | ||
+ | <table class="fullWidth-table"> | ||
+ | <tr> | ||
+ | <td colspan="15" class="infobox-nested">Accuracy</td> | ||
+ | <td colspan="15" class="infobox-nested">Melee Str</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="15" class="infobox-nested">{{{acc}}}</td> | ||
+ | <td colspan="15" class="infobox-nested">{{{melee-str}}}</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | </div> | ||
+ | |}} | ||
+ | {{#if: {{{aug-stab|{{{aug-slash|{{{aug-crush|{{{aug-magic|{{{aug-range|}}}}}}}}}}}}}}}| | ||
+ | <div class="infobox-title">Augument Bonus</div> | ||
+ | <div class="infobox-stats"> | ||
+ | <table class="fullWidth-table"> | ||
+ | <tr> | ||
+ | <td colspan="6" class="infobox-nested">Stab</td> | ||
+ | <td colspan="6" class="infobox-nested">Slash</td> | ||
+ | <td colspan="6" class="infobox-nested">Crush</td> | ||
+ | <td colspan="6" class="infobox-nested">Magic</td> | ||
+ | <td colspan="6" class="infobox-nested">Range</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="6" class="infobox-nested">{{{aug-stab}}}</td> | ||
+ | <td colspan="6" class="infobox-nested">{{{aug-slash}}}</td> | ||
+ | <td colspan="6" class="infobox-nested">{{{aug-crush}}}</td> | ||
+ | <td colspan="6" class="infobox-nested">{{{aug-magic}}}</td> | ||
+ | <td colspan="6" class="infobox-nested">{{{aug-range}}}</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | </div> | ||
+ | |}} | ||
+ | {{#if: {{{aug-acc|{{{aug-melee-str|}}}}}}| | ||
+ | <div class="infobox-stats"> | ||
+ | <table class="fullWidth-table"> | ||
+ | <tr> | ||
+ | <td colspan="15" class="infobox-nested">Acc</td> | ||
+ | <td colspan="15" class="infobox-nested">Melee Str</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="15" class="infobox-nested">{{{aug-acc}}}</td> | ||
+ | <td colspan="15" class="infobox-nested">{{{aug-melee-str}}}</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | </div> | ||
+ | |}} | ||
+ | {{#if: {{{aug-cost|}}}| | ||
+ | <div class="infobox-stats"> | ||
+ | <table style="padding: 1em;"> | ||
+ | <tr> | ||
+ | <th colspan="30">Aug. Cost</th> | ||
+ | <td style="text-align: left; vertical-align: middle;" colspan="20">{{{aug-cost}}}</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | </div> | ||
+ | |}} | ||
+ | </div> | ||
+ | <noinclude> | ||
+ | ====Usage==== | ||
+ | <nowiki>{{Infobox Equipment</nowiki> | ||
+ | |title = Automatic pagename, only use this if custom name is needed | ||
+ | |image = URL | ||
+ | |gold = vendor sell price | ||
+ | |level-req = level required to use item | ||
+ | |source = Source of item | ||
+ | |slot = Helmet/Shield etc | ||
+ | |aug-slots = Amount of aug slots | ||
+ | |atk-type = only needed for weapons or if armor gives attack bonus | ||
+ | |atk-stab = Requires atk-type - stab stats | ||
+ | |atk-slash = Requires atk-type - slash stats | ||
+ | |atk-crush = Requires atk-type - crush stats | ||
+ | |atk-magic = Requires atk-type - magic stats | ||
+ | |atk-range = Requires atk-type - range stats | ||
+ | |def-stats = only needed for weapons or if armor gives defensive bonus, this field is never shown | ||
+ | |def-stab = Requires def-stats - stab stats | ||
+ | |def-slash = Requires def-stats - slash stats | ||
+ | |def-crush = Requires def-stats - crush stats | ||
+ | |def-magic = Requires def-stats - magic stats | ||
+ | |def-range = Requires def-stats - range stats | ||
+ | |acc = Only shown if either acc or melee-str has a input - accuracy bonus | ||
+ | |melee-str = Only shown if either acc or melee-str has a input - melee strength bonus | ||
+ | |aug-stab = stab aug bonus | ||
+ | |aug-slash = slash aug bonus | ||
+ | |aug-crush = crush aug bonus | ||
+ | |aug-magic = magic aug bonus | ||
+ | |aug-range = range aug bonus | ||
+ | |aug-acc = Only shown if either aug-acc or aug-melee-str has a input - accuracy aug bonus | ||
+ | |aug-melee-str = Only shown if either aug-acc or aug-melee-str has a input - melee strength aug bonus | ||
+ | |aug-cost = augument material cost | ||
+ | <nowiki>}}</nowiki> | ||
− | + | ====Copy pasta code:==== | |
− | + | ||
− | | | + | <pre> |
− | | | + | {{Infobox Equipment |
− | | | + | |title = |
− | | | + | |image = |
− | + | |gold = | |
− | | | + | |level-req = |
− | + | |source = | |
− | | | + | |slot = |
− | + | |aug-slots = | |
− | | | + | |atk-type = |
− | + | |atk-stab = | |
− | | | + | |atk-slash = |
− | + | |atk-crush = | |
− | | | + | |atk-magic = |
− | + | |atk-range = | |
− | | | + | |def-stats = |
− | + | |def-stab = | |
− | | | + | |def-slash = |
− | | | + | |def-crush = |
− | + | |def-magic = | |
− | + | |def-range = | |
− | + | |acc = | |
− | | | + | |melee-str = |
− | + | |aug-stab = | |
− | | | + | |aug-slash = |
− | + | |aug-crush = | |
− | + | |aug-magic = | |
− | | | + | |aug-range = |
− | + | |aug-acc = | |
− | | | + | |aug-melee-str = |
− | + | |aug-cost = | |
− | | | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | + | </pre> | |
− | + | ||
− | + | </noinclude> | |
− | |||
− | |||
− | |||
− |