More languages
More actions
m (Using tostring before) |
m (Not sure why it won't work, testing something else) |
||
Line 2: | Line 2: | ||
function p.test( frame ) | function p.test( frame ) | ||
local pageContent = tostring(mw.title.getCurrentTitle():getContent()) | local pageContent = tostring(mw.title.getCurrentTitle():getContent()) | ||
local pagesLines = mw.text.split(pageContent,'%s') | local pagesLines = '' | ||
return mw.text.split(pageContent,'%s')[1] | |||
end | end | ||
return p | return p |