ماڊيول:Wikidata2/P106
ڏيک
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='sd'})
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