Content deleted Content added
No edit summary |
No edit summary |
||
Line 296:
local function splitref(s)
local
if pos then
local marker = text:sub(1, pos)
for k, v in ipairs( parts ) do▼
local parts = mw.text.split(s or '', '[\127]', true)
if v:match('^[^\127]*UNIQ[^\127]*%-ref[^\127]*$') then▼
else▼
▲ if v:match('^[^\127]*UNIQ[^\127]*%-ref[^\127]*$') then
text = (text or '') .. v▼
references = (references or '') .. marker .. v .. marker
▲ else
▲ text = (text or '') .. v
end
end
else
return text,nil
end
▲ return text,reference
end
|