Module:Redirect template handler and Module:Redirect template handler/sandbox: Difference between pages
(Difference between pages)
imported>Gonnym move here |
imported>Gonnym testing |
||
| Line 304: | Line 304: | ||
local redirectCategoryShell = currentFrame:expandTemplate{title = "Redirect category shell", args = {redirectCategoryTemplates}} | local redirectCategoryShell = currentFrame:expandTemplate{title = "Redirect category shell", args = {redirectCategoryTemplates}} | ||
-- Put the series name in the disambiguation in italics. | |||
local italicTitle = require("Module:Italic title2")._dabonly({string = string.gsub(args.series_name, "%(.*%)", "", 1)}) | |||
mw.log(string.gsub(args.series_name, "%(.*%)", "", 1)) | |||
local unknownParametersErrors = getUnknownParametersErrors(args, validArgs) | local unknownParametersErrors = getUnknownParametersErrors(args, validArgs) | ||
-- Used for /testcases testing. | -- Used for /testcases testing. | ||
| Line 309: | Line 313: | ||
return table.concat(debugTemplateUsedList, ", "), mainRedirect | return table.concat(debugTemplateUsedList, ", "), mainRedirect | ||
else | else | ||
return redirectCategoryShell, mainRedirect, unknownParametersErrors | return italicTitle .. redirectCategoryShell, mainRedirect, unknownParametersErrors | ||
end | end | ||
end | end | ||