Module:YearNav: Difference between revisions

OK, seems the trouble was I was just seeing the output on a page without a four digit year...
No edit summary
Tag: Reverted
(OK, seems the trouble was I was just seeing the output on a page without a four digit year...)
Tag: Manual revert
 
(One intermediate revision by the same user not shown)
Line 20: Line 20:


     _, _, OriginalYear = string.find(PageName, "(%d%d%d%d)")
     _, _, OriginalYear = string.find(PageName, "(%d%d%d%d)")
    --DebugOutput = "ThisPageTitle " .. ThisPageTitle .. " Prefix " .. Prefix .. " Namespace " .. Namespace .. " PageName " .. PageName
    DebugOutput = ThisPageTitle
    return DebugOutput
end
function p.fakesoitwillshutup(frame)
     PageWithout = string.gsub(PageName, OriginalYear, "@@@@")
     PageWithout = string.gsub(PageName, OriginalYear, "@@@@")