יחידה:Sister project links: הבדלים בין גרסאות בדף

מאין תקציר עריכה
מאין תקציר עריכה
שורה 155: שורה 155:
local commonCat = mw.wikibase.getBestStatements( entity, 'P373' )
local commonCat = mw.wikibase.getBestStatements( entity, 'P373' )
commonCat = commonCat and commonCat[1] and commonCat[1].mainsnak and commonCat[1].mainsnak.datavalue and commonCat[1].mainsnak.datavalue.value
commonCat = commonCat and commonCat[1] and commonCat[1].mainsnak and commonCat[1].mainsnak.datavalue and commonCat[1].mainsnak.datavalue.value
if commonCat~=nil and commonCat~='' then
commonCat = mw.ustring.format('Category:%s', commonCat)
end
args[proj['arg']] = commonCat
args[proj['arg']] = commonCat
args['שם ' .. proj['arg']] = title
args['שם ' .. proj['arg']] = title