Open main menu

Changes

Module:Template link general

211 bytes added, 10:37, 25 April 2021
implement sandbox fix for nowiki issues (TPER)
-- Build the arguments
local textPart = ""
for local textPartBuffer = "" local i = 2, 11 do local ii = tostring( while args[i)] do local val = args[iii] textPartBuffer = textPartBuffer .. '&#124;' if val ~= nil "" then val = mw.text.unstripNoWiki(val) else break end if _ne(args.nowiki) then -- Unstrip nowiki tags first because calling nw on something that already contains nowiki tags will -- mangle the nowiki strip marker and result in literal UNIQ...QINU showing up val = nw(mw.text.unstripNoWiki(val) ) end if italic then val = '<span style="font-style:italic;">' .. val .. '</span>' end textPart = textPart .. '&#124;' textPartBuffer .. val textPartBuffer = "" end i = i+1
end
if _ne(args['12']) then textPart = textPart .. '&#124;…' end
-- final wrap
local ret = titlePart .. textPart
Anonymous user