Template:Infobox Bonuses: Difference between revisions

From Darkan
Jump to navigation Jump to search
imported>The Fizzbuzzler
No edit summary
 
No edit summary
Tag: Manual revert
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="display:table">
{| class="wikitable smallpadding" {{#if:{{{style|}}}|style="{{{style}}}"}}
{|class="wikitable" {{#if:{{{style|}}}|style="{{{style}}}"}}
|+ [[Equipment Stats|Bonuses]]
!colspan="3"|[[Beta:Equipment Stats|Equipment Bonuses]]
!colspan="12" align="center" width="180"|<small>Hover over image for type</small>
{{#if:{{{image|}}}|{{#switch:{{{image}}}
{{#if:{{{image|}}}|{{#switch:{{{image}}}
|no=
|no=  
|needed={{!}}rowspan="{{#expr:3{{#if:{{{mainType|}}}{{{mainDamage|}}}{{{mainAccuracy|}}}|+3}}{{#if:{{{offType|}}}{{{offDamage|}}}{{{offAccuracy|}}}|+3}}{{#if:{{{defence|}}}{{{life|}}}{{{prayer|}}}|+3}}{{#if:{{{meleecrit|}}}{{{rangedcrit|}}}{{{magiccrit|}}}|+2}}{{#ifeq:{{lc:{{{aspeed|}}}}}|no||+2}}}}" width="125" {{ctr}} valign="center"{{!}}[[Special:Upload|<big>'''Please upload an image!'''</big>]]{{mainonly|[[Category:Needs image]]}}
|needed={{!}}rowspan="{{#ifeq:{{lc:{{{aspeed|}}}}}|no|14|{{#switch:{{lc:{{{slot|}}}}}|weapon=15|2h=15|14}}}}" width="125" align="center" valign="center"{{!}}[[Special:Upload|<big>'''Please upload an image!'''</big>]]
|#default={{!}}rowspan="{{#expr:4{{#if:{{{mainType|}}}{{{mainDamage|}}}{{{mainAccuracy|}}}|+3}}{{#if:{{{offType|}}}{{{offDamage|}}}{{{offAccuracy|}}}|+3}}{{#if:{{{defence|}}}{{{life|}}}{{{prayer|}}}|+3}}{{#if:{{{meleecrit|}}}{{{rangedcrit|}}}{{{magiccrit|}}}|+2}}{{#ifeq:{{lc:{{{aspeed|}}}}}|no||+1}}}}" width="125" {{ctr}} valign="center"{{!}}[[File:{{rmv|File:|{{{image}}}}}{{#if:{{{caption|}}}|{{!}}{{{caption}}}}}{{!}}x{{#expr:309{{#if:{{{aspeed|}}}|+66}}}}px]]{{#if:{{{caption|}}}|<br /><small>{{{caption}}}</small>}}{{#if:{{{image2|}}}|{{!!}}rowspan="{{#expr:4{{#if:{{{mainType|}}}{{{mainDamage|}}}{{{mainAccuracy|}}}|+3}}{{#if:{{{offType|}}}{{{offDamage|}}}{{{offAccuracy|}}}|+3}}{{#if:{{{defence|}}}{{{life|}}}{{{prayer|}}}|+3}}{{#if:{{{meleecrit|}}}{{{rangedcrit|}}}{{{magiccrit|}}}|+2}}{{#ifeq:{{lc:{{{aspeed|}}}}}|no||+2}}}}" width="125" align="center" valign="center"{{!}}[[File:{{rmv|File:|{{{image2}}}}}{{#if:{{{caption2|}}}|{{!}}{{{caption2}}}}}{{!}}x{{#expr:309{{#if:{{{aspeed|}}}|+66}}}}px]]{{#if:{{{caption2|}}}|<br /><small>{{{caption2}}}</small>}}}}
|#default={{!}}rowspan="{{#ifeq:{{lc:{{{aspeed}}}}}|no|14|{{#switch:{{lc:{{{slot|}}}}}|weapon=15|2h=15|14}}}}" width="125" align="center" valign="center"{{!}}[[File:{{rmv|File:|{{{image}}}}}{{#if:{{{caption|}}}|{{!}}{{{caption}}}}}]]{{#if:{{{caption|}}}|<br /><small>{{{caption}}}</small>}}{{#if:{{{image2|}}}|{{!}}{{!}}rowspan="{{#switch:{{lc:{{{slot|}}}}}|weapon=15|2h=15|14}}" width="125" align="center" valign="center"{{!}}[[File:{{rmv|File:|{{{image2}}}}}{{#if:{{{caption2|}}}|{{!}}{{{caption2}}}}}]]{{#if:{{{caption2|}}}|<br /><small>{{{caption2}}}</small>}}}}
}}|{{mainonly|[[Category:Needs image placement]]}}}}
}}|}}
|-
!colspan="5" align="center"|{{skill clickpic|Attack}}&nbsp;[[Attack|Attack bonus]]
|-
!width="35" align="center"|[[File:White dagger.png|link=Stab]]
!width="35" align="center"|[[File:White scimitar.png|link=Slash]]
!width="35" align="center"|[[File:White warhammer.png|link=Crush]]
!width="35" align="center"|[[File:Magic-icon.png|link=Magic]]
!width="35" align="center"|[[File:Ranged-icon.png|link=Ranged]]
|-
|width="35" align="center"|{{#if:{{{astab|}}}|{{{astab}}}|?}}
|width="35" align="center"|{{#if:{{{aslash|}}}|{{{aslash}}}|?}}
|width="35" align="center"|{{#if:{{{acrush|}}}|{{{acrush}}}|?}}
|width="35" align="center"|{{#if:{{{amagic|}}}|{{{amagic}}}|?}}
|width="35" align="center"|{{#if:{{{arange|}}}|{{{arange}}}|?}}
|-
!colspan="5" align="center"|{{skill clickpic|Defence}}&nbsp;[[Defence|Defence bonus]]
|-
!width="35" align="center"|[[File:White dagger.png|link=Stab]]
!width="35" align="center"|[[File:White scimitar.png|link=Slash]]
!width="35" align="center"|[[File:White warhammer.png|link=Crush]]
!width="35" align="center"|[[File:Magic-icon.png|link=Magic]]
!width="35" align="center"|[[File:Ranged-icon.png|link=Ranged]]
|-
|width="35" align="center"|{{#if:{{{dstab|}}}|{{{dstab}}}|?}}
|width="35" align="center"|{{#if:{{{dslash|}}}|{{{dslash}}}|?}}
|width="35" align="center"|{{#if:{{{dcrush|}}}|{{{dcrush}}}|?}}
|width="35" align="center"|{{#if:{{{dmagic|}}}|{{{dmagic}}}|?}}
|width="35" align="center"|{{#if:{{{drange|}}}|{{{drange}}}|?}}
|-
!colspan="4" align="center"|Other bonuses
!Slot
|-
|-
{{#if:{{{mainType|}}}{{{mainDamage|}}}{{{mainAccuracy|}}}|!colspan="3"{{!}}Main Hand Info
!width="35" align="center"|[[File:Strength-icon.png|link=Strength]]
{{!}}-
!width="35" align="center"|[[File:RangedStrength-icon.png|link=Ranged Strength]]
!Type!!Damage!!Accuracy
!width="35" align="center"|[[File:MagicDamage-icon.png|link=Magic]]
{{!}}-
!width="35" align="center"|[[File:Prayer-icon.png|link=Prayer]]
{{!}}{{ctr}}{{!}}{{#if:{{{mainType|}}}|{{{mainType}}}|?}}{{!!}}{{ctr}}{{!}}{{#if:{{{mainDamage|}}}|{{{mainDamage}}}|?}}{{!!}}{{ctr}}{{!}}{{#if:{{{mainAccuracy|}}}|{{{mainAccuracy}}}|?}}
!rowspan="2" width="35" align="center"|
{{!}}-
{{#switch:{{lc:{{{slot|}}}}}
}}
 
{{#if:{{{offType|}}}{{{offDamage|}}}{{{offAccuracy|}}}|!colspan="3"{{!}}Offhand Info
{{!}}-
!Type!!Damage!!Accuracy
{{!}}-
{{!}}{{ctr}}{{!}}{{#if:{{{offType|}}}|{{{offType}}}|?}}{{!!}}{{ctr}}{{!}}{{#if:{{{offDamage|}}}|{{{offDamage}}}|?}}{{!!}}{{ctr}}{{!}}{{#if:{{{offAccuracy|}}}|{{{offAccuracy}}}|?}}
{{!}}-
}}
{{#if:{{{defence|}}}{{{life|}}}{{{prayer|}}}|!colspan="3"{{!}}Defence Info
{{!}}-
!{{Skill clickpic|Defence}}!!{{Skill clickpic|Constitution}}!!{{Skill clickpic|Prayer}}
{{!}}-
{{!}}{{ctr}}{{!}}{{#if:{{{defence|}}}|{{{defence}}}|?}}{{!!}}{{ctr}}{{!}}{{#if:{{{life|}}}|{{{life}}}|?}}{{!!}}{{ctr}}{{!}}{{#if:{{{prayer|}}}|{{{prayer}}}|?}}
{{!}}-
}}
{{#if:{{{meleecrit|}}}{{{rangedcrit|}}}{{{magiccrit|}}}|!colspan="3"{{!}}Critical bonuses
{{!}}-
{{!}}{{ctr}}{{!}}[[File:Attack-icon.png|20px|link=Melee]]&nbsp;{{#if:{{{meleecrit|}}}|{{#replace:{{{meleecrit}}}|%|}}%|?{{mainonly|[[Category:Missing Melee critical bonus]]}}}}
{{!}}{{ctr}}{{!}}[[File:Ranged-icon.png|20px|link=Ranged]]&nbsp;{{#if:{{{rangedcrit|}}}|{{#replace:{{{rangedcrit}}}|%|}}%|?{{mainonly|[[Category:Missing Ranged critical bonus]]}}}}
{{!}}{{ctr}}{{!}}[[File:Magic-icon.png|20px|link=Magic]]&nbsp;{{#if:{{{magiccrit|}}}|{{#replace:{{{magiccrit}}}|%|}}%|?{{mainonly|[[Category:Missing Magic critical bonus]]}}}}
{{!}}-
}}
{{#if:{{{aspeed|}}}|{{#switch:{{lc:{{{aspeed|}}}}}|no=|!colspan{{=}}"3"{{!}}Attack speed
{{!}}-
{{!}}colspan{{=}}"3" style{{=}}"text-align:center;"{{!}}{{#if:{{{aspeed|}}}|{{Attack speed bar|{{#switch:{{lc:{{{aspeed|}}}}}|fastest=fastest|fast=fast|average=average|{{{aspeed}}}}}}}|''Speed unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>''{{mainonly|[[Category:Missing attack speed]]}}}}
{{!}}-
}}|}}
!colspan="2" style="min-width:120px"|Class: {{#switch:{{lc:{{{class|}}}}}|melee=[[File:Attack_icon_highscores.png|link=Melee]]|ranged=[[File:Ranged_icon_highscores.png|link=Ranged]]|magic=[[File:Magic_icon_highscores.png|link=Magic]]|all=[[File:CombatSwords.png|All]]|{{#if:{{{class|}}}|{{{class}}}|''Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>''}}}}
!rowspan="2" style="min-width:60px"|{{#switch:{{lc:{{{slot|}}}}}
|head=[[File:Head slot.png|29px|link=Head slot]]{{mainonly|[[Category:Head slot items]]}}
|head=[[File:Head slot.png|29px|link=Head slot]]{{mainonly|[[Category:Head slot items]]}}
|ammo=[[File:Ammo slot.png|29px|link=Ammunition slot]]{{mainonly|[[Category:Ammunition slot items]]}}
|ammo=[[File:Ammo slot.png|29px|link=Ammunition slot]]{{mainonly|[[Category:Ammunition slot items]]}}
Line 49: Line 50:
|cape=[[File:Cape slot.png|29px|link=Cape slot]]{{mainonly|[[Category:Cape slot items]]}}
|cape=[[File:Cape slot.png|29px|link=Cape slot]]{{mainonly|[[Category:Cape slot items]]}}
|weapon=[[File:Weapon slot.png|29px|link=Weapon slot]]{{mainonly|[[Category:Weapon slot items]]}}
|weapon=[[File:Weapon slot.png|29px|link=Weapon slot]]{{mainonly|[[Category:Weapon slot items]]}}
|2h=[[File:2h slot.png|29px|link=Two-handed slot]]{{mainonly|[[Category:Weapon slot items]][[Category:Two-handed slot items]]}}
|2h=[[File:2h slot.png|29px|link=Two-handed slot]]{{mainonly|[[Category:Two-handed slot items]]}}
|body=[[File:Torso slot.png|29px|link=Body slot]]{{mainonly|[[Category:Body slot items]]}}
|body=[[File:Torso slot.png|29px|link=Body slot]]{{mainonly|[[Category:Body slot items]]}}
|shield=[[File:Shield slot.png|29px|link=Shield slot]]{{mainonly|[[Category:Shield slot items]]}}
|shield=[[File:Shield slot.png|29px|link=Shield slot]]{{mainonly|[[Category:Shield slot items]]}}
|legs=[[File:Legs slot.png|29px|link=Legwear slot]]{{mainonly|[[Category:Legwear slot items]]}}
|legs=[[File:Legs slot.png|29px|link=Legwear slot]]{{mainonly|[[Category:Legwear slot items]]}}
|hands=[[File:Gloves slot.png|29px|link=Hands slot]]{{mainonly|[[Category:Hand slot items]]}}
|hands=[[File:Gloves slot.png|29px|link=Hands slot]]{{mainonly|[[Category:Hands slot items]]}}
|feet=[[File:Boots slot.png|29px|link=Feet slot]]{{mainonly|[[Category:Feet slot items]]}}
|feet=[[File:Boots slot.png|29px|link=Feet slot]]{{mainonly|[[Category:Feet slot items]]}}
|ring=[[File:Ring slot.png|29px|link=Ring slot]]{{mainonly|[[Category:Rings]]}}
|ring=[[File:Ring slot.png|29px|link=Ring slot]]{{mainonly|[[Category:Ring slot items]]}}
|aura=[[File:Aura slot.png|29px|link=Aura slot]]{{mainonly|[[Category:Auras]]}}
|set= <!--empty on purpose-->
|set=<!--empty on purpose-->
|none= <!--empty on purpose-->
|none=<!--empty on purpose-->
|#default=?
|#default=?{{mainonly|[[Category:Missing slot information]]}}
}}
}}
|-
|-
|colspan="2" rowspan="1" {{ctr}} class="cioCompareLinkBeta"|<span style="font-size:smaller">Item compare not supported</span>
|width="30" align="center"|{{#if:{{{str|}}}|{{{str}}}|?}}
|}<span style="margin-top:-10px; font-size:xx-small; clear:left; float:left;">[[Template:Infobox Bonuses Beta|[view]]] &bull; [[Template talk:Infobox Bonuses Beta|[talk]]]</span></div>{{clear|left}}<noinclude>{{/doc}}[[Category:Infobox templates]]</noinclude>
|width="30" align="center"|{{#if:{{{rstr|}}}|{{{rstr}}}|0}}
|width="30" align="center"|{{#if:{{{mdmg|}}}|{{{mdmg}}}%|0%}}
|width="30" align="center"|{{#if:{{{prayer|}}}|{{{prayer}}}|?}}
{{#ifeq:{{lc:{{{aspeed|}}}}}|no||{{#ifeq:{{#switch:{{lc:{{{slot|}}}}}|weapon=1|2h=1|0}}|1|
{{!}}-
!colspan="5" height="55px" align="center"{{!}}{{#if:{{{aspeed|}}}|{{Speed Bar|{{{aspeed}}}}}|''{{Unknown_Attack_Speed}}'' {{mainonly|[[Category:Missing attack speed]]}}}}
}}}}
|}<includeonly>
{{#ifexpr: ({{#if:{{{astab|}}}|0|1}} + {{#if:{{{aslash|}}}|0|1}} + {{#if:{{{acrush|}}}|0|1}} + {{#if:{{{amagic|}}}|0|1}} + {{#if:{{{arange|}}}|0|1}} + {{#if:{{{dstab|}}}|0|1}} + {{#if:{{{dslash|}}}|0|1}} + {{#if:{{{dcrush|}}}|0|1}} + {{#if:{{{dmagic|}}}|0|1}} + {{#if:{{{drange|}}}|0|1}})=0||[[Category:Incomplete bonuses]]}}</includeonly>
<noinclude>{{/doc}}[[Category:Infobox templates|Bonuses]]</noinclude>

Latest revision as of 06:18, 23 January 2024

Bonuses
Hover over image for type
 Attack bonus
? ? ? ? ?
 Defence bonus
? ? ? ? ?
Other bonuses Slot

?

? 0 0% ?

[view] [edit] [purge] Template documentation

This documentation is transcluded from Template:Infobox Bonuses/doc.
{{Infobox Bonuses Beta
| slot       = Which slot(s) the item occupies? Options:Head/Ammo/Neck/Cape/Weapon/2h/Body/Shield/Legs/Hands/Feet/Ring/Aura
| mainDamage = The damage caused by a mainhand weapon. Type N/A if not available.
| mainAccuracy   = The accuracy of a mainhand weapon. Type N/A if not available.
| maintype  = The style/type of the weapon, e.g. Slashing for whip. Type N/A if not available.
| offDamage  = The damage caused by an offhand weapon. Type N/A if not available.
| offAccuracy   = The accuracy of an offhand weapon. Type N/A if not available.
| offType   = The style/type of the weapon, e.g. Slashing for whip. Type N/A if not available.
| defence    = The armour rating of a piece of armour.
| life       = The amount of life points boosted by the equipment.
| prayer     = The prayer bonus given by the equipment.
| aspeed     = Attack speed of the main or offhand weapon. DELETE THIS LINE for armour. Options:Average/Fast/Fastest
| class      = The class of the equipment. Type N/A if there is no class. Options:Melee/Magic/Ranged/All
| meleecrit  = The critical bonus given to a melee weapon and armour.
| rangedcrit = The critical bonus given to a ranged weapon and armour.
| magiccrit  = The critical bonus given to a magic weapon and armour.
| style      = Extra styling.
}}

Empty template

{{Infobox Bonuses Beta
| slot         = 
| mainDamage   = 
| mainAccuracy = 
| mainType     = 
| offDamage    = 
| offAccuracy  = 
| offType      = 
| defence      = 
| life         = 
| prayer       = 
| aspeed       = 
| class        = 
| meleecrit    = 
| rangedcrit   = 
| magiccrit    = 
| style        = 
| image        = 
| caption      = 
}}