<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://salisford.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ATaxonList</id>
	<title>Module:TaxonList - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://salisford.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ATaxonList"/>
	<link rel="alternate" type="text/html" href="https://salisford.net/index.php?title=Module:TaxonList&amp;action=history"/>
	<updated>2026-05-04T23:13:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://salisford.net/index.php?title=Module:TaxonList&amp;diff=600&amp;oldid=prev</id>
		<title>Cascadia: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://salisford.net/index.php?title=Module:TaxonList&amp;diff=600&amp;oldid=prev"/>
		<updated>2023-04-05T14:38: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 14:38, 5 April 2023&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>Cascadia</name></author>
	</entry>
	<entry>
		<id>https://salisford.net/index.php?title=Module:TaxonList&amp;diff=599&amp;oldid=prev</id>
		<title>wp&gt;Izno: -plainlist per discussion</title>
		<link rel="alternate" type="text/html" href="https://salisford.net/index.php?title=Module:TaxonList&amp;diff=599&amp;oldid=prev"/>
		<updated>2022-12-13T18:50:27Z</updated>

		<summary type="html">&lt;p&gt;-plainlist per discussion&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--[[&lt;br /&gt;
This module provides the core functionality to a set of templates used to&lt;br /&gt;
display a list of taxon name/authority pairs, with the taxon names optionally&lt;br /&gt;
italicized, wikilinked and/or emboldened. Such lists are usually part of&lt;br /&gt;
taxoboxes.&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
-- use a function from Module:TaxonItalics to italicize a taxon name&lt;br /&gt;
local TaxonItalics = require(&amp;quot;Module:TaxonItalics&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
--[[=========================================================================&lt;br /&gt;
Utility function to strip off any initial † present to mark the taxon as&lt;br /&gt;
extinct. The † must not be italicized, emboldened, or included in the&lt;br /&gt;
wikilinked text, so needs to be added back afterwards.&lt;br /&gt;
† is assumed to be present as one of:&lt;br /&gt;
* the unicode character †&lt;br /&gt;
* the HTML entity &amp;amp;dagger;&lt;br /&gt;
* the output of {{extinct}} – this will have been expanded before reaching this&lt;br /&gt;
  module and is assumed to have the form '&amp;lt;span ... &amp;lt;/span&amp;gt;'&lt;br /&gt;
The function returns two values: the taxon name with any † before it removed&lt;br /&gt;
and either '†' if it was present or the empty string if not.&lt;br /&gt;
=============================================================================]]&lt;br /&gt;
function p.stripDagger(taxonName)&lt;br /&gt;
	local dagger = ''&lt;br /&gt;
	if mw.ustring.sub(taxonName,1,1) == '†' then&lt;br /&gt;
		taxonName = mw.ustring.sub(taxonName,2,#taxonName)&lt;br /&gt;
		dagger = '†'&lt;br /&gt;
	else &lt;br /&gt;
		if string.sub(taxonName,1,8) == '&amp;amp;dagger;' then&lt;br /&gt;
			taxonName = string.sub(taxonName,9,#taxonName)&lt;br /&gt;
			dagger = '†'&lt;br /&gt;
		else&lt;br /&gt;
			-- did the taxon name originally have {{extinct}} before it?&lt;br /&gt;
			if (string.sub(taxonName,1,5) == '&amp;lt;abbr') and mw.ustring.find(taxonName, '†') then&lt;br /&gt;
				taxonName = string.gsub(taxonName, '^.*&amp;lt;/abbr&amp;gt;', '', 1)&lt;br /&gt;
				dagger = '†'&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return taxonName, dagger&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[=========================================================================&lt;br /&gt;
The function returns a list of taxon names and authorities, appropriately&lt;br /&gt;
formatted.&lt;br /&gt;
Usage:&lt;br /&gt;
{{#invoke:TaxonList|main&lt;br /&gt;
|italic = yes - to italicize the taxon name&lt;br /&gt;
|linked = yes - to wikilink the taxon name&lt;br /&gt;
|bold = yes - to emboldent the taxon name&lt;br /&gt;
|incomplete = yes - to output &amp;quot;(incomplete)&amp;quot; at the end of the list&lt;br /&gt;
}}&lt;br /&gt;
The template that transcludes the invoking template must supply an indefinite&lt;br /&gt;
even number of arguments in the format&lt;br /&gt;
|Name1|Author1 |Name2|Author2| ... |NameN|AuthorN&lt;br /&gt;
=============================================================================]]&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local italic = frame.args['italic'] == 'yes'&lt;br /&gt;
	local bold = frame.args['bold'] == 'yes'&lt;br /&gt;
	local linked = frame.args['linked'] == 'yes'&lt;br /&gt;
	if bold then linked = false end -- must not have bold and wikilinked&lt;br /&gt;
	local abbreviated = frame.args['abbreviated'] == 'yes'&lt;br /&gt;
	local incomplete = frame.args['incomplete'] == 'yes'&lt;br /&gt;
	local taxonArgs = frame:getParent().args&lt;br /&gt;
	local result = ''&lt;br /&gt;
	-- iterate over unnamed variables&lt;br /&gt;
	local taxonName&lt;br /&gt;
	local dagger&lt;br /&gt;
	local first = true -- is this the first of a taxon name/author pair?&lt;br /&gt;
	for param, value in pairs(taxonArgs) do&lt;br /&gt;
		if tonumber(param) then&lt;br /&gt;
			if first then&lt;br /&gt;
				taxonName = mw.text.trim(value)&lt;br /&gt;
				-- if necessary separate any initial † from the taxon name&lt;br /&gt;
				if linked or italic or bold then&lt;br /&gt;
					taxonName, dagger = p.stripDagger(taxonName)&lt;br /&gt;
				else&lt;br /&gt;
					dagger = ''&lt;br /&gt;
				end&lt;br /&gt;
				if linked and not italic then&lt;br /&gt;
					taxonName = '[[' .. taxonName .. ']]'&lt;br /&gt;
				end&lt;br /&gt;
				if italic then&lt;br /&gt;
					taxonName = TaxonItalics.italicizeTaxonName(taxonName, linked, abbreviated)&lt;br /&gt;
				end&lt;br /&gt;
				if bold then&lt;br /&gt;
					taxonName = '&amp;lt;b&amp;gt;' .. taxonName .. '&amp;lt;/b&amp;gt;'&lt;br /&gt;
				end&lt;br /&gt;
				result = result .. '&amp;lt;li&amp;gt;' .. dagger .. taxonName&lt;br /&gt;
			else&lt;br /&gt;
				result = result .. ' &amp;lt;small&amp;gt;' .. value .. '&amp;lt;/small&amp;gt;&amp;lt;/li&amp;gt;'&lt;br /&gt;
			end&lt;br /&gt;
			first = not first&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if incomplete then&lt;br /&gt;
		result = result .. '&amp;lt;small&amp;gt;(incomplete list)&amp;lt;/small&amp;gt;'&lt;br /&gt;
	end&lt;br /&gt;
	return '&amp;lt;ul class=&amp;quot;taxonlist&amp;quot;&amp;gt;' .. result .. '&amp;lt;/ul&amp;gt;'&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wp&gt;Izno</name></author>
	</entry>
</feed>