<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki3d.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ATaxonbar%2Fcandidate</id>
	<title>Module:Taxonbar/candidate - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki3d.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ATaxonbar%2Fcandidate"/>
	<link rel="alternate" type="text/html" href="https://mediawiki3d.org/index.php?title=Module:Taxonbar/candidate&amp;action=history"/>
	<updated>2026-04-27T06:31:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://mediawiki3d.org/index.php?title=Module:Taxonbar/candidate&amp;diff=1154&amp;oldid=prev</id>
		<title>Bawolff: 1 revision imported from :wikipedia:en:Module:Taxonbar/candidate</title>
		<link rel="alternate" type="text/html" href="https://mediawiki3d.org/index.php?title=Module:Taxonbar/candidate&amp;diff=1154&amp;oldid=prev"/>
		<updated>2025-08-16T02:11:35Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://en.wikipedia.org/wiki/en:Module:Taxonbar/candidate&quot; class=&quot;extiw&quot; title=&quot;wikipedia:en:Module:Taxonbar/candidate&quot;&gt;wikipedia:en:Module:Taxonbar/candidate&lt;/a&gt;&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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:11, 16 August 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wiki3d:diff:1.41:old-1153:rev-1154 --&gt;
&lt;/table&gt;</summary>
		<author><name>Bawolff</name></author>
	</entry>
	<entry>
		<id>https://mediawiki3d.org/index.php?title=Module:Taxonbar/candidate&amp;diff=1153&amp;oldid=prev</id>
		<title>wikipedia:en&gt;Tom.Reding: Process &quot;&lt;!--{{Taxonbar}}--&gt;&quot; as if it doesn&#039;t exist, per Template talk:Taxonbar#&#039;Exists&#039; module misses cases where the taxonbar is commented out</title>
		<link rel="alternate" type="text/html" href="https://mediawiki3d.org/index.php?title=Module:Taxonbar/candidate&amp;diff=1153&amp;oldid=prev"/>
		<updated>2024-04-17T14:48:58Z</updated>

		<summary type="html">&lt;p&gt;Process &amp;quot;&amp;lt;!--{{Taxonbar}}--&amp;gt;&amp;quot; as if it doesn&amp;#039;t exist, per &lt;a href=&quot;/index.php/Special:PermanentLink/1219395755#&amp;#039;Exists&amp;#039;_module_misses_cases_where_the_taxonbar_is_commented_out&quot; title=&quot;Special:PermanentLink/1219395755&quot;&gt;Template talk:Taxonbar#&amp;#039;Exists&amp;#039; module misses cases where the taxonbar is commented out&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.check(frame)&lt;br /&gt;
	local taxonbarExists = require(&amp;#039;Module:Taxonbar/exists&amp;#039;).check&lt;br /&gt;
	if taxonbarExists(frame) == true then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	else&lt;br /&gt;
		local resolveEntity = require( &amp;#039;Module:ResolveEntityId&amp;#039; )&lt;br /&gt;
		local currentTitle = mw.title.getCurrentTitle()&lt;br /&gt;
		local currentItem = nil&lt;br /&gt;
		local categories = {&lt;br /&gt;
			&amp;#039;[[Category:Taxobox articles possibly missing a taxonbar]]&amp;#039; --unset if acceptable or unacceptable found&lt;br /&gt;
		}&lt;br /&gt;
		&lt;br /&gt;
		--preliminary exclusion criteria&lt;br /&gt;
		if string.match( currentTitle.text, &amp;#039;^List of &amp;#039;) then&lt;br /&gt;
			return &amp;#039;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		--find Wikidata item&lt;br /&gt;
		if currentTitle.namespace == 0 then --mainspace&lt;br /&gt;
			local currentEntityId = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
			if resolveEntity._id(currentEntityId) then&lt;br /&gt;
				currentItem = mw.wikibase.getEntity(currentEntityId)&lt;br /&gt;
			else --currentEntityId == nil/unresolvable&lt;br /&gt;
				return categories[1]&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			return &amp;#039;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if currentItem then --currentItem should not be nil here, but check just in case&lt;br /&gt;
			--determine if {{Taxonbar}} is *definitely* missing, *possibly* missing, or not missing at all&lt;br /&gt;
			local whitelist = require( &amp;#039;Module:Taxonbar/whitelist&amp;#039; ).whitelist&lt;br /&gt;
			local blacklist = require( &amp;#039;Module:Taxonbar/blacklist&amp;#039; ).blacklist&lt;br /&gt;
			local acceptableInstanceOf_All = whitelist{ args = { &amp;#039;all&amp;#039; } }&lt;br /&gt;
			local unacceptableInstanceOf = blacklist{ args = {} }&lt;br /&gt;
			&lt;br /&gt;
			local acceptableCount = 0&lt;br /&gt;
			local unacceptableCount = 0&lt;br /&gt;
			for _, instanceOfState in pairs ( currentItem:getBestStatements(&amp;#039;P31&amp;#039;) ) do --instance of&lt;br /&gt;
				local instanceOf = instanceOfState.mainsnak.datavalue.value.id&lt;br /&gt;
				if acceptableInstanceOf_All[instanceOf] then&lt;br /&gt;
					acceptableCount = acceptableCount + 1&lt;br /&gt;
				elseif unacceptableInstanceOf[instanceOf] then&lt;br /&gt;
					unacceptableCount = unacceptableCount + 1&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			for _, subclassOfState in pairs ( currentItem:getBestStatements(&amp;#039;P279&amp;#039;) ) do --subclass of&lt;br /&gt;
				local subclassOf = subclassOfState.mainsnak.datavalue.value.id&lt;br /&gt;
				if acceptableInstanceOf_All[subclassOf] then&lt;br /&gt;
					acceptableCount = acceptableCount + 1&lt;br /&gt;
				elseif unacceptableInstanceOf[subclassOf] then&lt;br /&gt;
					unacceptableCount = unacceptableCount + 1&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			if acceptableCount &amp;gt; 0 then&lt;br /&gt;
				categories[1] = &amp;#039;&amp;#039;&lt;br /&gt;
				categories[2] = &amp;#039;[[Category:Taxobox articles missing a taxonbar]]&amp;#039;&lt;br /&gt;
			elseif unacceptableCount &amp;gt; 0 then&lt;br /&gt;
				categories[1] = &amp;#039;&amp;#039;&lt;br /&gt;
				categories[2] = &amp;#039;&amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			return table.concat(categories)&lt;br /&gt;
			&lt;br /&gt;
		else&lt;br /&gt;
			return &amp;#039;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wikipedia:en&gt;Tom.Reding</name></author>
	</entry>
</feed>