Jump to content

Template:ItemBonuses: Difference between revisions

From Emps-World Wiki
Tulrak (talk | contribs)
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
 
(28 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:|127x106px]]|id=}}</nowiki>
<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:440px;border-color: rgb(229, 205, 190); color: rgb(0, 0, 0); background-color: rgb(205, 161, 114);">
<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|17px]] Melee
<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|21px]] Range
<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|20px]] Magic
<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|17px]] Melee
<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|21px]] Range
<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|20px]] Magic
<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="1">[[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"> Item slot
<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="1"> {{{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"> {{{item|0}}}
<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="13"> Maintenance
<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|17px]] Melee
<th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2">[[File:Skill-2.gif|15px]] Melee
</th>
<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-4.gif|21px]] Range
<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-6.gif|20px]] Magic
<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;" rowspan="2" colspan="2"> Degradable
<th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2"> Repair
</th>
</th>
<th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" rowspan="2" colspan="2"> Repair
<th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" colspan="2"> Item slot
</th></tr>
</th>
</tr>
<tr>
<tr>
<td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" rowspan="1" colspan="2"> {{{str|0}}}
<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;" rowspan="1" colspan="2"> {{{rangestr|0}}}
<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;" rowspan="1" colspan="2"> {{{magicstr|0}}}
<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;" rowspan="1" colspan="2"> {{{degradable|No}}}
<td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" colspan="2"> {{{item|0}}}
</td>
</td>
<td style="border-color: rgb(170, 170, 170); width: 20px; text-align: center; background-color: white;" rowspan="1" colspan="2"> {{{repair|No}}}
</tr>
</td></tr>
<tr>
<tr>
<th style="border-color: rgb(170, 170, 170); width: 20px; text-align: center;" rowspan="1" colspan="6"> Requirements
<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;" rowspan="1" colspan="4"> Attack speed
<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;" rowspan="1" colspan="6"> {{{requirements|None}}}
<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;" rowspan="1" colspan="12"> {{{speed|Unknown}}}
<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=}}

Template example with Abyssal Whip

ItemBonuses
Attack Bonus Weapon Image
Melee Range Magic
0 0 0
Defence Bonus
Melee Range Magic Prayer Hitpoints Block
0 0 0 0 0 0
Strength bonus Maintenance
Melee Range Magic Degradable Repair Item slot
0 0 0 No No 0
Requirements Attack speed
None Unknown