Module:Wiki List Tutorial Subpage Checker

local module = {} function module.getEnterIntoSourceEditingModeText(frame) if mw.title.getCurrentTitle.subpageText:sub(-5) == "Wikis" then return frame:preprocess("First, enter into Source editing mode on [" ..tostring(mw.uri.fullUrl( mw.title.getCurrentTitle.prefixedText, "action=edit" )).." this page].") elseif mw.title.getCurrentTitle.prefixedText == "Portal:Full Wiki List/Tutorial" then return frame:preprocess("First, enter into Source editing mode on the Wikis subpage of the portal page you want to edit the list of.") end return frame:preprocess("First, enter into Source editing mode on [" ..tostring(mw.uri.fullUrl( mw.title.getCurrentTitle.prefixedText.."/Wikis", "action=edit" )).." the Wikis subpage of this page].") end return module