Jump to content

Module:Series overview and Module:Series overview/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Undid revision 1290809446 by Alex 21 (talk) Move to sandbox
 
Update to live, add new test
 
Line 25: Line 25:
-- Split season, then regular season
-- Split season, then regular season
if entry.startA or entry.releasedA then
if entry.startA or entry.releasedA then
for j = string.byte('A'), string.byte('Z') do
if not entry[key..'A'] then spanlength = spanlength + 1
if not entry[key..string.char(j)] then spanlength = spanlength + 1
else break end
else break end
if not entry[key..'B'] then spanlength = spanlength + 1
else break end
end
else
else
if not entry[key] and (key == 'network' or ((string.sub(key,0,7) == 'postaux' or string.sub(key,0,3) == 'aux') and (not entry.special or entry.episodes)) or (string.sub(key,0,4) == 'info') and multipart) then
if not entry[key] and (key == 'network' or ((string.sub(key,0,7) == 'postaux' or string.sub(key,0,3) == 'aux') and (not entry.special or entry.episodes)) or (string.sub(key,0,4) == 'info') and multipart) then