יחידה:Wikibase: הבדלים בין גרסאות בדף
מועתק מויקיפדיה אנגלית |
מאין תקציר עריכה |
||
| שורה 26: | שורה 26: | ||
-- if no argument is provided to this method. | -- if no argument is provided to this method. | ||
function p.description(frame) | function p.description(frame) | ||
if frame.args[1] == nil then | |||
entity = mw.wikibase.getEntityObject() | |||
if not entity then return nil end | |||
id = entity.id | |||
else | |||
id = frame.args[1] | |||
end | |||
return mw.wikibase.description( id ) | |||
end | end | ||