<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://www.1ok.de/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Modul%3AResolveEntityId</id>
	<title>Modul:ResolveEntityId - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://www.1ok.de/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Modul%3AResolveEntityId"/>
	<link rel="alternate" type="text/html" href="https://www.1ok.de/mediawiki/index.php?title=Modul:ResolveEntityId&amp;action=history"/>
	<updated>2026-04-24T02:40:54Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Our Time Travel Wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.1ok.de/mediawiki/index.php?title=Modul:ResolveEntityId&amp;diff=611&amp;oldid=prev</id>
		<title>Timetrave: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.1ok.de/mediawiki/index.php?title=Modul:ResolveEntityId&amp;diff=611&amp;oldid=prev"/>
		<updated>2021-08-10T15:55:15Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 10. August 2021, 16:55 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Timetrave</name></author>
	</entry>
	<entry>
		<id>https://www.1ok.de/mediawiki/index.php?title=Modul:ResolveEntityId&amp;diff=610&amp;oldid=prev</id>
		<title>en&gt;Ahecht: -- backwards compatibility for deprecated _entityid function</title>
		<link rel="alternate" type="text/html" href="https://www.1ok.de/mediawiki/index.php?title=Modul:ResolveEntityId&amp;diff=610&amp;oldid=prev"/>
		<updated>2018-10-04T15:37:31Z</updated>

		<summary type="html">&lt;p&gt;-- backwards compatibility for deprecated _entityid function&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&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>en&gt;Ahecht</name></author>
	</entry>
</feed>