Module:Test: Difference between revisions

From ProleWiki, the proletarian encyclopedia
m (pframe goes after function)
m (Commented to see difference)
Line 3: Line 3:
local pframe = frame:getParent()
local pframe = frame:getParent()
local Quote = pframe.args.quote
local Quote = pframe.args.quote
Quote = string.gsub(Quote,"\n","<br>")
-- Quote = string.gsub(Quote,"\n","<br>")
return Quote
return Quote
end
end
return p
return p

Revision as of 02:30, 4 June 2022

local p = {}
function p.test(frame)
	local pframe = frame:getParent()
	local Quote = pframe.args.quote
	-- Quote = string.gsub(Quote,"\n","<br>")
	return Quote
end
return p