Template:Infobox Bonuses/doc: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "{{documentation}} Template used to insert Infobox Bonuses on a page. Where to use: *Items that are equipable and obtainable (or have been). This means discontinued items are fine. Equippable fun weapons are also fine. *Beta items; items that have been proposed but haven't fully made it into the game, most likely because they was voted down. *:Category:Unobtainable items|Uno...")
 
(No difference)

Latest revision as of 00:23, 12 October 2024

This is a documentation subpage for Template:Infobox Bonuses.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Infobox Bonuses invokes function main in Module:Infobox Bonuses using Lua.

Template used to insert Infobox Bonuses on a page.

Where to use:

  • Items that are equipable and obtainable (or have been). This means discontinued items are fine. Equippable fun weapons are also fine.
  • Beta items; items that have been proposed but haven't fully made it into the game, most likely because they was voted down.
  • Unobtainable items; that's items that have been proposed or only exists in the game's cache and never made it into the game. You are encouraged to add the 'smw = No' parameter here.

Where not to use:

  • Fun weapons that can not be equipped, like for instance Diango's claws.


Standard infobox parameters

This infobox uses Module:Infobox, which provides a number of standard parameters.


Usage

{{Infobox Bonuses
|astab = 
|aslash = 
|acrush = 
|amagic = 
|arange = 
|dstab = 
|dslash = 
|dcrush = 
|dmagic = 
|drange = 
|str = 
|rstr = 
|mdmg = 
|prayer = 
|slot = 
|speed = 
|attackrange = 
|combatstyle = 
|image = 
|caption = 
}}

Example

 Attack bonuses
StabSlashCrushMagicRanged
+7+45-2+0+0
 Defence bonuses
StabSlashCrushMagicRanged
+0+1+0+0+0
 Other bonusesSlot
StrengthRangedMagic damagePrayerWeapon slot table
+44+0+0%+0List

Parameters

Parameter Description Required
astab Stab attack yes
aslash Slash attack yes
acrush Crush attack yes
amagic Magic attack yes
arange Ranged attack yes
dstab Stab defence yes
dslash Slash defence yes
dcrush Crush defence yes
dmagic Magic defence yes
drange Ranged defence yes
str Strength bonus yes
rstr Ranged strength (ranged ammo) yes
mdmg Magic damage bonus yes
prayer Prayer bonus yes
slot Slot the item is worn in. Must be one of [head, weapon, body, legs, shield, cape, 2h, hands, feet, neck, ammo, ring]. yes
speed Speed of the weapon. Omit if not a weapon, or set to 'N/A' if the weapon can not attack. no
attackrange Attack range of the weapon. Omit if not a weapon, or set to 'No' if the weapon can not attack. Set to 'staff' for weapons with melee attack range 1 but spell cast range 10. no
combatstyle Combat style of the weapon. Required if item is a weapon. See Template:CombatStyles for a list of possible values. no
image Image of a player wielding the item. no
caption Caption for the image. no
altimage Alternate image, used for items that vary on male/female character models or items that need multiple angles to show all detail. no
altcaption Caption for the alternate image. no