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 (Testing purposes (string replace))
m (pframe goes after function)
Line 1: Line 1:
local p = {}
local p = {}
local pframe = frame:getParent()
function p.test(frame)
function p.test(frame)
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>")

Revision as of 02:29, 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