Difference between revisions of "Module:Check for unknown parameters"

Jump to navigation Jump to search
m
(reduce REVISIONID checks per thread at https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=725747331#Preview-only_template_warnings_using_REVISIONID_magic_word)
(11 intermediate revisions by 6 users not shown)
( showblankpos or isnotempty(v) )
then
local vlen = mw.ustring.len(v)
table.insert(values, k)
v = mw.ustring.sub(v, 1, (vlen < 25) and vlen or 25)
v = mw.ustring.gsub(v, '[^%w\-_ ]', '?')
table.insert(values, k .. ' = ' .. v .. ((vlen >= 25) and ' ...' or ''))
end
end
4,405

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu