Mòdul:Wikidades/proves: diferència entre les revisions
Contingut suprimit Contingut afegit
paràmetre showsomevalue |
filtres amb list de qualificadors |
||
Línia 1:
-- version
local p = {}
-- Initialization of variables --------------------
Linha 1.440 ⟶ 1.438:
sortkeys[#sortkeys]["col" .. j] = sortkeyq or valueq
if whitelist[j] or blacklist[j] or ignorevalue[j] or selectvalue[j] then
valueq = valueraw or getValueOfClaim(claim, qual, {["formatting"]="raw", ["lang"]=params.lang, ["list"]=params.list})
if
for k, v in pairs(whitelist[j]) do
if v and string.find(valueq, k, 1, true) then
rowlist[#values] = false▼
rowlist[#values] = true
elseif ignorevalue[j] and ignorevalue[j][valueq or ""] then▼
end
values[#values]["col" .. j] = nil▼
end
elseif selectvalue[j] and not selectvalue[j][valueq or ""] then▼
for k, v in pairs(blacklist[j]) do
if v and string.find(valueq, k, 1, true) then
▲ rowlist[#values] = false
end
end
for k, v in pairs(ignorevalue[j]) do
if v and string.find(valueq, k, 1, true) then
▲ values[#values]["col" .. j] = nil
end
end
for k, v in pairs(selectvalue[j]) do
if v and string.find(valueq, k, 1, true) then
values[#values]["col" .. j] = nil
end
end
end
end
end
|