Module:Test: Difference between revisions

From ProleWiki, the proletarian encyclopedia
m (Using plaintext)
m (Changing index of table just for further testing)
Line 3: Line 3:
local pageContent = tostring(mw.title.getCurrentTitle():getContent())
local pageContent = tostring(mw.title.getCurrentTitle():getContent())
local pageLines = mw.text.split(pageContent,'\n',true)
local pageLines = mw.text.split(pageContent,'\n',true)
return pageLines[1]
return pageLines[2]
end
end
return p
return p

Revision as of 17:40, 14 April 2024

local p = {}
function p.test( frame )
	local pageContent = tostring(mw.title.getCurrentTitle():getContent())
	local pageLines = mw.text.split(pageContent,'\n',true)
	return pageLines[2]
end
return p