Modul:TestTabs

Version vom 3. Januar 2024, 13:17 Uhr von Red Rooster (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „local p = {} function p.unstrip(frame) return mw.text.unstrip(frame.args[1] or '') end p.helloWorld = function() return 'Hello, world!' end p.justFun = fu…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

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()
	return 'Hello, world!'
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