Documentation for this module may be created at ماڈیول:Wikidata2/P106/doc

local p = {}
local categoryLinksToEntitiesWithMissingLabel = '[[ونکی:صفحات بها مهن بحاجة للتأنيث]]'; 

local function formatGenderLabelForEntityId( entit, isFemale  , options)
		local label = formatStatements( {property ='P2521', entityId = entit, noref ='true' ,langpref='skr'})
		local vv = formatEntityId(entit , options)
		
		if isFemale and isFemale =='Q6581072'  
			then
				vv = formatEntityId(entit, {label = ( label )})
		end
		return vv
end

function p.formatEntityWithGenderClaim( datavalue ,datatype , options)
	   	local value = datavalue.value
   		local entit = datavalue.value.id
		local isFemale =  formatStatements( {property ='P21', entityId = options.entityId , noref ='true' ,rank='all'
					,enbarten ='true',separator='',conjunction='',formatting ='raw'})


		local s = formatGenderLabelForEntityId( entit , isFemale  , options).value
	return s 

end
return p