Template:Skilling success chart

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Skilling success chart/doc. [edit] [history] [purge]
Template:Skilling success chart invokes function main in Module:Skilling success chart using Lua.

Template used to add a graph of skilling success chances on a page.

Where to use:

Usage

{{Skilling success chart
|label=Graph title
|xlabel=Label for x axis, defaults to "Level"
|ylabel=Label for y axis, defaults to "Success rate"
|showbefore=Option to display graph before the required level; use "no" to omit impossible chances (e.g. Chopping yews at level 20).
|label1=Item used or resource gathered (e.g. bronze hatchet or raw tuna)
|low1=The chance of success if the player's level in that skill is 1, out of 255 (even if it's not possible to perform that action at that level)
|high1=The chance of success if the player's level in that skill is 99, out of 255
|req1=The skill level required to perform an action (e.g. 85 for fishing raw cavefish)
|color1=Colour used for the graph line. Fitting colours are recommended, e.g. "blue" for raw cod. Hex colour codes such as "#cb410b" work too.
|image1=Item used or resource gathered (e.g. Bronze hatchet.png or Raw tuna.png)
}}

Example

{"type":"scatter","options":{"scales":{"y":{"ticks":{"stepSize":0.1,"format":"percent"},"scaleLabel":{"display":true,"labelString":"Success chance"}},"x":{"ticks":{"stepSize":1},"scaleLabel":{"display":true,"labelString":"Level"}}},"tooltips":{"mode":"nearest","format":"skillingSuccess","intersect":false,"axis":"x"},"datasetsPerGroup":3,"aspectRatio":1.35,"title":{"display":true,"font":{"size":18},"text":"Yew tree cut chance","position":"top"},"maintainAspectRatio":false,"fill":false},"minWidth":"300px","resizable":true,"width":"min(540px, 100%, 100vw - 2em)","isChartObj":true,"height":"min(400px, 100vh - 2em)","isFinished":true,"minHeight":"300px","data":{"datasets":[]}}