Module:ParentPage: Difference between revisions

Created page with "local p = {} function p.getParent(frame) local pagename = frame.args[1] or mw.title.getCurrentTitle().fullText local parent = pagename:match("^(.+)/[^/]+$") if parent then return parent else return "" end end function p.getParentName(frame) local pagename = frame.args[1] or mw.title.getCurrentTitle().fullText local parent = pagename:match("^(.+)/[^/]+$") if parent then -- Remove namespace prefix for disp..."
 
(No difference)