Module:Sandbox/RobLa/Foo

local p = {} local str = require( 'Module:StringHelper' ) function p.captions( frame ) local pagename = frame.args[1] pagetitle = mw.title.new( pagename ) pagetext = pagetitle:getContent statusdates = '' for line in str.lines(pagetext) do       if str.startswith(line, '== ') and str.endswith(line, ' ==') then listitem = '* x' .. str.strip( line, '= ') .. '\n' statusdates = statusdates .. listitem end end

return statusdates end return p