Module:Check for unknown parameters: Difference between revisions

no edit summary
en>Frietjes
(clip at 25 characters)
en>Frietjes
No edit summary
Line 61: Line 61:
v = mw.ustring.sub(v, 1, (vlen < 25) and vlen or 25)  
v = mw.ustring.sub(v, 1, (vlen < 25) and vlen or 25)  
v = mw.ustring.gsub(v, '[^%w\-_ ]', '?')
v = mw.ustring.gsub(v, '[^%w\-_ ]', '?')
table.insert(values, k .. ' = ' .. v .. ((vlen >= 25) and '..' or ''))
table.insert(values, k .. ' = ' .. v .. ((vlen >= 25) and ' ...' or ''))
end
end
end
end
Anonymous user