Jump to content

Module:If in category

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by HouseBlaster (talk | contribs) at 01:03, 5 September 2024 (Undid revision 1244097368 by HouseBlaster (talk)). 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 getArgs = require('Module:Arguments').getArgs
	local args = getArgs(frame)
	return p._main(args)
end

function p._main(args)
	local page = mw.title.new(args[page]) or mw.title.getCurrentTitle()
	--local page = (args[page] or )
	--local category = args[1] or error("No category given")
	return page
end

return p