Module:Check for unknown parameters: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
less aggressive encoding per request on the talk page
No edit summary
(less aggressive encoding per request on the talk page)
Line 51:
end
if not knownflag and ( not ignoreblank or isnotempty(v) ) then
k = mw.ustringtext.gsubencode(mw.text.encode(k), '%c%[^%w\-_ ]', '?=')
table.insert(values, k)
end
Line 60:
local vlen = mw.ustring.len(v)
v = mw.ustring.sub(v, 1, (vlen < 25) and vlen or 25)
v = mw.ustringtext.gsubencode(mw.text.encode(v), '%c%[^%w\-_ ]', '?=')
table.insert(values, k .. ' = ' .. v .. ((vlen >= 25) and ' ...' or ''))
end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu