Module:Sandbox/vernhart/test

Revision as of 09:23, 4 August 2014 by imported>Vernhart (try getParent().args)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Sandbox/vernhart/test/doc

-- test
local p = {}

function p.test(frame)

	local args = frame:getParent().args

	local output = 'test'
	t2 = {w = 'e', x = 'f', y = 'g', z = 'h'}
	
	for x, y in pairs(frame.args) do
    	output = output .. '<br/>x: ' .. x .. ' y: ' .. y
	end

	for x, y in pairs(t2) do
    	output = output .. '<br/>x: ' .. x .. ' y: ' .. y
	end

	for x, y in pairs(frame.args or args) do
    	output = output .. '<br/>x: ' .. x .. ' y: ' .. y
	end
	
	return output
end
return p