<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maruneko.autumns.page/mediawiki/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://maruneko.autumns.page/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ATaxonbar%2Fcandidate"/>
	<link rel="alternate" type="text/html" href="https://maruneko.autumns.page/mediawiki/index.php?title=Module:Taxonbar/candidate&amp;action=history"/>
	<updated>2026-04-19T19:35:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://maruneko.autumns.page/mediawiki/index.php?title=Module:Taxonbar/candidate&amp;diff=2663&amp;oldid=prev</id>
		<title>Autumn: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://maruneko.autumns.page/mediawiki/index.php?title=Module:Taxonbar/candidate&amp;diff=2663&amp;oldid=prev"/>
		<updated>2022-07-20T01:31:46Z</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;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:31, 19 July 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&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;/table&gt;</summary>
		<author><name>Autumn</name></author>
	</entry>
	<entry>
		<id>https://maruneko.autumns.page/mediawiki/index.php?title=Module:Taxonbar/candidate&amp;diff=2662&amp;oldid=prev</id>
		<title>Wikipedia&gt;Tom.Reding: +drupe, compound drupe, compound fruit, and trivial name to unacceptable list</title>
		<link rel="alternate" type="text/html" href="https://maruneko.autumns.page/mediawiki/index.php?title=Module:Taxonbar/candidate&amp;diff=2662&amp;oldid=prev"/>
		<updated>2019-09-05T17:15:13Z</updated>

		<summary type="html">&lt;p&gt;+drupe, compound drupe, compound fruit, and trivial name to unacceptable list&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('Module:Taxonbar/exists').check&lt;br /&gt;
	if taxonbarExists(frame) then&lt;br /&gt;
		return ''&lt;br /&gt;
	else&lt;br /&gt;
		local resolveEntity = require( 'Module:ResolveEntityId' )&lt;br /&gt;
		local currentTitle = mw.title.getCurrentTitle()&lt;br /&gt;
		local currentItem = nil&lt;br /&gt;
		local categories = {&lt;br /&gt;
			'[[Category:Taxobox articles possibly missing a taxonbar]]' --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, '^List of ') then&lt;br /&gt;
			return ''&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 ''&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 *possibly* missing, or *definitely* missing&lt;br /&gt;
			local acceptableInstanceOf_All = { --copied from [[Module:Taxonbar]]&lt;br /&gt;
				['Q16521'] = 'taxon',                      --strict&lt;br /&gt;
				['Q310890'] = 'monotypic taxon',           --strict&lt;br /&gt;
				['Q2568288'] = 'ichnotaxon',               --strict&lt;br /&gt;
				['Q23038290'] = 'fossil taxon',            --strict&lt;br /&gt;
				['Q47487597'] = 'monotypic fossil taxon',  --strict&lt;br /&gt;
				['Q42621'] = 'hybrid',                     --lax&lt;br /&gt;
				['Q235536'] = 'incertae sedis',            --lax&lt;br /&gt;
				['Q713623'] = 'clade',                     --lax&lt;br /&gt;
				['Q848328'] = 'serotype',                  --lax&lt;br /&gt;
				['Q857968'] = 'candidatus',                --lax&lt;br /&gt;
				['Q17487588'] = 'unavailable combination', --lax&lt;br /&gt;
			}&lt;br /&gt;
			local unacceptableInstanceOf = {&lt;br /&gt;
				['Q913170'] = 'trivial name',&lt;br /&gt;
				['Q55983715'] = 'group of organisms known by one particular common name',&lt;br /&gt;
				['Q937228'] = 'property',&lt;br /&gt;
				['Q14712'] = 'drupe',&lt;br /&gt;
				['Q163233'] = 'compound drupe',&lt;br /&gt;
				['Q747463'] = 'compound fruit',&lt;br /&gt;
			}&lt;br /&gt;
			&lt;br /&gt;
			local acceptableCount = 0&lt;br /&gt;
			local unacceptableCount = 0&lt;br /&gt;
			for _, instanceOfState in pairs ( currentItem:getBestStatements('P31') ) 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('P279') ) 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] = ''&lt;br /&gt;
				categories[2] = '[[Category:Taxobox articles missing a taxonbar]]'&lt;br /&gt;
			elseif unacceptableCount &amp;gt; 0 then&lt;br /&gt;
				categories[1] = ''&lt;br /&gt;
				categories[2] = ''&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 ''&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&gt;Tom.Reding</name></author>
	</entry>
</feed>