Module:Template link general: Difference between revisions

m
no edit summary
(accept empty, unstrip non-nil only)
mNo edit summary
Line 97: Line 97:
local ii = tostring(i)
local ii = tostring(i)
local val = args[ii]
local val = args[ii]
if val ~= nil then break else val = mw.text.unstripNoWiki(val) 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.yeswiki) 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
Anonymous user