Module:Sandbox/Locusta: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Content deleted Content added
Create
 
No edit summary
 
Line 1: Line 1:
local getArgs = require('Module:Arguments').getArgs
local p = {}
local p = {}


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



Latest revision as of 09:03, 6 August 2024

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