الفرق بين الصفحتين: «وحدة:Finditem» و«وحدة:Finditem/ملعب»

(الفرق بين الصفحتين)
اذهب إلى التنقل اذهب إلى البحث
صفحة 1
صفحة 2
ط (غيّر إعدادات حماية »وحدة:Finditem«: بوت: [https://w.wiki/7NGP تحسين مستوي الحماية] ([تعديل=السماح للمحررين فقط] (غير محدد) [النقل=السماح للمحررين فقط] (غير محدد)))
 
طلا ملخص تعديل
 
سطر 6: سطر 6:
}
}
function findlabelold(entity)
if entity
and entity.labels
and entity.labels['ar']
and entity.labels['ar'].value
then
local lang = entity.labels['ar']
if lang['language'] == 'ar'
then
return ''
else
return i18n.nolabel
end
end
end
function findlabel(id)
function findlabel(id)
local label = mw.wikibase.getLabelByLang( id , 'ar' ) or ''
local label = mw.wikibase.getLabelByLang( id , 'ar' ) or ''
سطر 29: سطر 13:


function p.find(frame)
function p.find(frame)
if not mw.wikibase then return '' end
--local entity = mw.wikibase.getEntityObject()
local EntityId = mw.wikibase.getEntityIdForCurrentPage()
local EntityId = mw.wikibase.getEntityIdForCurrentPage()
local er = i18n.noentity
local er = i18n.noentity