Module:Sandbox/Locusta

From Test Wiki
Revision as of 09:03, 6 August 2024 by Locusta (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local getArgs = require('Module:Arguments').getArgs
local p = {}

function p.main (frame) 
	local args = getArgs(frame)
	local title = args["1"] or args["title"] or args["page"]
	return mw.title.new(title):getContent()
end

return p