Anonymous

Module:MoneyMakingGuide: Difference between revisions

From Melvor Idle
Undo revision 66480 by Ricewind (talk)
(Undo revision 66481 by Ricewind (talk))
Tag: Undo
(Undo revision 66480 by Ricewind (talk))
Tag: Undo
Line 20: Line 20:
}
}


local function removeNoWikiTags(str)
    return str:gsub("^%s*<nowiki>%s*", "")
    :gsub("%s*</nowiki>%s*$", "")
end
--- Formats a given string to TitleCase.
--- Formats a given string to TitleCase.
-- @param name (string) String to format.
-- @param name (string) String to format.
Line 241: Line 237:
local pOutputs = parseItemInOut(args, 'output')
local pOutputs = parseItemInOut(args, 'output')
local dlcIcons = p.getDLCIcons(args['dlc'], ' ')
local dlcIcons = p.getDLCIcons(args['dlc'], ' ')
local explanation = removeNoWikiTags(args['explanation'] or '')
local explanation = mw.text.unstripNoWiki(args['explanation'] or '')


local tbl = mw.html.create()
local tbl = mw.html.create()
2,875

edits