Jump to content

Module:Module wikitext: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Jackmcbarn (talk | contribs)
no frame - probably won't be called with one most of the time
Jackmcbarn (talk | contribs)
preprocess it
Line 4: Line 4:
end
end


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

Revision as of 17:23, 7 September 2020

local p = {}

function p.main()
end

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

return p