Template:Infobox Bonuses: Difference between revisions
Jawarrior1 (talk | contribs) (Undo revision 173628 by Jawarrior1 (talk)) Tag: Undo |
Jawarrior1 (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
< | <infobox type="bonuses"> | ||
<title><default>[[Equipment Stats|Bonuses]]</default></title> | |||
<image source="image"><format>{{#switch:{{{image}}} | |||
{{# | |no= | ||
|needed= | |||
|#default={{#tag:gallery| | |||
{{#invoke:HF|stripFileWrapper|{{{image}}}}}|{{{caption|}}} | |||
{{#invoke:HF|stripFileWrapper|{{{image2}}}}}|{{{caption2|}}} | |||
| | }}}}</format> | ||
{{# | </image> | ||
<data source="image" name="needs-image"> | |||
<format>{{#ifeq:{{{image|}}}|needed|{{#invoke:HF|content|[[Special:Upload|Please add an image!]][[Category:Needs image]]}}}}</format> | |||
{{ | <default>{{#if:{{{image|}}}||{{#invoke:HF|content|[[Special:Upload|Please add an image!]][[Category:Needs image]]}}}}</default> | ||
</data> | |||
{{ | <group row-items="5"> | ||
}} | <header>{{skill clickpic|Attack}} [[Attack|Attack bonus]]</header> | ||
<data source="astab"> | |||
{{# | <label>[[File:White dagger.png|link=Stab|Attack Stab]]</label> | ||
<format>{{format eq stat|{{{astab}}} }}</format> | |||
</data> | |||
{{ | <data source="aslash"> | ||
{{ | <label>[[File:White scimitar.png|link=Slash|Attack Slash]]</label> | ||
{{ | <format>{{format eq stat|{{{aslash}}} }}</format> | ||
</data> | |||
{{# | <data source="acrush"> | ||
{{ | <label>[[File:White warhammer.png|link=Crush|Attack Crush]]</label> | ||
<format>{{format eq stat|{{{acrush}}} }}</format> | |||
{{ | </data> | ||
{ | <data source="amagic"> | ||
{{ | <label>[[File:Magic icon.png|link=Magic|Attack Magic]]</label> | ||
}} | <format>{{format eq stat|{{{amagic}}} }}</format> | ||
{{#if:{{{ | </data> | ||
{{ | <data source="arange"> | ||
{{ | <label>[[File:Ranged icon.png|link=Ranged|Attack Ranged]]</label> | ||
<format>{{format eq stat|{{{arange}}} }}</format> | |||
</data> | |||
<header>{{skill clickpic|Defence}} [[Defence|Defence bonus]]</header> | |||
<data source="dstab"> | |||
<label>[[File:White dagger.png|link=Stab|Defence Stab]]</label> | |||
<format>{{format eq stat|{{{dstab}}} }}</format> | |||
</data> | |||
<data source="dslash"> | |||
<label>[[File:White scimitar.png|link=Slash|Defence Slash]]</label> | |||
<format>{{format eq stat|{{{dslash}}} }}</format> | |||
</data> | |||
<data source="dcrush"> | |||
<label>[[File:White warhammer.png|link=Crush|Defence Crush]]</label> | |||
<format>{{format eq stat|{{{dcrush}}} }}</format> | |||
</data> | |||
<data source="dmagic"> | |||
<label>[[File:Magic icon.png|link=Magic|Defence Magic]]</label> | |||
<format>{{format eq stat|{{{dmagic}}} }}</format> | |||
</data> | |||
<data source="drange"> | |||
<label>[[File:Ranged icon.png|link=Ranged|Defence Ranged]]</label> | |||
<format>{{format eq stat|{{{drange}}} }}</format> | |||
</data> | |||
<header>[[File:Melee.png|link=Equipment Stats]] Other bonuses</header> | |||
<data source="str"> | |||
<label>[[File:Strength icon.png|link=Strength|Strength]]</label> | |||
<format>{{format eq stat|{{{str}}} }}</format> | |||
</data> | |||
<data source="rstr"> | |||
<label>[[File:Ranged Strength icon.png|link=Ranged Strength|Rnged Strength]]</label> | |||
<format>{{format eq stat|{{{rstr}}} }}</format> | |||
</data> | |||
<data source="mdmg"> | |||
<label>[[File:Magic Damage icon.png|link=Magic|Magic Damage]]</label> | |||
<format>{{format eq stat|{{{mdmg}}}%}}</format> | |||
</data> | |||
<data source="prayer"> | |||
<label>[[File:Prayer icon.png|link=Prayer|Prayer]]</label> | |||
<format>{{format eq stat|{{{prayer}}} }}</format> | |||
</data> | |||
<data layout="default" source="slot"> | |||
<label>Slot</label> | |||
<format>{{#switch:{{lc:{{{slot|}}}}} | |||
|head=[[File:Head slot.png|29px|link=Head slot|Head slot]]{{#invoke:HF|content|[[Category:Head slot items]]}} | |||
|ammo=[[File:Ammo slot.png|29px|link=Ammunition slot|Ammunition slot]]{{#invoke:HF|content|[[Category:Ammunition slot items]]}} | |||
|neck=[[File:Neck slot.png|29px|link=Neck slot|Neck slot]]{{#invoke:HF|content|[[Category:Neck slot items]]}} | |||
|cape=[[File:Cape slot.png|29px|link=Cape slot|Cape slot]]{{#invoke:HF|content|[[Category:Cape slot items]]}} | |||
|weapon=[[File:Weapon slot.png|29px|link=Weapon slot|Weapon slot]]{{#invoke:HF|content|[[Category:Weapon slot items]]}} | |||
|2h=[[File:2h slot.png|29px|link=Two-handed slot|Two-handed slot]]{{#invoke:HF|content|[[Category:Two-handed slot items]]}} | |||
|body=[[File:Torso slot.png|29px|link=Body slot|Body slot]]{{#invoke:HF|content|[[Category:Body slot items]]}} | |||
|shield=[[File:Shield slot.png|29px|link=Shield slot|Shield slot]]{{#invoke:HF|content|[[Category:Shield slot items]]}} | |||
|legs=[[File:Legs slot.png|29px|link=Leg slot|Leg slot]]{{#invoke:HF|content|[[Category:Leg slot items]]}} | |||
|hands=[[File:Gloves slot.png|29px|link=Hand slot|Hand slot]]{{#invoke:HF|content|[[Category:Hand slot items]]}} | |||
|feet=[[File:Boots slot.png|29px|link=Feet slot|Feet slot]]{{#invoke:HF|content|[[Category:Feet slot items]]}} | |||
|ring=[[File:Ring slot.png|29px|link=Ring slot|Ring slot]]{{#invoke:HF|content|[[Category:Ring slot items]]}} | |||
|set= | |||
|none= | |||
}}[[{{{slot}}} slot table|List]]</format> | |||
</data> | |||
<data name="attackspeed" source="aspeed" span="5"> | |||
<label>[[Attack speed]]</label> | |||
<format>{{#ifeq:{{lc:{{{aspeed|}}}}}|no||{{#ifeq:{{#switch:{{lc:{{{slot|}}}}}|weapon=1|2h=1|0}}|1| | |||
{{Speed Bar|{{{aspeed}}}}}}}}}</format> | |||
<default>{{#ifeq:{{#switch:{{lc:{{{slot|}}}}}|weapon=1|2h=1|0}}|1|''{{Unknown_Attack_Speed}}'' {{#invoke:HF|content|[[Category:Missing attack speed]]}}}}</default> | |||
</data> | |||
</group> | |||
</infobox><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}} + {{#if:{{{str|}}}|0|1}} + {{#if:{{{rstr|}}}|0|1}} + {{#if:{{{mdmg|}}}|0|1}} + {{#if:{{{prayer|}}}|0|1}} + {{#if:{{{slot|}}}|0|1}})=0||{{#invoke:HF|content|[[Category:Incomplete bonuses]]}}}}</includeonly><noinclude>{{/doc}}[[Category:Infobox templates|Bonuses]]</noinclude> | |||
Revision as of 05:57, 23 January 2024
<infobox type="bonuses">
<title><default>Bonuses</default></title>
<image source="image"><format>
</format>
</image>
<format></format>
<default>Script error: No such module "HF".</default>
<group row-items="5">
<header>
Attack bonus</header>
<label>
</label>
<format>Template:Format eq stat</format>
<label>
</label>
<format>Template:Format eq stat</format>
<label>
</label>
<format>Template:Format eq stat</format>
<label>Attack Magic</label>
<format>Template:Format eq stat</format>
<label>Attack Ranged</label>
<format>Template:Format eq stat</format>
<header>
Defence bonus</header>
<label>
</label>
<format>Template:Format eq stat</format>
<label>
</label>
<format>Template:Format eq stat</format>
<label>
</label>
<format>Template:Format eq stat</format>
<label>Defence Magic</label>
<format>Template:Format eq stat</format>
<label>Defence Ranged</label>
<format>Template:Format eq stat</format>
<header>File:Melee.png Other bonuses</header> <label>Strength</label> <format>Template:Format eq stat</format> <label>Rnged Strength</label> <format>Template:Format eq stat</format> <label>Magic Damage</label> <format>Template:Format eq stat</format> <label></label> <format>Template:Format eq stat</format> <label>Slot</label> <format>[[{{{slot}}} slot table|List]]</format>
<label>Attack speed</label> <format></format> <default></default>
</group>
</infobox>
{{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 =
}}