Documentation for this module may be created at Module:Sandbox/DannyS712/ITN/doc
local p = {}; --All lua modules on Wikipedia must begin by defining a variable
--that will hold their externally accessible functions.
--Such variables can have whatever name you want and may
--also contain various data as well as functions.
function p.main ( frame )
page = mw.title.makeTitle( 'Wikipedia', 'In the news/Candidates' )
content = page:getContent()
sections = string.gmatch( content, '==== .* ====' )
mw.logObject( sections )
return sections
end
return p
