local p = {} function p.main(frame) local title = mw.title.getCurrentTitle().text local titleNoDoc = title:gsub("/".."doc", "") local titleSubst = titleNoDoc:gsub("Infookvir ", "") .. "/subst" return titleSubst end return p