Module:Sandbox/User:Tidus ll

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search
Module documentation
This documentation is transcluded from Template:Module sandbox/doc. [edit] [history] [purge]
Module:Sandbox/User:Tidus ll requires Module:ExchangeLite.

This module is a sandbox for Tidus ll. It can be used to test changes to existing modules, prototype new modules, or just experimenting with lua features.

Invocations of this sandbox should be kept in userspace; if the module is intended for use in other namespaces, it should be moved out of the sandbox into a normal module and template.

This default documentation can be overridden by creating the /doc subpage of this module, as normal.

-- <nowiki>
--
-- import exchangelite
local p = {}
local exch = require( 'Module:ExchangeLite' )

function p.main(frame)
	local params = frame:getParent().args
	local retNum = ""
	local retError = ""
	
	for it,num in pairs(params) do
		 retNum = retNum .. " - " .. exch.price(it)
	end
	
	return retNum
end

return p
-- </nowiki>