Die Dokumentation für dieses Modul kann unter Modul:TestTabs/Doku erstellt werden

local p = {}

function p.unstrip(frame)
	return mw.text.unstrip(frame.args[1] or '')
end

p.helloWorld = function()
	-- create the table's header row
local tbl = mw.html.create('table')
:tag('tr')
	:tag('th')
		:wikitext("things that aren't as cute as kittens")
	:done()
:done()
-- now the current location in tbl is directly within the <table> tag

-- add further rows to the table
for _, v in ipairs({ 'bunnies', 'puppies' }) do
	tbl:tag('tr')
		:tag('td')
			:wikitext(v)
end
	return 'Knox off'
end

p.justFun = function(a)
	args = a.args
	return 'The name was ' .. tostring(args)
end

p.checkMac = function(a)
	args = a.args
	return 'Your check is Mc' .. args.name
end

p.preprocess = function(a)
	args = a.args
	f = mw.getCurrentFrame()
	--return mw.text.unstrip(a.text)
	return f:preprocess( args.text ) 
end
return p