Module:Template link general: Difference between revisions
Content deleted Content added
implement sandbox fix for nowiki issues (TPER) |
m 1 revision imported from templatewiki:Module:Template_link_general |
||
Line 98: | Line 98: | ||
-- Build the arguments |
-- Build the arguments |
||
local textPart = "" |
local textPart = "" |
||
local textPartBuffer = "" |
|||
local i = 2 |
local i = 2 |
||
while args[i] do |
while args[i] do |
||
local val = args[i] |
local val = args[i] |
||
⚫ | |||
textPartBuffer = textPartBuffer .. '|' |
|||
if val |
if _ne(args.nowiki) then val = nw(val) 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 |
|||
⚫ | |||
end |
|||
⚫ | |||
⚫ | |||
textPartBuffer = "" |
|||
end |
|||
i = i+1 |
i = i+1 |
||
end |
end |
||
-- final wrap |
-- final wrap |
||
local ret = titlePart .. textPart |
local ret = titlePart .. textPart |