Module:MoneyMakingGuide: Difference between revisions

Undo revision 66482 by Ricewind (talk)
No edit summary
(Undo revision 66482 by Ricewind (talk))
Tag: Undo
Line 21: Line 21:


local function removeNoWikiTags(str)
local function removeNoWikiTags(str)
     return mw.text.unstripNoWiki(str)
    local stripped = str:gsub("^%s*<nowiki>%s*", "")
        :gsub("%s*</nowiki>%s*$", "")
     
     return mw.text.unstripNoWiki(stripped)
end
end
--- Formats a given string to TitleCase.
--- Formats a given string to TitleCase.
2,875

edits