local archiveList = require('Module:Archive list')
-- Gets wikitable rows filled with archive links, using .local function getLinks(funcArgs) if type(funcArgs) ~= 'table' then error('Invalid input to getLinks', 2) end funcArgs.sep = '
-- Returns a Lua table with value being a list of archive links for one of the-- noticeboards listed in the archives table at the top of the module.local function getLinksTable(all)
-- A table of the archives to display. local archives = local t = for board, archive in pairs(archives) do local funcArgs = archive if not all then local archiveMax = archiveList.count(funcArgs) if type(archiveMax)
local function group (main_page, search, list) local ret = mw.html.create('li') ret:tag('div') :addClass('an-archives-header') :wikitext(main_page .. " ") :tag('span') :wikitext(search) :done :done ret:wikitext(list) :allDone return retend
-- Build the wikitable using mw.ustring.format.local function buildWikitable(args) local t = getLinksTable(args.all) local frame = mw.getCurrentFrame local lists = -- optional since these haven't been used in a while if args.csn
if args.search
] )) end box:allDone return frame:extensionTag .. '__NOINDEX__' .. tostring(box)
end
function makeWrapper(all) return function(frame) -- If we are being called from #invoke, get the args from #invoke -- if they exist, or else get the arguments passed to the parent -- frame. Otherwise, assume the arguments are being passed directly -- in from another module or from the debug console. local origArgs if frame