Modul:Archive list: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Hidayatsrf (bicara | kontrib) Update |
k Perbarui sintaks LUA per versi terbaru dari modul yang bersangkutan. |
||
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, if check1000 ==
return 0 -- Return 0 if no archives were found.
end
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 '
end
end
Baris 196 ⟶ 197:
local start = glargs.start or 1
if start > glargs.max then
return '<span class="error">
.. tostring( start )
.. '"
.. 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 )
|