2,873
edits
No edit summary |
Tag: Undo |
||
Line 21: | Line 21: | ||
local function removeNoWikiTags(str) | local function removeNoWikiTags(str) | ||
return mw.text.unstripNoWiki( | 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. |
edits