Module:Arceuus library book calculator/doc

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 23:59, 16 October 2024 (Created page with "{{documentation}} {{:User:Faison/Template/Invokes|page=Calculator:Arceuus_library_book/Template}} {| class="wikitable" !Function !Type !Use |- |p.main(frame) |table |The main function to run if invoked from a template that is the results template for a calculator.<br> Valid arguments from the calculator: <code>skill = 'Magic' or 'Runecraft', inputType/targetType = 'Level' or 'Experience', currentLevel/targetLevel = 1 – 126, currentExperience/targetExperience = 1..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Arceuus library book calculator

This is a documentation subpage for Module:Arceuus library book calculator.
It contains usage information, categories, and other content that is not part of the original module page.
Module:Arceuus library book calculator's function main is invoked by Calculator:Arceuus library book/Template.
Module:Arceuus library book calculator requires Module:Addcommas.
Module:Arceuus library book calculator requires Module:Experience.
Module:Arceuus library book calculator requires Module:SCP.
Module:Arceuus library book calculator requires Module:ScaledExperience.

User:Faison/Template/Invokes

Function Type Use
p.main(frame) table The main function to run if invoked from a template that is the results template for a calculator.

Valid arguments from the calculator: skill = 'Magic' or 'Runecraft', inputType/targetType = 'Level' or 'Experience', currentLevel/targetLevel = 1 – 126, currentExperience/targetExperience = 1 – 200000000, leagueGroup = 'true' or 'false', leagueMultiplier = 2 – 32

p._main(args) table Figures out the Level multiplier and the number of books needed to reach a target level or target XP.

Valid arguments: { skill = 'Magic' or 'Runecraft', inputType/targetType = 'Level' or 'Experience', currentLevel/targetLevel = 1 – 126, currentExperience/targetExperience = 1 – 200000000, leagueGroup = 'true' or 'false', leagueMultiplier = 2 – 32 }

p.buildTable(skill, itemData) table Renders the results of p._main to a table.

Valid arguments: { skill = 'Magic' or 'Runecraft', itemData { ['name'] = ' ' , ['link'] = ' ', ['file'] = ' ', ['data'] = scaledExperience.xp_to_xp_actions(currentExperience, targetExperience, levelMultiplier) } }