Jump to content

Module:Module wikitext: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Jackmcbarn (talk | contribs)
add a _setText helper
Jackmcbarn (talk | contribs)
no frame - probably won't be called with one most of the time
Line 1: Line 1:
local p = {}
local p = {}


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


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



Revision as of 17:20, 7 September 2020

local p = {}

function p.main()
end

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

return p