请输入您要查询的百科知识:

 

词条 Module:Sandbox/Evad37/TAFI article
释义

local p = {}

local redirModule = require "Module:Redirect"

local redir = redirModule.luaMain

-- Named arguments (optional) |YYYY= and |WW= used, like: {{#invoke:TAFI article|main|YYYY=2016|WW=06}}

function p.main(frame)

local year = frame.args.YYYY or os.date( "%G" ) -- Specified year, or else the current year

local week = frame.args.WW or os.date( "%V" ) -- Specified week, or else the current week

local title = frame:expandTemplate{ title = 'Wikipedia:Today\\'s articles for improvement/' .. year .. '/' .. week .. '/1' } -- transclude page to get article title

        article = redir(title) or title                      -- Get target if title is a redirect        return article

end

return p

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/15 4:48:48