Module:Check for unknown parameters: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
gsub trick to avoid "Lua error in Module:Check_for_unknown_parameters at line 78: invalid capture index" at Brian Smith (rugby league, born 1954) due to |coachwin%2=64 |
try encoding instead, will revert if this doesn't work |
||
வரிசை 51:
end
if not knownflag and ( not ignoreblank or isnotempty(v) ) then
k = mw.text.encode(mw.text.encode(k),'%c%[%]=%%')
table.insert(values, k)
end
வரிசை 60:
local vlen = mw.ustring.len(v)
v = mw.ustring.sub(v, 1, (vlen < 25) and vlen or 25)
v = mw.text.encode(mw.text.encode(v),'%c%[%]=%%')
table.insert(values, k .. ' = ' .. v .. ((vlen >= 25) and ' ...' or ''))
end
வரிசை 76:
v = ' '
end
local r = unknown:gsub('_VALUE_'
table.insert(res, r)
end
| |||