Module:Sandbox/RobLa/Foo
From Bonkipedia
< Module:Sandbox
Revision as of 18:20, 12 November 2022 by ManfredoDo (talk | contribs) (1 revision imported: Module Import)
Testing my template:
- 2011-08-31
- 2011-09-30
- 2011-10-31
- 2012-01-26
- 2012-01-31
- 2012-04-05
- 2012-04-19
- 2012-04-monthly
- 2012-05-10
- 2012-05-monthly
- 2012-06-18
- 2012-06-monthly
- 2012-07-monthly
- 2012-08-monthly
- 2012-09-06
- 2012-09-monthly
- 2012-10-18
- 2012-11-20
- 2012-11-monthly
- 2013-01-monthly
- 2013-02-monthly
- 2013-03-monthly
- 2013-04-monthly
local p = {}
function p.captions( frame )
local pagename = frame.args[1]
pagetitle = mw.title.new( pagename )
pagetext = pagetitle:getContent()
statusdates = "* "
for line in pagetext:gmatch( "[^\r\n]+" ) do
m = line:match( "^== ([^=]*) ==" )
if m then
statusdates = statusdates .. "\n* " .. m
end
end
return statusdates
end
return p