יחידה:תבנית מידע: הבדלים בין גרסאות בדף

מאין תקציר עריכה
מאין תקציר עריכה
שורה 346: שורה 346:


local res = propertyLink.getPropertyByOptions(propertyName, entityId, options)
local res = propertyLink.getPropertyByOptions(propertyName, entityId, options)
if res and #res == 0 then
if (res==nil) or (#res == 0) then
return nil
return nil
end
end
 
if res then
local hasData, maintainceCats = splitMaintainceCategory(res)
if hasData then
local link = mw.title.makeTitle( 0, entityId, propertyName, 'wikidata' ):fullUrl('uselang=he')
local link = mw.title.makeTitle( 0, entityId, propertyName, 'wikidata' ):fullUrl('uselang=he')
res = res .. mw.ustring.format(' [[File:Blue pencil RTL.svg|15px|link=%s|עריכת הנתון בוויקינתונים]]', link)
res = res .. mw.ustring.format(' [[File:Blue pencil RTL.svg|15px|link=%s|עריכת הנתון בוויקינתונים]]', link)