Module:Sandbox/Ahecht/modsandbox

This is an old revision of this page, as edited by Ahecht (talk | contribs) at 14:29, 17 May 2017 (Ahecht moved page Module:Sandbox/Ahecht to Module:Sandbox/Ahecht/modsandbox without leaving a redirect: move). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}

function p.main(frame)
	local outStr
	local args = frame:getParent().args
	
	outStr = 'Pairs:\n'
	
	for k, v in pairs(args) do
		outStr = outStr..k..'\t'..v..'\n'
	end
	
	outStr = outStr..'\niPairs:\n'
	
	for k, v in ipairs(args) do
		outStr = outStr..k..'\t'..v..'\n'
	end
	
	return outStr
end

return p