ماڈیول:Catégorisation badges/Détection/دستاویز
یہ ماڈیول:Catégorisation badges/Détection کی دستاویز کا ذیلی صفحہ ہے۔ (ماڈیول کی تفصیلات کے لیے اس کا اپنا صفحہ دیکھیں) اس میں استعمال کا طریقۂ کار ، زمرہ جات، بین الویکی روابط اور دیگر مواد شامل ہے جو کہ خود ماڈیول صفحہ کا حصہ نہیں۔ |
local p = { }
function p.hasAnyBadge( frame )
local entity = mw.wikibase.getEntityObject() if not entity then return end for siteid, linkTable in pairs( entity.sitelinks ) do if next(entity.sitelinks[ siteid ].badges) ~= nil then return '1' end end return
end
return p