Module:Official website: Difference between revisions

Content deleted Content added
index check should be the other way round
fix language qualifier detection
Line 29:
-- Finds whether a Wikidata property is qualified as being in English.
local function isEnglish(prop)
local langret = quickPcall(function ()
returnfor i, lang in ipairs(prop.qualifiers.P2439.datavalue.value['numeric-id']) do
if lang.datavalue.value['numeric-id'] == 1860 then
return true
end
end
return false
end)
return langret == 1860true
end