2,875
edits
m (Actually use the frame arg this time...) |
(Trying a more manual approach to remove <nowiki>) |
||
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 237: | Line 241: | ||
local pOutputs = parseItemInOut(args, 'output') | local pOutputs = parseItemInOut(args, 'output') | ||
local dlcIcons = p.getDLCIcons(args['dlc'], ' ') | local dlcIcons = p.getDLCIcons(args['dlc'], ' ') | ||
local explanation = | local explanation = removeNoWikiTags(args['explanation'] or '') | ||
local tbl = mw.html.create() | local tbl = mw.html.create() |
edits