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

מאין תקציר עריכה
מאין תקציר עריכה
שורה 142: שורה 142:
local wbEdit='' -- link to wikidata
local wbEdit='' -- link to wikidata
if self.args.usingWikidata then
if self.args.usingWikidata then
local entity = mw.wikibase.getEntityObject()
local entityId = mw.wikibase.getEntityIdForCurrentPage()
wbEdit = '[[File:Wikidata-logo S.svg|20px|link=d:'..entity.id..'|לעריכה בוויקינתונים שמשמש מקור לחלק מהמידע בתבנית]]'
wbEdit = '[[File:Wikidata-logo S.svg|20px|link=d:'..entityId..'|לעריכה בוויקינתונים שמשמש מקור לחלק מהמידע בתבנית]]'
end
end
if #wbEdit > 0 then
if #wbEdit > 0 then