Module:PageNameManipulate

local p = {}

function p.RemoveFromRight(frame) Right = frame.args[1] ThisPageTitle = mw.title.getCurrentTitle PageName = ThisPageTitle.text Result = string.sub(PageName, 0, Right) return Result end

function p.RemoveFromBoth(frame) Left = frame.args[1] Right = frame.args[2] ThisPageTitle = mw.title.getCurrentTitle PageName = ThisPageTitle.text Result = string.sub(PageName,Left,Right) return Result end return p