Jump to content

Module:Sandbox/Kephir

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Kephir (talk | contribs) at 17:09, 7 January 2014 (more elaborate). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- [[User:Kephir]]'s Scribunto sandbox
-- do not expect anything to stay here in place

return {
	pagename = function (frame)
		local result = { frame:preprocess("{{PAGENAME}}") }
		table.insert(result, "\nown:")
		for k, v in pairs(frame.args) do
			table.insert(result, "\n*" .. k .. "=" .. v)
		end
		table.insert(result, "\nparent:")
		for k, v in pairs(frame:getParent().args) do
			table.insert(result, "\n*" .. k .. "=" .. v)
		end
		return table.concat(result)
	end;
}