יחידה:PropertyLink: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 3: | שורה 3: | ||
function p.property(frame) | function p.property(frame) | ||
entity = mw.wikibase.getEntity() | entity = mw.wikibase.getEntity() | ||
if entity == nil then | if entity == nil then | ||
return "Entity not found" | return "Entity not found" | ||
| שורה 8: | שורה 9: | ||
property = entity.claims[frame.args[1]] | property = entity.claims[frame.args[1]] | ||
if property == nil then | if property == nil then | ||
return "property not found in " | return "property not found in " | ||
end | end | ||
propValue = property.mainsnak.datavalue | propValue = property.mainsnak.datavalue | ||