Jump to content

Module:Module wikitext: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Jackmcbarn (talk | contribs)
create a stub module with a function meant to be overwritten by other modules
 
Jackmcbarn (talk | contribs)
add a _setText helper
Line 2: Line 2:


function p.main(frame)
function p.main(frame)
end

function p._setText(text)
p.main = function(frame) return text end
end
end



Revision as of 17:17, 7 September 2020

local p = {}

function p.main(frame)
end

function p._setText(text)
	p.main = function(frame) return text end
end

return p