<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://project-au.w.kmwc.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ATaxonbar%2Fwhitelist</id>
	<title>Module:Taxonbar/whitelist - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://project-au.w.kmwc.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ATaxonbar%2Fwhitelist"/>
	<link rel="alternate" type="text/html" href="http://project-au.w.kmwc.org/index.php?title=Module:Taxonbar/whitelist&amp;action=history"/>
	<updated>2026-04-10T13:02:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>http://project-au.w.kmwc.org/index.php?title=Module:Taxonbar/whitelist&amp;diff=1738&amp;oldid=prev</id>
		<title>Rox: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://project-au.w.kmwc.org/index.php?title=Module:Taxonbar/whitelist&amp;diff=1738&amp;oldid=prev"/>
		<updated>2025-04-30T15:21:34Z</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 15:21, 30 April 2025&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>Rox</name></author>
	</entry>
	<entry>
		<id>http://project-au.w.kmwc.org/index.php?title=Module:Taxonbar/whitelist&amp;diff=1737&amp;oldid=prev</id>
		<title>Wikipedia&gt;Tom.Reding: +d:Q124477390 (taxon hypothesis) per Special:Permalink/1205962112#Further discussion</title>
		<link rel="alternate" type="text/html" href="http://project-au.w.kmwc.org/index.php?title=Module:Taxonbar/whitelist&amp;diff=1737&amp;oldid=prev"/>
		<updated>2024-02-11T10:55:30Z</updated>

		<summary type="html">&lt;p&gt;+&lt;a href=&quot;/index.php?title=D:Q124477390&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;D:Q124477390 (page does not exist)&quot;&gt;d:Q124477390&lt;/a&gt; (taxon hypothesis) per &lt;a href=&quot;/w/Special:PermanentLink/1205962112#Further_discussion&quot; title=&quot;Special:PermanentLink/1205962112&quot;&gt;Special:Permalink/1205962112#Further discussion&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;
--returns any combination of strict/lax/all acceptable instance-of&amp;#039;s,&lt;br /&gt;
--either as a table for use inside [[Module:Taxonbar]] or another module,&lt;br /&gt;
--or as an ordered list for use in documentation.&lt;br /&gt;
function p.whitelist( frame )&lt;br /&gt;
	local listType = frame.args[1]&lt;br /&gt;
	local documentation = frame.args[2]&lt;br /&gt;
	local outList = {}&lt;br /&gt;
	local acceptableInstanceOf_Strict = { --table order == display order&lt;br /&gt;
		&amp;#039;Q16521&amp;#039;,		--taxon&lt;br /&gt;
		&amp;#039;Q310890&amp;#039;,		--monotypic taxon&lt;br /&gt;
		&amp;#039;Q47487597&amp;#039;,	--monotypic fossil taxon&lt;br /&gt;
		&amp;#039;Q2568288&amp;#039;,		--ichnotaxon&lt;br /&gt;
		&amp;#039;Q23038290&amp;#039;,	--fossil taxon&lt;br /&gt;
		&amp;#039;Q59278506&amp;#039;,	--ootaxon&lt;br /&gt;
		&amp;#039;Q98961713&amp;#039;,	--extinct taxon&lt;br /&gt;
		&amp;#039;Q58051350&amp;#039;,	--paraphyletic group (subclass of taxon)&lt;br /&gt;
	}&lt;br /&gt;
	local acceptableInstanceOf_Lax = { --table order == display order&lt;br /&gt;
		&amp;#039;Q42621&amp;#039;,		--hybrid&lt;br /&gt;
		&amp;#039;Q235536&amp;#039;,		--incertae sedis&lt;br /&gt;
		&amp;#039;Q713623&amp;#039;,		--clade&lt;br /&gt;
		&amp;#039;Q848328&amp;#039;,		--serotype&lt;br /&gt;
		&amp;#039;Q857968&amp;#039;,		--candidatus&lt;br /&gt;
		&amp;#039;Q17487588&amp;#039;,	--unavailable combination&lt;br /&gt;
		&amp;#039;Q124477390&amp;#039;,	--taxon hypothesis&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	if listType == &amp;#039;strict&amp;#039;  then outList = acceptableInstanceOf_Strict&lt;br /&gt;
	elseif listType == &amp;#039;lax&amp;#039; then outList = acceptableInstanceOf_Lax&lt;br /&gt;
	else --elseif listType == &amp;#039;all&amp;#039; then --concatenate strict + lax IIF requested&lt;br /&gt;
		local acceptableInstanceOf_All = {}&lt;br /&gt;
		local i = 0&lt;br /&gt;
		for _, v in pairs( acceptableInstanceOf_Strict ) do&lt;br /&gt;
			i = i + 1&lt;br /&gt;
			acceptableInstanceOf_All[i] = v&lt;br /&gt;
		end&lt;br /&gt;
		for _, v in pairs( acceptableInstanceOf_Lax ) do&lt;br /&gt;
			i = i + 1&lt;br /&gt;
			acceptableInstanceOf_All[i] = v&lt;br /&gt;
		end&lt;br /&gt;
		outList = acceptableInstanceOf_All&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if (documentation == nil) or --module only&lt;br /&gt;
	   (documentation and documentation == &amp;#039;&amp;#039;)&lt;br /&gt;
	then&lt;br /&gt;
		local out = {}&lt;br /&gt;
		for k, v in pairs( outList ) do&lt;br /&gt;
			out[v] = k --output Q# as keys for easier searching within Module:Taxonbar&lt;br /&gt;
		end&lt;br /&gt;
		return out&lt;br /&gt;
		&lt;br /&gt;
	elseif (documentation == &amp;#039;docdoc&amp;#039;) then --self-documentation only&lt;br /&gt;
		local selfdocout = &amp;#039;myWhitelist = {\n&amp;#039;&lt;br /&gt;
		for k, q in pairs( outList ) do&lt;br /&gt;
			selfdocout = selfdocout..&amp;#039;\t\&amp;#039;&amp;#039;..q..&amp;#039;\&amp;#039; = &amp;#039;..k..&amp;#039;,\n&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
		selfdocout = selfdocout..&amp;#039;}&amp;#039;&lt;br /&gt;
		local args = { [&amp;#039;lang&amp;#039;] = &amp;#039;lua&amp;#039;,&lt;br /&gt;
					   [&amp;#039;code&amp;#039;] = selfdocout }&lt;br /&gt;
		out = frame:expandTemplate{ title = &amp;#039;Syntaxhighlight&amp;#039;, args = args }&lt;br /&gt;
		return out&lt;br /&gt;
		&lt;br /&gt;
	else --normal documentation only&lt;br /&gt;
		local out = &amp;#039;&amp;#039;&lt;br /&gt;
		for _, q in pairs( outList ) do&lt;br /&gt;
			local Q = frame:expandTemplate{ title = &amp;#039;Q&amp;#039;, args = { q } }&lt;br /&gt;
			out = out..&amp;#039;# &amp;#039;..Q..&amp;#039;\n&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
		out = mw.ustring.gsub(out, &amp;#039;%s+$&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
		return out&lt;br /&gt;
	end&lt;br /&gt;
	&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>