添加的内容 删除的内容
(复制自:Module:Featured picture list;复制至:[[Module:Featured phrase list]) |
无编辑摘要 |
||
(未显示同一用户的1个中间版本) | |||
第6行: | 第6行: | ||
function p.main(frame) |
function p.main(frame) |
||
local lang = mw.language.getContentLanguage() |
local lang = mw.language.getContentLanguage() |
||
local year = lang:formatDate('Y', nil, true) |
|||
local month = lang:formatDate('n', nil, true) |
local month = lang:formatDate('n', nil, true) |
||
local day = lang:formatDate('j', nil, true) |
local day = lang:formatDate('j', nil, true) |
||
if dates[month] and dates[month][day] then |
if dates[year] and dates[year][month] and dates[year][month][day] then |
||
return frame:preprocess(dates[month][day]) |
return frame:preprocess(dates[year][month][day]) |
||
elseif dates['any'] and dates['any'][month] and dates['any'][month][day] then |
|||
return frame:preprocess(dates['any'][month][day]) |
|||
end |
end |
||
第20行: | 第23行: | ||
function p.list(frame) |
function p.list(frame) |
||
local node = mw.html.create '' |
local node = mw.html.create '' |
||
node:wikitext '共有以下页面可以显示' |
node:wikitext '共有以下页面可以显示:' |
||
node:newline() |
node:newline() |
||