Content deleted Content added
regular module:mapframe |
make hasWikidataProperty return false if the property value is 'novalue' |
||
Line 22:
local statements = mw.wikibase.getBestStatements(item_id, property_id)
if not statements or #statements == 0 then
return false
end
local hasNoValue = ( statements[1].mainsnak and statements[1].mainsnak.snaktype == 'novalue' )
if hasNoValue then
return false
end
|