Module:Sandbox/DGCK81LNN: Difference between revisions

From Bonkipedia
[[mw:]]>DGCK81LNN
No edit summary
 
m (1 revision imported: Module Import)
 
(No difference)

Latest revision as of 18:20, 12 November 2022

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

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

function p.main(frame)
	local args = getArgs(frame)
	return p._main(frame, args)
end

function p._main(frame, args)
	local str = args[1]
	mw.log(str)
	str = mw.text.unstripNoWiki(str)
	mw.log(str)
	str = mw.text.decode(str)
	mw.log(str)
	str = string.gsub(str, "(=+)(.-)=+%s*", "%1=%2=%1")
	mw.log(str)
	str = frame:preprocess(str)
	mw.log(str)
	return str
end

return p