Module:Test: Difference between revisions

From ProleWiki, the proletarian encyclopedia
m (Commented to see difference)
m (Testing relationship between Lua and MediaWiki)
Line 1: Line 1:
local p = {}
local p = {}
function p.test(frame)
function p.test(frame)
local pframe = frame:getParent()
local args = frame:getParent().args
local Quote = pframe.args.quote
return tostring(args)
-- Quote = string.gsub(Quote,"\n","<br>")
return Quote
end
end
return p
return p

Revision as of 00:25, 24 June 2022

local p = {}
function p.test(frame)
	local args = frame:getParent().args
	return tostring(args)
end
return p