مۆدیوول:Wikidata2/P106

بەڵگەدارکردنی مۆدیوول
local p = {}local categoryLinksToEntitiesWithMissingLabel = '[[تصنيف:صفحات بها مهن بحاجة للتأنيث]]'; local skiip = {"Q42857"}local function formatGenderLabelForEntityId( entit, isFemale  , options)local label = formatStatements( {property ='P2521', entityId = entit, noref ='true' ,langpref='ckb' ,formatting='text',rank = "all" }) or ""--mw.log(" entit:" .. entit .. ",label:" .. label .. "." )local vv = formatEntityId(entit , options)if isFemale and isFemale =='Q6581072'  or isFemale =='Q1052281'  thenvv = formatEntityId(entit, {label = ( label )})endreturn vvendfunction p.formatEntityWithGenderClaim( datavalue ,datatype , options)   local value = datavalue.value   local entit = datavalue.value.id   for k, v in pairs(skiip) doif datavalue.value.id == v then mw.log("P106:Q42857 undisplayed.")return ""endendlocal isFemale =  formatStatements( {property ='P21', entityId = options.entityId , noref ='true' ,rank='all', firstvalue='true',separator='',conjunction='',formatting ='raw'})local s = formatGenderLabelForEntityId( entit , isFemale  , options).valuereturn s endreturn p