Module:Template link general: Difference between revisions

Don't use nowiki by default -- this might be breaking, but fixes the 124 and 61 test cases
(Okay.... ns check)
(Don't use nowiki by default -- this might be breaking, but fixes the 124 and 61 test cases)
Line 102: Line 102:
local val = args[ii]
local val = args[ii]
if val ~= nil then val = mw.text.unstripNoWiki(val) else break end
if val ~= nil then val = mw.text.unstripNoWiki(val) else break end
if not _ne(args.yeswiki) then val = nw(val) end
if not _ne(args.nowiki) then val = nw(val) end
if italic then val = '<span style="font-style:italic;">' .. val .. '</span>' end
if italic then val = '<span style="font-style:italic;">' .. val .. '</span>' end
textPart = textPart .. '&#124;' .. val
textPart = textPart .. '&#124;' .. val
Anonymous user