View source for Module:TAFI article
MyWikiBiz, Author Your Legacy — Wednesday June 04, 2025
Jump to navigationJump to searchYou do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
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
week = tonumber(week) -- Remove zero-padding, if present
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
000
1:0
Templates used on this page:
- Template:Lua (view source)
- Template:Purge (view source)
- Template:Sandbox other (view source)
- Template:Wikipedia:Today's articles for improvement/2015/32/1 (view source)
- Template:Wikipedia:Today's articles for improvement/2021/28/1 (view source)
- Template:Wikipedia:Today's articles for improvement/9999/2/1 (view source)
- Module:Redirect (view source)
- Module:TAFI article (view source)
- Module:TAFI article/doc (view source)
Return to Module:TAFI article.