Template:Infobox ModStats/doc: Difference between revisions

From [N8]
Jump to navigation Jump to search
Created page with "{{Documentation}} Standard infobox for equippable mods. ==Empty template== <pre> {{Infobox Bonuses |class = |slot = |mainDamage = |mainAccuracy = |offDamage = |offAccura..."
 
Blanked the page
Tag: Blanking
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation}}
Standard infobox for equippable mods.


==Empty template==
<pre>
{{Infobox Bonuses
|class =
|slot =
|mainDamage =
|mainAccuracy =
|offDamage =
|offAccuracy =
|style =
|armour =
|life =
|prayer =
|strength =
|ranged =
|magic =
|aspeed =
|image =
|tier =
|requirements =
}}
</pre>
==Displaying multiple infoboxes==
Multiple infoboxes can be displayed by identifying <code>version#</code> parameters inside the template.
The parameters that apply to every version box are the same as those on the basic bonuses infobox; however, for every parameter there are an additional 20 named <code>paramname#</code>. The unnumbered parameters are the ''defaults'', and will only be used for a version of the corresponding numbered param is not defined. For example, there is <code>name</code>, <code>name1</code>, <code>name2</code>, all the way to <code>name20</code>.
Parameters are only looked for up to the highest "version" defined. The "version" parameters only come as numbered parameters and they are used to define the text in the switch infobox buttons.
Parameters can be referenced and reused by using a dollar sign ($) followed by the index. For example: <code>|image4=$1</code> will use whatever image is being used for <code>image1</code>.
;Example
<pre>
{{Infobox Bonuses multi
|version1=Level 10|version2=Level 40
|requirements1=10 {{Skill clickpic|Attack}}|requirements2=40 {{Skill clickpic|Attack}}
|class=Melee
|slot=Weapon
|mainDamage1=134|mainDamage2=536
|mainAccuracy1=191|mainAccuracy2=553
|offDamage=0
|offAccuracy=0
|style=Slash
|armour=0
|life=0
|prayer=0
|strength=0
|ranged=0
|magic=0
|aspeed=Average
|image=Exquisite whip equipped.png
}}
</pre>
{{Infobox Mod Stats
|version1=Level 10|version2=Level 40
|requirements1=10 {{Skill clickpic|Attack}}|requirements2=40 {{Skill clickpic|Attack}}
|class=Melee
|slot=Weapon
|mainDamage1=134|mainDamage2=536
|mainAccuracy1=191|mainAccuracy2=553
|offDamage=0
|offAccuracy=0
|style=Slash
|armour=0
|life=0
|prayer=0
|strength=0
|ranged=0
|magic=0
|aspeed=Average
|image=Exquisite whip equipped.png
}}
<includeonly>[[Category:Infobox templates|Bonuses]]</includeonly>

Latest revision as of 17:05, 18 August 2020