Difference between revisions of "Template:Infobox Equipment"

From Idlescape Wiki
Jump to navigation Jump to search
m (Added attack speed)
(added a way to add misc stats)
Line 46: Line 46:
 
|}}
 
|}}
 
</table>
 
</table>
{{#if: {{{atk-stats|}}}|
+
{{#if: {{{acc|{{{melee-str|}}}}}}|
 
<div class="infobox-title">Offensive Stats</div>
 
<div class="infobox-title">Offensive Stats</div>
 
<div class="infobox-stats">
 
<div class="infobox-stats">
 
<table class="fullWidth-table">
 
<table class="fullWidth-table">
 
   <tr>
 
   <tr>
     <td colspan="6" class="infobox-nested">Stab</td>
+
     <td colspan="15" class="infobox-nested">Accuracy</td>
     <td colspan="6" class="infobox-nested">Slash</td>
+
     <td colspan="15" class="infobox-nested">Melee Str</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>
 
   <tr>
 
   <tr>
     <td colspan="6" class="infobox-nested">{{{atk-stab}}}</td>
+
     <td colspan="15" class="infobox-nested">{{{acc}}}</td>
    <td colspan="6" class="infobox-nested">{{{atk-slash}}}</td>
+
     <td colspan="15" class="infobox-nested">{{{melee-str}}}</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>
 
   </tr>
 
</table>
 
</table>
Line 88: Line 82:
 
</div>
 
</div>
 
|}}
 
|}}
{{#if: {{{acc|{{{melee-str|}}}}}}|
+
{{#if: {{{miscname1|}}}|
 
<div class="infobox-title">Misc. Stats</div>
 
<div class="infobox-title">Misc. Stats</div>
 
<div class="infobox-stats">
 
<div class="infobox-stats">
<table class="fullWidth-table" style="padding: 1em; margin:auto;">
+
<table class="fullWidth-table" margin:auto;">
 +
{{#if:{{{miscname2|}}|
 +
  <tr>
 +
    <td colspan="15" class="infobox-nested">{{{miscname1}}}</td>
 +
    <td colspan="15" class="infobox-nested">{{{miscname2}}}</td>
 +
  </tr>
 +
  <tr>
 +
    <td colspan="15" class="infobox-nested">{{{miscstat1}}}</td>
 +
    <td colspan="15" class="infobox-nested">{{{miscstat2}}}</td>
 +
  </tr>
 +
|
 
   <tr>
 
   <tr>
     <td colspan="15" class="infobox-nested">Accuracy</td>
+
     <td colspan="30" class="infobox-nested">{{{miscname1}}}</td>
    <td colspan="15" class="infobox-nested">Melee Str</td>
 
 
   </tr>
 
   </tr>
 
   <tr>
 
   <tr>
     <td colspan="15" class="infobox-nested">{{{acc}}}</td>
+
     <td colspan="30" class="infobox-nested">{{{miscstat1}}}</td>
    <td colspan="15" class="infobox-nested">{{{melee-str}}}</td>
 
 
   </tr>
 
   </tr>
 +
}}
 
</table>
 
</table>
 
</div>
 
</div>
Line 126: Line 129:
 
{{#if: {{{aug-acc|{{{aug-melee-str|}}}}}}|
 
{{#if: {{{aug-acc|{{{aug-melee-str|}}}}}}|
 
<div class="infobox-stats">
 
<div class="infobox-stats">
<table class="fullWidth-table" style="padding: 1em; margin:auto;">
+
<table class="fullWidth-table" margin:auto;">
 
   <tr>
 
   <tr>
 
     <td colspan="15" class="infobox-nested">Accuracy</td>
 
     <td colspan="15" class="infobox-nested">Accuracy</td>
Line 135: Line 138:
 
     <td colspan="15" class="infobox-nested">{{{aug-melee-str}}}</td>
 
     <td colspan="15" class="infobox-nested">{{{aug-melee-str}}}</td>
 
   </tr>
 
   </tr>
 +
</table>
 +
</div>
 +
|}}
 +
{{#if: {{{aug-miscname1|}}}|
 +
<div class="infobox-stats">
 +
<table class="fullWidth-table" margin:auto;">
 +
{{#if:{{{aug-miscname2|}}|
 +
  <tr>
 +
    <td colspan="15" class="infobox-nested">{{{aug-miscname1}}}</td>
 +
    <td colspan="15" class="infobox-nested">{{{aug-miscname2}}}</td>
 +
  </tr>
 +
  <tr>
 +
    <td colspan="15" class="infobox-nested">{{{aug-miscstat1}}}</td>
 +
    <td colspan="15" class="infobox-nested">{{{aug-miscstat2}}}</td>
 +
  </tr>
 +
|
 +
  <tr>
 +
    <td colspan="30" class="infobox-nested">{{{aug-miscname1}}}</td>
 +
  </tr>
 +
  <tr>
 +
    <td colspan="30" class="infobox-nested">{{{aug-miscstat1}}}</td>
 +
  </tr>
 +
}}
 
</table>
 
</table>
 
</div>
 
</div>
Line 161: Line 187:
 
  |atk-type = only needed for weapons or if armor gives attack bonus
 
  |atk-type = only needed for weapons or if armor gives attack bonus
 
  |aug-slots = Amount of aug slots
 
  |aug-slots = Amount of aug slots
  |atk-stats = only needed for weapons or if armor gives defensive bonus, this field is never shown
+
  |acc = Only shown if either acc or melee-str has a input - accuracy bonus
  |atk-stab = Requires atk-stats - stab stats
+
|melee-str = Only shown if either acc or melee-str has a input - melee strength bonus
  |atk-slash = Requires atk-stats - slash stats
 
  |atk-crush = Requires atk-stats - crush stats
 
  |atk-magic = Requires atk-stats - magic stats
 
  |atk-range = Requires atk-stats - range stats
 
 
  |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 173: Line 195:
 
   |def-magic = Requires def-stats - magic stats
 
   |def-magic = Requires def-stats - magic stats
 
   |def-range = Requires def-stats - range stats
 
   |def-range = Requires def-stats - range stats
  |acc = Only shown if either acc or melee-str has a input - accuracy bonus
+
  |miscname1 = Name of first misc stat
  |melee-str = Only shown if either acc or melee-str has a input - melee strength bonus
+
|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-stab = stab aug bonus
 
  |aug-slash = slash aug bonus
 
  |aug-slash = slash aug bonus
Line 182: Line 206:
 
  |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 - melee strength aug bonus
 
  |aug-melee-str = Only shown if either aug-acc or aug-melee-str has a input - melee 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 = augument material cost
 
  |aug-cost = augument material cost
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
Line 198: Line 226:
 
|atk-type =  
 
|atk-type =  
 
|aug-slots =  
 
|aug-slots =  
|atk-stats =
+
|acc =  
|atk-stab =
+
|melee-str =  
|atk-slash =
 
|atk-crush =
 
|atk-magic =  
 
|atk-range =  
 
 
|def-stats =  
 
|def-stats =  
 
|def-stab =  
 
|def-stab =  
Line 210: Line 234:
 
|def-magic =  
 
|def-magic =  
 
|def-range =  
 
|def-range =  
|acc =  
+
|miscname1 =
|melee-str =  
+
|miscstat1 =
 +
|miscname2 =
 +
|miscstat2 =
 
|aug-stab =  
 
|aug-stab =  
 
|aug-slash =  
 
|aug-slash =  
Line 219: Line 245:
 
|aug-acc =  
 
|aug-acc =  
 
|aug-melee-str =  
 
|aug-melee-str =  
 +
|aug-miscname1 =
 +
|aug-miscstat1 =
 +
|aug-miscname2 =
 +
|aug-miscstat2 =
 
|aug-cost =  
 
|aug-cost =  
 
}}
 
}}

Revision as of 09:59, 15 January 2021

Infobox Equipment




Usage

{{Infobox Equipment
|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
|atk-speed = Attack speed
|atk-type = only needed for weapons or if armor gives attack bonus
|aug-slots = Amount of aug slots
|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
|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 aug-melee-str has a input - melee 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 = augument material cost
}}

Copy pasta code:

{{Infobox Equipment
|title = 
|image = 
|gold = 
|level-req = 
|source = 
|slot = 
|atk-speed = 
|atk-type = 
|aug-slots = 
|acc = 
|melee-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-miscname1 =
|aug-miscstat1 =
|aug-miscname2 =
|aug-miscstat2 =
|aug-cost = 
}}