יחידה:PropertyLink: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 274: | שורה 274: | ||
if not entity 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 | ||
local property = mw.wikibase.getBestStatements(entity, propertyName) | local property = mw.wikibase.getBestStatements(entity, propertyName) | ||
if not property then return end --no such property for this item | if not property or not property[1] then return end --no such property for this item | ||
property = property[1] | property = property[1] | ||