Modulo:Interprogetto/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
rifiniture |
meglio |
||
Riga 134:
local interwiki = { project }
if property_language and self.entity.claims and self.entity.claims[property_language] then
for
if claim.mainsnak.datavalue.type == 'wikibase-entityid' then
local entityId = 'Q' .. claim.mainsnak.datavalue.value['numeric-id']
Riga 141:
local language_code = claims[1] and claims[1].mainsnak.datavalue.value
if language_code then
project = project:gsub('^%a%a', language_code)
table.insert(interwiki,
self.lingua[
end
end
Line 213 ⟶ 214:
function Wikidata_entity:hasPropertyValue(propertyId, values)
if self.entity.claims and self.entity.claims[propertyId] then
▲ if claim and claim.mainsnak and claim.mainsnak.datavalue and claim.mainsnak.datavalue.value then
local datavalue = claim.mainsnak.datavalue
if datavalue.type == 'wikibase-entityid'
end
end
|