Jump to content

Module:Archive and Module:Archive/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
moved sandbox changes live per talk page notes and TfD discussion; this allows the template to better handle annually archived pages
 
temporarily add these back to discuss
 
Line 237: Line 237:
-- PS: Needs to be changed if the template is renamed!
-- PS: Needs to be changed if the template is renamed!
local mainTemplatePage = ''
local mainTemplatePage = ''
if self.currentTitle.fullText == 'Template:Archive' then
if self.currentTitle.fullText == 'Template:Archive/sandbox' then
mainTemplatePage = 'talk'
mainTemplatePage = 'talk'
end
end
Line 470: Line 470:


function p._aan(args, cfg, currentTitle)
function p._aan(args, cfg, currentTitle)
cfg = cfg or mw.loadData('Module:Archive/config')
cfg = cfg or mw.loadData('Module:Archive/config/sandbox')
currentTitle = currentTitle or mw.title.getCurrentTitle()
currentTitle = currentTitle or mw.title.getCurrentTitle()
local aan = Navigator.new(args, cfg, currentTitle)
local aan = Navigator.new(args, cfg, currentTitle)