Module:Module wikitext: Difference between revisions

From OS-Tan Collections Wiki
Jump to navigation Jump to search
(Created page with "local p = {} p.text = '' function p.main() return p.text end function p._addText(text, preprocessFrame) if preprocessFrame ~= false then text = (preprocessFrame or mw.getCurrentFrame()):preprocess(text) end p.text = p.text .. text end return p")
 
(No difference)

Latest revision as of 21:45, 10 December 2023

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

local p = {}

p.text = ''

function p.main()
	return p.text
end

function p._addText(text, preprocessFrame)
	if preprocessFrame ~= false then
		text = (preprocessFrame or mw.getCurrentFrame()):preprocess(text)
	end
	p.text = p.text .. text
end

return p