More languages
More actions
m (Correcting method call syntax) |
m (Testing splitting page contents by line) |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p.test( frame ) | function p.test( frame ) | ||
local pageContent = mw.title.getCurrentTitle():getContent() | |||
local pagesLines = mw.text.split(pageContent,'\n') | |||
return pageLines[1] | |||
end | end | ||
return p | return p |