Modul:Citat dana
Dokumentaciju za ovaj modul možete napraviti na stranici Modul:Citat dana/dok
local base = ':[['..mw.site.namespaces[10].name..':Citat dana/%d. %s]]'
local lang = mw.language.getContentLanguage()
local p = {}
-- shows a list of links to "Quotes of the day" for the whole year
function p.list(frame)
local res = {}
for num = 1,12 do
local monthName = lang:formatDate('F','2012-'..num)
local m = {'=='..lang:ucfirst(monthName)..'=='}
for day = 1,tonumber(lang:formatDate('t','2012-'..num..'-01')) do
table.insert(m,string.format(base,day,monthName))
end
table.insert(res,table.concat(m,'\n'))
end
return table.concat(res,'\n\n')
end
return p