Jump to content

Module:Sandbox/Ahecht

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ahecht (talk | contribs) at 14:14, 27 June 2018 (Reverted to revision 836124317 by Ahecht (talk): Revert. (TW)). 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 output = ''
	output = output .. 'frame: ' .. type(frame) .. ' '
	if frame[1] then output = output .. frame[1] end
	output = output .. '\<br />frame.args: ' .. type(frame.args) .. ' '
	if frame.args[1] then output = output .. frame.args[1] end
	output = output .. '<br />frame:getParent().args ' .. type(frame:getParent().args) .. ' '
	if frame:getParent().args[1] then output = output .. frame:getParent().args[1] end
	return output
end

return p