Modul:Archive list: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Update
k Cleanup
 
(1 revisi perantara oleh pengguna yang sama tidak ditampilkan)
Baris 58:
-- maximum of 500,000 possible archives before we hit the
-- expensive function limit.
local function getBiggestArchiveNum( prefix, start, max )
-- Return the value for max if it is specified.
max = processNumArg( max )
Baris 66:
-- Otherwise, detect the largest archive number.
start = start or 1
local check1000 = checkArchives( prefix, 1000, 1start )
if check1000 == 1start then
return 0 -- Return 0 if no archives were found.
end
Baris 90 ⟶ 91:
end
else
ret = ret .. 'ArchiveArsip '
end
return ret
Baris 138 ⟶ 139:
end
else
ret = 'ArchiveArsip '
end
else --type is not long
Baris 189 ⟶ 190:
glargs.max = 1 -- One archive redlink is displayed for Long format
else -- Short error and a creat link is displayed for short
return 'nobelum archivesada yetarsip ([[' .. glargs.prefix .. '1|createbuat]])'
end
end
Baris 196 ⟶ 197:
local start = glargs.start or 1
if start > glargs.max then
return '<span class="error">StartNilai valueawal "'
.. tostring( start )
.. '" islebih greaterbesar thandaripada theangka mostarsip recent archive numberterkini "'
.. tostring( glargs.max )
.. '".</span>'
Baris 260 ⟶ 261:
local isLong = findFormType( args.auto )
local prefix = getPrefix( args.root, args.prefix, args.prefixspace )
local max = getBiggestArchiveNum( prefix, args.max )
local lineNum = getLineNum( args.links, args.nobr, isLong )
local linkPrefix = getLinkPrefix( args.linkprefix, args.linkprefixspace, isLong )
local start = getStart( args.start )
local max = getBiggestArchiveNum( prefix, start, args.max )
local sep = getSeparator( args.sep )
local lineSep = getSeparator( args.linesep )