Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

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