Template:ItemBonuses: Difference between revisions
Appearance
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 |
|||
(26 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="12"><span style="font-size: 18px;">{{PAGENAME}} </span> | <th style="border-color: rgb(170, 170, 170); text-align: center;" colspan="12"><span style="font-size: 18px;">{{PAGENAME}} </span> | ||
Line 17: | Line 17: | ||
</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 35: | Line 35: | ||
</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=" | <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 52: | Line 55: | ||
<td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{mdef|0}}} | <td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{mdef|0}}} | ||
</td> | </td> | ||
<td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan=" | <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 | ||
</th> | </th> | ||
<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"> Maintenance | ||
</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=" | <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;" colspan="2"> Repair | <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 style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{rangestr|0}}} | |||
</td> | |||
<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> | </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"> {{{item|0}}} | ||
</td> | </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=}}