יחידה:PropertyLink: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 358: | שורה 358: | ||
end | end | ||
function getLabel( propertyName ) | function getLabel( propertyName, entityId ) | ||
local entity = mw.wikibase.getEntityIdForCurrentPage() | local entity = entityId or mw.wikibase.getEntityIdForCurrentPage() | ||
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) | ||