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 102: | Line 102: | ||
while args[i] do | while args[i] do | ||
local val = args[i] | local val = args[i] | ||
if val ~= nil then val = mw.text.unstripNoWiki(val) else break end | |||
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 |