Difference between revisions of "Template:Infobox Equipment"
Jump to navigation
Jump to search
m (Show aug title with accuracy and strength.) |
m (Added magic and range str) |
||
Line 46: | Line 46: | ||
|}} | |}} | ||
</table> | </table> | ||
− | {{#if: {{{acc|{{{melee-str|}}}}}}| | + | {{#if: {{{acc|{{{melee-str|{{{range-str|}}}{{{magic-str|}}}}}}}}}| |
<div class="infobox-title">Offensive Stats</div> | <div class="infobox-title">Offensive Stats</div> | ||
<div class="infobox-stats"> | <div class="infobox-stats"> | ||
Line 53: | Line 53: | ||
<td colspan="15" class="infobox-nested">Accuracy</td> | <td colspan="15" class="infobox-nested">Accuracy</td> | ||
<td colspan="15" class="infobox-nested">Melee Str</td> | <td colspan="15" class="infobox-nested">Melee Str</td> | ||
+ | <td colspan="15" class="infobox-nested">Magic Str</td> | ||
+ | <td colspan="15" class="infobox-nested">Range Str</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="15" class="infobox-nested">{{{acc}}}</td> | <td colspan="15" class="infobox-nested">{{{acc}}}</td> | ||
<td colspan="15" class="infobox-nested">{{{melee-str}}}</td> | <td colspan="15" class="infobox-nested">{{{melee-str}}}</td> | ||
+ | <td colspan="15" class="infobox-nested">{{{magic-str}}}</td> | ||
+ | <td colspan="15" class="infobox-nested">{{{range-str}}}</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 129: | Line 133: | ||
</div> | </div> | ||
|}} | |}} | ||
− | {{#if: {{{aug-acc|{{{aug-melee-str|}}}}}}| | + | {{#if: {{{aug-acc|{{{aug-melee-str|{{{aug-magic-str|}}}{{{aug-range-str|}}}}}}}}}| |
<div class="infobox-stats"> | <div class="infobox-stats"> | ||
<table class="fullWidth-table" margin:auto;"> | <table class="fullWidth-table" margin:auto;"> | ||
Line 135: | Line 139: | ||
<td colspan="15" class="infobox-nested">Accuracy</td> | <td colspan="15" class="infobox-nested">Accuracy</td> | ||
<td colspan="15" class="infobox-nested">Melee Str</td> | <td colspan="15" class="infobox-nested">Melee Str</td> | ||
+ | <td colspan="15" class="infobox-nested">Magic Str</td> | ||
+ | <td colspan="15" class="infobox-nested">Range Str</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="15" class="infobox-nested">{{{aug-acc}}}</td> | <td colspan="15" class="infobox-nested">{{{aug-acc}}}</td> | ||
<td colspan="15" class="infobox-nested">{{{aug-melee-str}}}</td> | <td colspan="15" class="infobox-nested">{{{aug-melee-str}}}</td> | ||
+ | <td colspan="15" class="infobox-nested">{{{aug-magic-str}}}</td> | ||
+ | <td colspan="15" class="infobox-nested">{{{aug-range-str}}}</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 190: | Line 198: | ||
|aug-slots = Amount of enchantment slots | |aug-slots = Amount of enchantment slots | ||
|acc = Only shown if either acc or melee-str has a input - accuracy bonus | |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-str = Only shown if either acc or any xxx-str has a input - melee strength bonus |
+ | |magic-str = Only shown if either acc or any xxx-str has a input - magic strength bonus | ||
+ | |range-str = Only shown if either acc or any xxx-str has a input - range strength bonus | ||
|def-stats = only needed for weapons or if armor gives defensive bonus, this field is never shown | |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-stab = Requires def-stats - stab stats | ||
Line 207: | Line 217: | ||
|aug-range = range 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-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 - | + | |aug-melee-str = Only shown if either aug-acc or any aug-xxx-str has a input - melee strength aug bonus |
+ | |aug-magic-str = Only shown if either aug-acc or any aug-xxx-str has a input - magic strength aug bonus | ||
+ | |aug-range-str = Only shown if either aug-acc or any aug-xxx-str has a input - range strength aug bonus | ||
|aug-miscname1 = Name of first misc stat | |aug-miscname1 = Name of first misc stat | ||
|aug-miscstat1 = Requires miscname1 | |aug-miscstat1 = Requires miscname1 | ||
Line 230: | Line 242: | ||
|acc = | |acc = | ||
|melee-str = | |melee-str = | ||
+ | |magic-str = | ||
+ | |range-str = | ||
|def-stats = | |def-stats = | ||
|def-stab = | |def-stab = | ||
Line 247: | Line 261: | ||
|aug-acc = | |aug-acc = | ||
|aug-melee-str = | |aug-melee-str = | ||
+ | |aug-magic-str = | ||
+ | |aug-range-str = | ||
|aug-miscname1 = | |aug-miscname1 = | ||
|aug-miscstat1 = | |aug-miscstat1 = |
Revision as of 19:10, 14 October 2021
Infobox Equipment
Usage
{{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 |gold = vendor sell price |level-req = level required to use item |source = Source of item |slot = Helmet/Shield etc |atk-speed = Attack speed |atk-type = only needed for weapons or if armor gives attack bonus |aug-slots = Amount of enchantment slots |acc = Only shown if either acc or melee-str has a input - accuracy bonus |melee-str = Only shown if either acc or any xxx-str has a input - melee strength bonus |magic-str = Only shown if either acc or any xxx-str has a input - magic strength bonus |range-str = Only shown if either acc or any xxx-str has a input - range strength bonus |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 |miscname1 = Name of first misc stat |miscstat1 = Requires miscname1 |miscname2 = Name of second misc stat. Only shown of miscname1 is filled |miscstat2 = Requires miscname1 and miscname2 |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 any aug-xxx-str has a input - melee strength aug bonus |aug-magic-str = Only shown if either aug-acc or any aug-xxx-str has a input - magic strength aug bonus |aug-range-str = Only shown if either aug-acc or any aug-xxx-str has a input - range strength aug bonus |aug-miscname1 = Name of first misc stat |aug-miscstat1 = Requires miscname1 |aug-miscname2 = Name of second misc stat. Only shown of miscname1 is filled |aug-miscstat2 = Requires miscname1 and miscname2 |aug-cost = augment material cost }}
Copy pasta code:
{{Infobox Equipment |title = |image = |gold = |level-req = |source = |slot = |atk-speed = |atk-type = |aug-slots = |acc = |melee-str = |magic-str = |range-str = |def-stats = |def-stab = |def-slash = |def-crush = |def-magic = |def-range = |miscname1 = |miscstat1 = |miscname2 = |miscstat2 = |aug-stab = |aug-slash = |aug-crush = |aug-magic = |aug-range = |aug-acc = |aug-melee-str = |aug-magic-str = |aug-range-str = |aug-miscname1 = |aug-miscstat1 = |aug-miscname2 = |aug-miscstat2 = |aug-cost = }}