Module:Test: Difference between revisions

From ProleWiki, the proletarian encyclopedia
m (Refining method)
m (Correcting method call syntax)
Line 1: Line 1:
local p = {}
local p = {}
function p.test( frame )
function p.test( frame )
return mw.title.getCurrentTitle().getContent()
return mw.title.getCurrentTitle():getContent()
end
end
return p
return p

Revision as of 16:59, 14 April 2024

local p = {}
function p.test( frame )
	return mw.title.getCurrentTitle():getContent()
end
return p