יחידה:PropertyLink: הבדלים בין גרסאות בדף
מ hasEntry |
מאין תקציר עריכה |
||
| שורה 65: | שורה 65: | ||
function hasEntry() | function hasEntry() | ||
local entity = mw.wikibase.getEntity() | local entity = mw.wikibase.getEntity() | ||
if not entity or not entity.claims then return end --the entity doesnt exist or have no claims | --if not entity or not entity.claims then return end --the entity doesnt exist or have no claims | ||
if not entity then return end --the entity doesnt exist or have no claims | |||
return 1 | return 1 | ||
end | end | ||