Difference between revisions of "Template:ItemBonuses"
From Emps-World Wiki
(→Template example with Abyssal Whip) |
(max size that shouldn't stretch the table (doesn't for me at least), feel free to copy and paste that size value any time the template is used) |
||
(38 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
Just copy the following and select the parameter with the correct item id and link to item image:<br> | Just copy the following and select the parameter with the correct item id and link to item image:<br> | ||
− | <nowiki>{{ItemBonuses|image=[[File:| | + | <nowiki>{{ItemBonuses|image=[[File:|248x112px]]|id=}}</nowiki> |
===Template example with Abyssal Whip=== | ===Template example with Abyssal Whip=== | ||
</noinclude> | </noinclude> | ||
− | <table class="wikitable item-bonus-table" data-item-id="{{{id|4151}}}" style="width: | + | <table class="wikitable item-bonus-table" data-item-id="{{{id|4151}}}" style="width:480px; border-color: rgb(229, 205, 190); color: rgb(0, 0, 0); background-color: rgb(205, 161, 114); white-space:nowrap;"> |
<tr> | <tr> | ||
− | <th style="border-color: rgb(170, 170, 170); text-align: center;" colspan=" | + | <th style="border-color: rgb(170, 170, 170); text-align: center;" colspan="12"><span style="font-size: 18px;">{{PAGENAME}} </span> |
</th></tr> | </th></tr> | ||
<tr> | <tr> | ||
<th style="border-color: rgb(170, 170, 170); text-align: center;" colspan="6">[[File:Skill-0.gif|24px]] Attack Bonus </th> | <th style="border-color: rgb(170, 170, 170); text-align: center;" colspan="6">[[File:Skill-0.gif|24px]] Attack Bonus </th> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" rowspan="4" colspan=" | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" rowspan="4" colspan="6">{{{image|Weapon Image}}} |
</th></tr> | </th></tr> | ||
<tr> | <tr> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-2.gif| | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-2.gif|15px]] Melee |
</th> | </th> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-4.gif| | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-4.gif|20px]] Range |
</th> | </th> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-6.gif| | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-6.gif|19px]] Magic |
</th> | </th> | ||
</tr> | </tr> | ||
Line 32: | Line 32: | ||
</td></tr> | </td></tr> | ||
<tr> | <tr> | ||
− | <th style="border-color: rgb(170, 170, 170); text-align: center;" colspan=" | + | <th style="border-color: rgb(170, 170, 170); text-align: center;" colspan="6">[[File:Skill-1.gif|18px]] Defence Bonus |
</th></tr> | </th></tr> | ||
<tr> | <tr> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-2.gif| | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-2.gif|15px]] Melee |
</th> | </th> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-4.gif| | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-4.gif|20px]] Range |
</th> | </th> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-6.gif| | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-6.gif|19px]] Magic |
</th> | </th> | ||
<th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-5.gif|17px]] Prayer | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-5.gif|17px]] Prayer | ||
</th> | </th> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2"> | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-3.gif|17px]] Hitpoints |
− | </th></tr> | + | </th> |
+ | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">Block | ||
+ | </th> | ||
+ | </tr> | ||
<tr> | <tr> | ||
<td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{def|0}}} | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{def|0}}} | ||
Line 54: | Line 57: | ||
<td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{prayer|0}}} | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{prayer|0}}} | ||
</td> | </td> | ||
− | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{ | + | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{hp|0}}} |
− | </td></tr> | + | </td> |
+ | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{block|0}}} | ||
+ | </td> | ||
+ | </tr> | ||
<tr> | <tr> | ||
<th style="border-color: rgb(170, 170, 170); text-align: center;" colspan="6"> [[File:Skill-2.gif|18px]] Strength bonus | <th style="border-color: rgb(170, 170, 170); text-align: center;" colspan="6"> [[File:Skill-2.gif|18px]] Strength bonus | ||
Line 62: | Line 68: | ||
</th></tr> | </th></tr> | ||
<tr> | <tr> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-2.gif| | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-2.gif|15px]] Melee |
</th> | </th> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-4.gif| | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-4.gif|20px]] Range |
</th> | </th> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-6.gif| | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-6.gif|19px]] Magic |
</th> | </th> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2"> Degradable |
</th> | </th> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2"> Repair |
− | </th></tr> | + | </th> |
+ | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2"> Item slot | ||
+ | </th> | ||
+ | </tr> | ||
<tr> | <tr> | ||
− | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white; | + | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{str|0}}} |
</td> | </td> | ||
− | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white; | + | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{rangestr|0}}} |
</td> | </td> | ||
− | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white; | + | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{magicstr|0}}} |
</td> | </td> | ||
− | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white; | + | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{degradable|No}}} |
</td> | </td> | ||
− | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" | + | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{repair|No}}} |
− | </td></tr> | + | </td> |
+ | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{item|0}}} | ||
+ | </td> | ||
+ | </tr> | ||
<tr> | <tr> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; colspan="7"> Requirements |
</th> | </th> | ||
− | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; | + | <th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="5"> Attack speed |
− | </th></tr> | + | </th> |
+ | </tr> | ||
<tr> | <tr> | ||
− | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white; | + | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="7"> {{{requirements|None}}} |
</td> | </td> | ||
− | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white; | + | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="5"> {{{speed|Unknown}}} |
− | </td></tr></table> | + | </td> |
+ | </tr> | ||
+ | </table> |
Latest revision as of 23:14, 25 November 2021
Usage
Just copy the following and select the parameter with the correct item id and link to item image:
{{ItemBonuses|image=[[File:|248x112px]]|id=}}