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

מאין תקציר עריכה
מ תיקון קישור חסר וקישור בעברית
שורה 346: שורה 346:
local res = propertyLink.getPropertyByOptions(propertyName, entityId, options)
local res = propertyLink.getPropertyByOptions(propertyName, entityId, options)
if res then
if res then
local missingTranslation = mw.ustring.find(res, '%[%[קטגוריה:ויקינתונים:ערכים_חסרי_תווית_בעברית%]%]')
local link = mw.title.makeTitle( 0, entityId, propertyName, 'wikidata' ):fullUrl('uselang=he')
local link = 'd:'..entityId.. '#'..propertyName
res = res .. mw.ustring.format(' [[File:Blue pencil RTL.svg|15px|link=%s|עריכת הנתון בוויקינתונים]]', link)
if not missingTranslation then
res = res .. mw.ustring.format(' [[File:Blue pencil RTL.svg|15px|link=%s|עריכת הנתון בוויקינתונים]]', link)
--else
--res = res .. mw.ustring.format('[[%s|חסר תרגום]] [[File:Red pencil RTL.svg|15px|link=%s|חסר תרגום בוויקינתונים]]', link, link)
end
end
end
return res
return res