Module:Sandbox/BrownHairedGirl/GenericDecadeCatNav v01: Difference between revisions

Content deleted Content added
.
.
Line 104:
if (match_prefix ~= nil) and (match_prefix ~= "") then
if (mw.ustring.sub(match_prefix, -1 ) ~= ' ') then
debugLog(2, 'Invalid. [' .. pn .. '] has no space before decade"')
return false
end
Line 112:
if (match_suffix ~= nil) and (match_suffix ~= "") then
if (mw.ustring.sub(match_suffix, 1, 1) ~= ' ') then
debugLog(2, 'Invalid. [' .. pn .. '] has no space after decade"')
return false
end
Line 128:
match_decade = mw.ustring.gsub(match_decade, "0s$", "0")
thisPageDecade = tonumber(match_decade)
if trueisBC then
thisPageDecade = -thisPageDecade
end
title_prefix = match_prefix
Line 207 ⟶ 211:
end
debugLog(nil, "Yes, this is a category")
if true then
return publishDebugLog()
end
 
if not parsePagename(thispagename) then