Modulo:Wikidata: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m new fix |
preparo nuove caratteristiche dell'estensione |
||
Riga 404:
-- Entry-point per {{#invoke:Wikidata|N}}
function p.N(frame)
local
property = frame.args[1] and string.upper(frame.args[1])
Riga 412:
end
entityId = frame.args.entityId and string.upper(frame.args.entityId)
entity = mw.wikibase.
if entity and entity.claims and entity.claims[property] then
count = #entity.claims[property]
Line 422 ⟶ 423:
-- Entry-point per {{#invoke:Wikidata|checkStatements}}
function p.checkStatements(frame)
local
property = frame.args.property and string.upper(frame.args.property)
value = frame.args.value▼
if not property then
Riga 431:
end
▲ value = frame.args.value
entity = mw.wikibase.getEntityObject()▼
entityId = frame.args.entityId and string.upper(frame.args.entityId)
if entity and entity.claims and entity.claims[property] then
local claims = entity.claims[property]
|