Template:ItemStats: Difference between revisions

From Redemption Wiki
Jump to navigation Jump to search
>Bman00100
No edit summary
>Bman00100
No edit summary
Line 1: Line 1:
{| style="border:1px #AAA solid;line-height:1.5em;direction:ltr;width:1%;border:1px solid #AAA !important" class="infobox" cellspacing="0" cellpadding="0" style="float:left;"
{| class="wikitable smallpadding" {{#if:{{{style|}}}|style="{{{style}}}"}}
! colspan="3" style="border-bottom:1px solid #aaa" {{!}} [[Combat|Combat Stats]]
|+ [[Equipment Stats|Bonuses]]
{{!}}-
!colspan="12" align="center" width="180"|<small>Hover over image for type</small>
{{!}} style="padding:4px" {{!}}
{{#if:{{{image|}}}|{{#switch:{{{image}}}
{| style="display:inline-block;cursor:default;margin:-5px {{#expr:-2{{#if:{{{image|}}}|-4}}}}px -10px 0"
|no=
{{!}} colspan="3" {{!}}
|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>]]
{| style="margin:0 -3px"
|#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>}}}}
! width="115" style="text-align:left" {{!}} Class
}}|}}
! width="69" {{!}} Slot
|-
{{!}}-
!colspan="5" align="center"|{{skill clickpic|Attack}}&nbsp;[[Attack|Attack bonus]]
{{!}} class="iCSbox" align="center" title="Item class" {{!}} {{#switch:{{lc:{{{class|}}}}}|melee=[[File:Attack.png|x34px|Melee|link=Melee]]|ranged=[[File:Ranged.png|x34px|Ranged|link=Ranged]]|magic=[[File:Magic.png|x34px|Magic|link=Magic]]|hybrid=[[File:CombatSwords.png|x34px|Hybrid|link=Hybrid]] All|none=None|n/a=None|?=None|{{#if:{{{class|}}}|{{{class}}}|''Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>''}}}}
|-
 
!width="35" align="center"|[[File:White dagger.png|link=Stab]]
{{!}} class="iCSbox" style="text-align:center;height:1% !important" {{!}} {{#switch:{{lc:{{{slot|}}}}}
!width="35" align="center"|[[File:White scimitar.png|link=Slash]]
|head=[[File:Head slot.png|Head slot|link=Head slot]]{{mainonly|[[Category:Head slot items]]}}
!width="35" align="center"|[[File:White warhammer.png|link=Crush]]
|ammo=[[File:Ammo slot.png|Ammunition slot|link=Ammunition slot]]{{mainonly|[[Category:Ammunition slot items]]}}
!width="35" align="center"|[[File:Magic-icon.png|link=Magic]]
|neck=[[File:Neck slot.png|Neck slot|link=Neck slot]]{{mainonly|[[Category:Neck slot items]]}}
!width="35" align="center"|[[File:Ranged-icon.png|link=Ranged]]
|cape=[[File:Cape slot.png|Cape slot|link=Cape slot]]{{mainonly|[[Category:Cape slot items]]}}
|-
|main|mainhand|main-hand|weapon=[[File:Weapon slot.png|Mainhand slot|link=Mainhand slot]]{{mainonly|[[Category:Weapon slot items]]}}
|width="35" align="center"|{{#if:{{{astab|}}}|{{format eq stat|{{{astab}}} }}|?}}
|2h=[[File:2h slot.png|Two-handed slot|link=Two-handed slot]]{{mainonly|[[Category:Weapon slot items]][[Category:Two-handed slot items]]}}
|width="35" align="center"|{{#if:{{{aslash|}}}|{{format eq stat|{{{aslash}}} }}|?}}
|body=[[File:Torso slot.png|center|Body slot|link=Body slot]]{{mainonly|[[Category:Body slot items]]}}
|width="35" align="center"|{{#if:{{{acrush|}}}|{{format eq stat|{{{acrush}}} }}|?}}
|off|offhand|off-hand|shield=[[File:Shield slot.png|Offhand slot|link=Offhand slot]]{{mainonly|[[Category:Offhand slot items]]}}
|width="35" align="center"|{{#if:{{{amagic|}}}|{{format eq stat|{{{amagic}}} }}|?}}
|legs=[[File:Legs slot.png|Legwear slot|link=Legwear slot]]{{mainonly|[[Category:Legwear slot items]]}}
|width="35" align="center"|{{#if:{{{arange|}}}|{{format eq stat|{{{arange}}} }}|?}}
|hands=[[File:Gloves slot.png|29px|link=Hands slot]]{{mainonly|[[Category:Hand slot items]]}}
|-
|feet=[[File:Boots slot.png|Feet slot|link=Feet slot]]{{mainonly|[[Category:Feet slot items]]}}
!colspan="5" align="center"|{{skill clickpic|Defence}}&nbsp;[[Defence|Defence bonus]]
|ring=[[File:Ring slot.png|Ring slot|link=Ring slot]]{{mainonly|[[Category:Rings]]}}
|-
|set=[[File:Sets404.png|Armour Set|link=Sets]]{{mainonly|[[Category:Sets]]}}
!width="35" align="center"|[[File:White dagger.png|link=Stab]]
|set=<!--empty on purpose-->
!width="35" align="center"|[[File:White scimitar.png|link=Slash]]
|none=<!--empty on purpose-->
!width="35" align="center"|[[File:White warhammer.png|link=Crush]]
|#default=''? <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>''{{mainonly|}}
!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|}}}|{{format eq stat|{{{dstab}}} }}|?}}
|width="35" align="center"|{{#if:{{{dslash|}}}|{{format eq stat|{{{dslash}}} }}|?}}
|width="35" align="center"|{{#if:{{{dcrush|}}}|{{format eq stat|{{{dcrush}}} }}|?}}
|width="35" align="center"|{{#if:{{{dmagic|}}}|{{format eq stat|{{{dmagic}}} }}|?}}
|width="35" align="center"|{{#if:{{{drange|}}}|{{format eq stat|{{{drange}}} }}|?}}
|-
!colspan="4" align="center"|Other bonuses
!Slot
|-
!width="35" align="center"|[[File:Strength-icon.png|link=Strength]]
!width="35" align="center"|[[File:RangedStrength-icon.png|link=Ranged Strength]]
!width="35" align="center"|[[File:MagicDamage-icon.png|link=Magic]]
!width="35" align="center"|[[File:Prayer-icon.png|link=Prayer]]
!rowspan="2" width="35" align="center" style="font-size: 88%;"|
{{#switch:{{lc:{{{slot|}}}}}
|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]]}}
|neck=[[File:Neck slot.png|29px|link=Neck slot]]{{mainonly|[[Category:Neck 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]]}}
|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]]}}
|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]]}}
|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]]}}
|ring=[[File:Ring slot.png|29px|link=Ring slot]]{{mainonly|[[Category:Ring slot items]]}}
|set= <!--empty on purpose-->
|none= <!--empty on purpose-->
|#default=?
}}
}}
|}
{{#if:{{{slot|}}}|[[{{{slot}}} slot table|list]]}}
|-
|width="30" align="center"|{{#if:{{{str|}}}|{{format eq stat|{{{str}}} }}|?}}
|width="30" align="center"|{{#if:{{{rstr|}}}|{{format eq stat|{{{rstr}}} }}|0}}
|width="30" align="center"|{{#if:{{{mdmg|}}}|{{format eq stat|{{{mdmg}}}%}}|0%}}
|width="30" align="center"|{{#if:{{{prayer|}}}|{{format eq stat|{{{prayer}}} }}|?}}
{{#ifeq:{{lc:{{{aspeed|}}}}}|no||{{#ifeq:{{#switch:{{lc:{{{slot|}}}}}|weapon=1|2h=1|0}}|1|
{{!}}-
{{!}}-
! width="62" style="text-align:left" {{!}} Bonus
!colspan="5" height="55px" align="center"{{!}}{{#if:{{{aspeed|}}}|{{Speed Bar|{{{aspeed}}}}}|''{{Unknown_Attack_Speed}}'' {{mainonly|[[Category:Missing attack speed]]}}}}
! width="62" {{!}} Attack
}}}}
! width="62" {{!}} Defence
|}<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>
{{!}} class="iCSbox" {{!}} Stab
<noinclude>{{/doc}}[[Category:Infobox templates|Bonuses]]</noinclude>
{{!}} class="iCSbox" style="text-align:center" title="Stab Attack Bonus" {{!}} {{#if:{{{Stabatk|}}}|{{{Stabatk}}}|-}}
{{!}} class="iCSbox" style="text-align:center" title="Stab Defence Bonus" {{!}} {{#if:{{{Stabdef|}}}|{{{Stabdef}}}|-}}
{{!}}-
{{!}} class="iCSbox" {{!}} Slash
{{!}} class="iCSbox" style="text-align:center" title="Slash Attack Bonus" {{!}} {{#if:{{{Slashatk|}}}|{{{Slashatk}}}|-}}
{{!}} class="iCSbox" style="text-align:center" title="Slash Defence Bonus" {{!}} {{#if:{{{Slashdef|}}}|{{{Slashdef}}}|-}}  
{{!}}-
{{!}} class="iCSbox" {{!}} Crush
{{!}} class="iCSbox" style="text-align:center" title="Crush Attack Bonus" {{!}} {{#if:{{{Crushatk|}}}|{{{Crushatk}}}|-}}
{{!}} class="iCSbox" style="text-align:center" title="Crush Defence Bonus" {{!}} {{#if:{{{Crushdef|}}}|{{{Crushdef}}}|-}}
{{!}}-
{{!}} class="iCSbox" {{!}} Magic
{{!}} class="iCSbox" style="text-align:center" title="Magic Attack Bonus" {{!}} {{#if:{{{Magicatk|}}}|{{{Magicatk}}}|-}}
{{!}} class="iCSbox" style="text-align:center" title="Magic Defence Bonus" {{!}} {{#if:{{{Magicdef|}}}|{{{Magicdef}}}|-}}
{{!}}-
{{!}} class="iCSbox" {{!}} Range
{{!}} class="iCSbox" style="text-align:center" title="Range Attack Bonus" {{!}} {{#if:{{{Rangeatk|}}}|{{{Rangeatk}}}|-}}
{{!}} class="iCSbox" style="text-align:center" title="Range Defence Bonus" {{!}} {{#if:{{{Rangedef|}}}|{{{Rangedef}}}|-}}
{{!}}-   
! style="text-align:left;" colspan="3" {{!}} <span style="width:186px;display:inline-block">'''Special bonuses'''</span>
{{!}}-
{{!}} class="iCSbox" {{!}} Strength
{{!}} class="iCSbox" style="text-align:center" title="Strength Attack Bonus" {{!}} {{#if:{{{Strboost|}}}|{{{Strboost}}}|-}}
{{!}}-
{{!}} class="iCSbox" {{!}} Prayer
{{!}} class="iCSbox" style="text-align:center" title="Prayer Attack Bonus" {{!}} {{#if:{{{Prayboost|}}}|{{{Prayboost}}}|-}}
{{!}}-
|}
{{#if:{{{image|}}}|{{!}} style="padding:4px" {{!}} <div align="center">{{#ifeq:{{lc:{{{image|}}}}}|no||[[File:{{rmv|File:|{{{image}}}}}{{!}}{{#if:{{#pos:{{{image|}}}|{{!}}}}||150}}x{{#expr:200{{#if:{{{aspeed|}}}|+68}}}}px]]}}</div>}}
 
{{!}}-
{{!}} class="cioCompareLink" style="text-align:center !important" {{!}} <div align="center" style="color:#002BB8;text-align:left"><u></u></div>
{{!}} <div align="center" style="font-size:0.85em">{{#if:{{{caption|}}}|{{ucfirst:{{lc:{{rmv|.|{{{caption}}}}}}}}}}}</div>
{{!}} <div align="center" style="font-size:0.85em">{{#if:{{{caption2|}}}|{{ucfirst:{{lc:{{rmv|.|{{{caption2}}}}}}}}}}}</div>
|-
|<span style="margin-top:-4px; font-size:xx-small;"></span>
|}{{Mainonly|{{#switch:{{lc:{{{slot|}}}}}|spell|none=|#default=[[Category:Equipment]]}}{{#switch:{{lc:{{{mainType|}}}}}|crushing|crush=[[Category:Crush weapons]]|slashing|slash=[[Category:Slash weapons]]|stabbing|stab=[[Category:Stab weapons]]|throwing|thrown=[[Category:Thrown weapons]]}}{{#switch:{{lc:{{{offType|}}}}}|crushing|crush=[[Category:Crush weapons]]|slashing|slash=[[Category:Slash weapons]]|stabbing|stab=[[Category:Stab weapons]]|throwing|thrown=[[Category:Thrown weapons]]}}}}<noinclude>{{/doc}}</noinclude>

Revision as of 02:03, 15 January 2017

Bonuses
Hover over image for type
Error creating thumbnail: Unable to save thumbnail to destination
 Attack bonus
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
? ? ? ? ?
Error creating thumbnail: Unable to save thumbnail to destination
 Defence bonus
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
? ? ? ? ?
Other bonuses Slot
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination

?

? 0 0% ?

Template:ItemStats/doc