<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ro">
	<id>https://enciclopedia.md/index.php?action=history&amp;feed=atom&amp;title=Modul%3AWikidataUtils%2FBiography</id>
	<title>Modul:WikidataUtils/Biography - Revizia istoricului</title>
	<link rel="self" type="application/atom+xml" href="https://enciclopedia.md/index.php?action=history&amp;feed=atom&amp;title=Modul%3AWikidataUtils%2FBiography"/>
	<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:WikidataUtils/Biography&amp;action=history"/>
	<updated>2026-04-22T12:26:31Z</updated>
	<subtitle>Istoricul versiunilor pentru această pagină din wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://enciclopedia.md/index.php?title=Modul:WikidataUtils/Biography&amp;diff=357&amp;oldid=prev</id>
		<title>Sergiu: Pagină nouă: local Wikidata = require(&#039;Modul:Wikidata&#039;) local p = {}  local function isDead(qId)  	local deathDateClaims = Wikidata.findBestClaimsForProperty(qId, &#039;P570&#039;) 	if deathDateClaims then for _,eachDeathDateClaim in ipairs(deathDateClaims) do 		if Wikidata.isClaimTrue(eachDeathDateClaim) and eachDeathDateClaim.mainsnak.snaktype ~= &#039;novalue&#039; 			then 				return true 			end 	end end 	return false end p.isDead = isDead  local function isFemale(qId) 	local genders = Wikidata.findBestCl...</title>
		<link rel="alternate" type="text/html" href="https://enciclopedia.md/index.php?title=Modul:WikidataUtils/Biography&amp;diff=357&amp;oldid=prev"/>
		<updated>2024-07-14T20:31:48Z</updated>

		<summary type="html">&lt;p&gt;Pagină nouă: local Wikidata = require(&amp;#039;Modul:Wikidata&amp;#039;) local p = {}  local function isDead(qId)  	local deathDateClaims = Wikidata.findBestClaimsForProperty(qId, &amp;#039;P570&amp;#039;) 	if deathDateClaims then for _,eachDeathDateClaim in ipairs(deathDateClaims) do 		if Wikidata.isClaimTrue(eachDeathDateClaim) and eachDeathDateClaim.mainsnak.snaktype ~= &amp;#039;novalue&amp;#039; 			then 				return true 			end 	end end 	return false end p.isDead = isDead  local function isFemale(qId) 	local genders = Wikidata.findBestCl...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pagină nouă&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local Wikidata = require(&amp;#039;Modul:Wikidata&amp;#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function isDead(qId) &lt;br /&gt;
	local deathDateClaims = Wikidata.findBestClaimsForProperty(qId, &amp;#039;P570&amp;#039;)&lt;br /&gt;
	if deathDateClaims then for _,eachDeathDateClaim in ipairs(deathDateClaims) do&lt;br /&gt;
		if Wikidata.isClaimTrue(eachDeathDateClaim) and eachDeathDateClaim.mainsnak.snaktype ~= &amp;#039;novalue&amp;#039;&lt;br /&gt;
			then&lt;br /&gt;
				return true&lt;br /&gt;
			end&lt;br /&gt;
	end end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
p.isDead = isDead&lt;br /&gt;
&lt;br /&gt;
local function isFemale(qId)&lt;br /&gt;
	local genders = Wikidata.findBestClaimsForProperty(qId, &amp;#039;P21&amp;#039;)&lt;br /&gt;
	local feminineIds = { 6581072, 1052281, 43445 }&lt;br /&gt;
	&lt;br /&gt;
	if genders then for genderIdx,eachGender in ipairs(genders) do&lt;br /&gt;
		if Wikidata.hasValueSnak(eachGender) and Wikidata.isClaimTrue(eachGender) then for _,eachFemId in ipairs(feminineIds) do&lt;br /&gt;
			if eachFemId == eachGender.mainsnak.datavalue.value[&amp;#039;numeric-id&amp;#039;] then return true end&lt;br /&gt;
		end end&lt;br /&gt;
	end end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
p.isFemale = isFemale&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Sergiu</name></author>
	</entry>
</feed>