Module:YearNav: Difference between revisions

Jump to navigation Jump to search
no edit summary
(So many years I'm not sure what those underscores are doing... and the next line is throwing errors about OriginalYear so I guess something is going wrong with the previous line... play time.)
Tag: Reverted
No edit summary
Tag: Reverted
Line 19: Line 19:
     --PageName = "1987 Sandwiches"
     --PageName = "1987 Sandwiches"


     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 .. " Original Year " .. OriginalYear
    return DebugOutput
end
 
function p.fakesoitwillshutup(frame)
     PageWithout = string.gsub(PageName, OriginalYear, "@@@@")
     PageWithout = string.gsub(PageName, OriginalYear, "@@@@")


Navigation menu