Modulo:Cita Wikidata: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
aggiungo controllo cid; meglio non usare gsub visto che non sappiamo cosa sia identifier |
restituisco errore anche quando manca l'identificativo |
||
Riga 55:
local args = getArgs(frame)
-- Ritorna un errore se in args mancano i campi medium o prop
if not is_set(args.medium) then return
if not is_set(args.prop) then return
propertyId = args.prop
Riga 63:
local identifierFromWD = mWikidata._getProperty( { propertyId } )
local identifier = args.id or identifierFromWD
if not is_set(identifier) then return substitute(errorMsg, 'id') end
local urlType
|