Module:Test

From PKC
Revision as of 09:24, 9 August 2021 by Benkoo (talk | contribs)
Jump to navigation Jump to search

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

p = {}

function p.hello_world(a)
	cf = mw.getCurrentFrame()
	return "Hello, world! from " .. mw.allToString(cf.args[3]) .. "-" .. mw.allToString(cf.args[1]) .."-" ..mw.allToString(cf.args[2])
end

function p.greek_letter()
	cf = mw.getCurrentFrame()
	aString = "<math>\\" .. mw.allToString(cf.args[1]) .. "</math>"
	return aString
end

function p.rawstring()
	cf = mw.getCurrentFrame()
	return mw.allToString(cf.args[1])
end

return p