Editing Module:Template link general
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 101: | Line 101: | ||
local i = 2 | local i = 2 | ||
while args[i] do | while args[i] do | ||
local val = args[i] | local val = mw.text.trim(mw.text.unstripNoWiki(args[i])) | ||
textPartBuffer = textPartBuffer .. '|' | textPartBuffer = textPartBuffer .. '|' | ||
if val ~= "" then | if val ~= "" then | ||
if _ne(args.nowiki) then | if _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 .. textPartBuffer .. val | textPart = textPart .. textPartBuffer .. val |