<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ta">
	<id>https://wiki2.tamilar.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AResolveEntityId</id>
	<title>Module:ResolveEntityId - திருத்த வரலாறு</title>
	<link rel="self" type="application/atom+xml" href="https://wiki2.tamilar.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AResolveEntityId"/>
	<link rel="alternate" type="text/html" href="https://wiki2.tamilar.wiki/w/index.php?title=Module:ResolveEntityId&amp;action=history"/>
	<updated>2026-06-02T09:39:56Z</updated>
	<subtitle>விக்கியில் இப்பக்கத்துக்கான திருத்த வரலாறு</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki2.tamilar.wiki/w/index.php?title=Module:ResolveEntityId&amp;diff=94118&amp;oldid=prev</id>
		<title>imported&gt;Lingam: &quot;local p = {}  function p._entityid(_,id,alt) 	-- backwards compatibility for deprecated _entityid function 	return p._id(id,alt) end  function p._id(id,alt) 	if type(id) == &#039;string&#039; then 		id = mw.ustring.upper(mw.ustring.sub(id,1,1))..mw.ustring.sub(id,2) 		if mw.ustring.match(id,&#039;^Q%d+$&#039;) then 			-- id is in the proper format for a Wikidata entity 			if mw.wikib...&quot;-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது</title>
		<link rel="alternate" type="text/html" href="https://wiki2.tamilar.wiki/w/index.php?title=Module:ResolveEntityId&amp;diff=94118&amp;oldid=prev"/>
		<updated>2024-03-27T18:29:01Z</updated>

		<summary type="html">&lt;p&gt;&amp;quot;local p = {}  function p._entityid(_,id,alt) 	-- backwards compatibility for deprecated _entityid function 	return p._id(id,alt) end  function p._id(id,alt) 	if type(id) == &amp;#039;string&amp;#039; then 		id = mw.ustring.upper(mw.ustring.sub(id,1,1))..mw.ustring.sub(id,2) 		if mw.ustring.match(id,&amp;#039;^Q%d+$&amp;#039;) then 			-- id is in the proper format for a Wikidata entity 			if mw.wikib...&amp;quot;-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ta&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← பழைய திருத்தம்&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;18:29, 27 மார்ச்சு 2024 இல் நிலவும் திருத்தம்&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;ta&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(வேறுபாடு ஏதுமில்லை)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff:1.41:old-234428:rev-94118 --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Lingam</name></author>
	</entry>
	<entry>
		<id>https://wiki2.tamilar.wiki/w/index.php?title=Module:ResolveEntityId&amp;diff=234428&amp;oldid=prev</id>
		<title>imported&gt;Aswn: &quot;local p = {}  function p._entityid(_,id,alt) 	-- backwards compati...&quot;-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது</title>
		<link rel="alternate" type="text/html" href="https://wiki2.tamilar.wiki/w/index.php?title=Module:ResolveEntityId&amp;diff=234428&amp;oldid=prev"/>
		<updated>2019-05-04T23:27:23Z</updated>

		<summary type="html">&lt;p&gt;&amp;quot;local p = {}  function p._entityid(_,id,alt) 	-- backwards compati...&amp;quot;-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது&lt;/p&gt;
&lt;p&gt;&lt;b&gt;புதிய பக்கம்&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p._entityid(_,id,alt)&lt;br /&gt;
	-- backwards compatibility for deprecated _entityid function&lt;br /&gt;
	return p._id(id,alt)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._id(id,alt)&lt;br /&gt;
	if type(id) == &amp;#039;string&amp;#039; then&lt;br /&gt;
		id = mw.ustring.upper(mw.ustring.sub(id,1,1))..mw.ustring.sub(id,2)&lt;br /&gt;
		if mw.ustring.match(id,&amp;#039;^Q%d+$&amp;#039;) then&lt;br /&gt;
			-- id is in the proper format for a Wikidata entity&lt;br /&gt;
			if mw.wikibase.isValidEntityId(id) then&lt;br /&gt;
				-- id is valid&lt;br /&gt;
				id = mw.wikibase.getEntity(id)&lt;br /&gt;
				if id then&lt;br /&gt;
					-- entity exists&lt;br /&gt;
					return id.id&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			id = mw.wikibase.getEntityIdForTitle(id)&lt;br /&gt;
			if id then&lt;br /&gt;
				-- id is a title that matches a Wikidata entity&lt;br /&gt;
				local instanceOf = mw.wikibase.getBestStatements(id, &amp;#039;P31&amp;#039;)[1] --instance of&lt;br /&gt;
				if instanceOf and instanceOf.mainsnak.datavalue.value.id ~= &amp;#039;Q4167410&amp;#039; then&lt;br /&gt;
					-- not disambiguation&lt;br /&gt;
					return mw.wikibase.getEntity(id).id&lt;br /&gt;
				elseif instanceOf == nil then&lt;br /&gt;
					-- id is a title, but is missing an instance-of value&lt;br /&gt;
					return mw.wikibase.getEntity(id).id&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return alt or nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.entityid(frame)&lt;br /&gt;
	return p._id(frame.args[1], frame.args[2])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Aswn</name></author>
	</entry>
</feed>