<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://attuproject.org/wiki?action=history&amp;feed=atom&amp;title=Module%3AConservation_status</id>
	<title>Module:Conservation status - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://attuproject.org/wiki?action=history&amp;feed=atom&amp;title=Module%3AConservation_status"/>
	<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Module:Conservation_status&amp;action=history"/>
	<updated>2026-11-17T09:03:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.6</generator>
	<entry>
		<id>https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=31280&amp;oldid=prev</id>
		<title>w&gt;Anomie: Why did you fix only one instance of the misspelling and not the other?</title>
		<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=31280&amp;oldid=prev"/>
		<updated>2026-11-14T14:16:59Z</updated>

		<summary type="html">&lt;p&gt;Why did you fix only one instance of the misspelling and not the other?&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 09:16, 14 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 556:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 556:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = p.addImage(&quot;Status 2019 NZTCS NT.svg&quot;, &quot;Not Threatened&quot; ) .. &quot;Not Threatened&quot; &lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = p.addImage(&quot;Status 2019 NZTCS NT.svg&quot;, &quot;Not Threatened&quot; ) .. &quot;Not Threatened&quot; &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   elseif status == &quot;DD&quot; or status == &quot;dd&quot; then&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   elseif status == &quot;DD&quot; or status == &quot;dd&quot; then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = p.addImage(&quot;Status 2019 NZTCS DD.svg&quot;, &quot;Data &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Deficit&lt;/del&gt;&quot; ) .. &quot;Data &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Deficit&lt;/del&gt;&quot; &lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = p.addImage(&quot;Status 2019 NZTCS DD.svg&quot;, &quot;Data &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Deficient&lt;/ins&gt;&quot; ) .. &quot;Data &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Deficient&lt;/ins&gt;&quot; &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   --  Older categories (version 2002): SD,GD,SP,RR&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   --  Older categories (version 2002): SD,GD,SP,RR&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key attu_wiki:diff:1.41:old-30952:rev-31280:wikidiff2=table:1.14.2:bc2a06be --&gt;
&lt;/table&gt;</summary>
		<author><name>w&gt;Anomie</name></author>
	</entry>
	<entry>
		<id>https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=30952&amp;oldid=prev</id>
		<title>w&gt;Jts1882: class parameter shouldn&#039;t have quotes</title>
		<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=30952&amp;oldid=prev"/>
		<updated>2026-10-09T09:57:36Z</updated>

		<summary type="html">&lt;p&gt;class parameter shouldn&amp;#039;t have quotes&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 04:57, 9 October 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 608:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 608:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    &lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    if file ~= &quot;&quot; and tonumber(statusNumber)&amp;lt;3 then&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    if file ~= &quot;&quot; and tonumber(statusNumber)&amp;lt;3 then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	return &#039;[[File:&#039; .. file .. &#039;|frameless|alt=&#039; .. ( alt or &#039;|link=&#039; ) .. &#039;|class=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt;skin-invert-image notpageimage noviewer&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt;]]&amp;lt;br /&amp;gt;&#039;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	return &#039;[[File:&#039; .. file .. &#039;|frameless|alt=&#039; .. ( alt or &#039;|link=&#039; ) .. &#039;|class=skin-invert-image notpageimage noviewer]]&amp;lt;br /&amp;gt;&#039;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    end&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    end&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    return &quot;&quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    return &quot;&quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key attu_wiki:diff:1.41:old-30864:rev-30952:wikidiff2=table:1.14.2:bc2a06be --&gt;
&lt;/table&gt;</summary>
		<author><name>w&gt;Jts1882</name></author>
	</entry>
	<entry>
		<id>https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=30864&amp;oldid=prev</id>
		<title>w&gt;Jts1882: add class noviewer (ditto see talk page)</title>
		<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=30864&amp;oldid=prev"/>
		<updated>2026-10-08T08:30:53Z</updated>

		<summary type="html">&lt;p&gt;add class noviewer (ditto see talk page)&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 03:30, 8 October 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       output = p.NZTCS(frame, system, status)&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       output = p.NZTCS(frame, system, status)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       systemText = &quot;[[New Zealand Threat Classification System|NZ TCS]]&quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       systemText = &quot;[[New Zealand Threat Classification System|NZ TCS]]&quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; 	elseif system == &quot;TSPA&quot; then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       output = p.TSPA(frame, system, status)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       systemText = &quot;[[Threatened Species Protection Act 1995|TSPA]]&quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    elseif system ~= nil then&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    elseif system ~= nil then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       output = p.SystemNotRecognised(frame, system, status)&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       output = p.SystemNotRecognised(frame, system, status)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 566:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 569:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   -- otherwise invalid conservation status&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   -- otherwise invalid conservation status&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   else &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = &quot;&#039;&#039;&#039;&#039;&#039;Invalid status&#039;&#039;&#039;&#039;&#039;&quot; .. p.addCategory(&quot;Invalid conservation status&quot;)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   end        &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   return output &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-- *************** TSPA (New Zealand) ********************************&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function p.TSPA(frame, system, status)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   local output = system .. &#039; &#039; .. status&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   if status == &quot;X&quot; then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	local extinct = &quot;[[Extinction|Extinct]]&quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	if frame:getParent().args[&#039;extinction_date&#039;] and frame:getParent().args[&#039;extinction_date&#039;] ~= &quot;&quot; then &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    		extinct = extinct .. &quot;&amp;amp;nbsp;(&quot; .. frame:getParent().args[&#039;extinction_date&#039;] .. &quot;)&quot; &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	end&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = extinct .. p.addCategory(&quot;TSPA extinct species&quot;)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   elseif status == &quot;E&quot;  then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = &quot;Endangered&quot; .. p.addCategory(&quot;TSPA endangered species&quot;)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   elseif status == &quot;V&quot;  then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = &quot;Vulnerable&quot; .. p.addCategory(&quot;TSPA vulnerable species&quot;)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   elseif status == &quot;R&quot; then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = &quot;Rare&quot; .. p.addCategory(&quot;TSPA rare species&quot;)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   else &lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   else &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = &quot;&#039;&#039;&#039;&#039;&#039;Invalid status&#039;&#039;&#039;&#039;&#039;&quot; .. p.addCategory(&quot;Invalid conservation status&quot;)&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = &quot;&#039;&#039;&#039;&#039;&#039;Invalid status&#039;&#039;&#039;&#039;&#039;&quot; .. p.addCategory(&quot;Invalid conservation status&quot;)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 581:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 608:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    &lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    if file ~= &quot;&quot; and tonumber(statusNumber)&amp;lt;3 then&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    if file ~= &quot;&quot; and tonumber(statusNumber)&amp;lt;3 then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	return &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt;[[File:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt; .. file .. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt;|frameless|alt=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt; .. ( alt or &#039;|link=&#039; ) .. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt;|class=skin-invert-image]]&amp;lt;br /&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	return &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/ins&gt;[[File:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/ins&gt; .. file .. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/ins&gt;|frameless|alt=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/ins&gt; .. ( alt or &#039;|link=&#039; ) .. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/ins&gt;|class=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;skin-invert-image&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; notpageimage noviewer&quot;&lt;/ins&gt;]]&amp;lt;br /&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    end&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    end&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    return &quot;&quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    return &quot;&quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key attu_wiki:diff:1.41:old-30418:rev-30864:wikidiff2=table:1.14.2:bc2a06be --&gt;
&lt;/table&gt;</summary>
		<author><name>w&gt;Jts1882</name></author>
	</entry>
	<entry>
		<id>https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=30418&amp;oldid=prev</id>
		<title>w&gt;Ahecht: Use WCAG-compliant colors for IUCN statuses for accessibility</title>
		<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=30418&amp;oldid=prev"/>
		<updated>2026-09-04T01:24:42Z</updated>

		<summary type="html">&lt;p&gt;Use WCAG-compliant colors for IUCN statuses for accessibility&lt;/p&gt;
&lt;a href=&quot;https://attuproject.org/wiki?title=Module:Conservation_status&amp;amp;diff=30418&amp;amp;oldid=30213&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>w&gt;Ahecht</name></author>
	</entry>
	<entry>
		<id>https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=30213&amp;oldid=prev</id>
		<title>w&gt;Ahecht: Undid revision 1371480602 by Ahecht (talk) for now, colors still being discussed</title>
		<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=30213&amp;oldid=prev"/>
		<updated>2026-08-26T18:34:55Z</updated>

		<summary type="html">&lt;p&gt;Undid revision &lt;a href=&quot;/wiki/Special:Diff/1371480602&quot; title=&quot;Special:Diff/1371480602&quot;&gt;1371480602&lt;/a&gt; by &lt;a href=&quot;/wiki/Special:Contributions/Ahecht&quot; title=&quot;Special:Contributions/Ahecht&quot;&gt;Ahecht&lt;/a&gt; (&lt;a href=&quot;/wiki?title=User_talk:Ahecht&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Ahecht (page does not exist)&quot;&gt;talk&lt;/a&gt;) for now, colors still being discussed&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 13:34, 26 August 2026&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 attu_wiki:diff:1.41:old-29604:rev-30213 --&gt;
&lt;/table&gt;</summary>
		<author><name>w&gt;Ahecht</name></author>
	</entry>
	<entry>
		<id>https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=29604&amp;oldid=prev</id>
		<title>w&gt;Pppery: Changed protection settings for &quot;Module:Conservation status&quot; ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=29604&amp;oldid=prev"/>
		<updated>2026-07-30T00:07:56Z</updated>

		<summary type="html">&lt;p&gt;Changed protection settings for &amp;quot;&lt;a href=&quot;/wiki/Module:Conservation_status&quot; title=&quot;Module:Conservation status&quot;&gt;Module:Conservation status&lt;/a&gt;&amp;quot; ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))&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 19:07, 29 July 2026&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 attu_wiki:diff:1.41:old-28355:rev-29604 --&gt;
&lt;/table&gt;</summary>
		<author><name>w&gt;Pppery</name></author>
	</entry>
	<entry>
		<id>https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=28355&amp;oldid=prev</id>
		<title>w&gt;Jts1882: suppress images if status3 or higher</title>
		<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=28355&amp;oldid=prev"/>
		<updated>2026-04-18T09:22:17Z</updated>

		<summary type="html">&lt;p&gt;suppress images if status3 or higher&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 04:22, 18 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 577:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 577:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-- *************** functions  for image and category output ********&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-- *************** functions  for image and category output ********&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function p.addImage(file, alt)&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function p.addImage(file, alt)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    local statusNumber =	mw.getCurrentFrame():getParent().args[&#039;number&#039;] or 1&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;a class=&quot;mw-diff-movedpara-left&quot; title=&quot;Paragraph was moved. Click to jump to new location.&quot; href=&quot;#movedpara_3_2_rhs&quot;&gt;&amp;#x26AB;&lt;/a&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;a name=&quot;movedpara_2_0_lhs&quot;&gt;&lt;/a&gt;    if file ~= &quot;&quot; then&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    --mw.addWarning (&quot;statusNo=&quot; .. statusNumber)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;a class=&quot;mw-diff-movedpara-right&quot; title=&quot;Paragraph was moved. Click to jump to old location.&quot; href=&quot;#movedpara_2_0_lhs&quot;&gt;&amp;#x26AB;&lt;/a&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;a name=&quot;movedpara_3_2_rhs&quot;&gt;&lt;/a&gt;    if file ~= &quot;&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; and tonumber(statusNumber)&amp;lt;3&lt;/ins&gt; then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	return &quot;[[File:&quot; .. file .. &quot;|frameless|alt=&quot; .. ( alt or &#039;|link=&#039; ) .. &quot;|class=skin-invert-image]]&amp;lt;br /&amp;gt;&quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	return &quot;[[File:&quot; .. file .. &quot;|frameless|alt=&quot; .. ( alt or &#039;|link=&#039; ) .. &quot;|class=skin-invert-image]]&amp;lt;br /&amp;gt;&quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    end&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    end&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key attu_wiki:diff:1.41:old-28296:rev-28355:wikidiff2=table:1.14.2:bc2a06be --&gt;
&lt;/table&gt;</summary>
		<author><name>w&gt;Jts1882</name></author>
	</entry>
	<entry>
		<id>https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=28296&amp;oldid=prev</id>
		<title>w&gt;Jts1882: don&#039;t want raw system shown in uppercase</title>
		<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=28296&amp;oldid=prev"/>
		<updated>2026-04-09T17:07:57Z</updated>

		<summary type="html">&lt;p&gt;don&amp;#039;t want raw system shown in uppercase&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 12:07, 9 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       output = p.NZTCS(frame, system, status)&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       output = p.NZTCS(frame, system, status)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       systemText = &quot;[[New Zealand Threat Classification System|NZ TCS]]&quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       systemText = &quot;[[New Zealand Threat Classification System|NZ TCS]]&quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    elseif system ~= nil then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;a class=&quot;mw-diff-movedpara-left&quot; title=&quot;Paragraph was moved. Click to jump to new location.&quot; href=&quot;#movedpara_8_1_rhs&quot;&gt;&amp;#x26AB;&lt;/a&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;a name=&quot;movedpara_2_0_lhs&quot;&gt;&lt;/a&gt;    &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;else&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       output = p.SystemNotRecognised(frame, system, status)&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       output = p.SystemNotRecognised(frame, system, status)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       systemText = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;[[&quot; &lt;/del&gt;..&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; system &lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. &quot;&lt;/del&gt;]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&quot;&lt;/del&gt;  -- &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;should&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;this&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;linked?&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       systemText = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mw&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;text&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;trim(frame&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;args[1&lt;/ins&gt;]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;) &lt;/ins&gt;  -- &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;raw&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;system in parameter (not uppercase as system&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;variable&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    else -- no system parameter&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	mw.addWarning (&quot;No conservation system provided&quot;)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    end&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    end&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    if output ~= &quot;ERROR&quot; then&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    if output ~= &quot;ERROR&quot; then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 111:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 113:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   if status == &quot;EX&quot; then&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   if status == &quot;EX&quot; then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	local extinct = &quot;[[Extinction|Extinct]]&quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	local extinct = &quot;[[Extinction|Extinct]]&quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	if frame:getParent().args[&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;extinct&lt;/del&gt;&#039;] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;then extinct = &quot;&amp;amp;nbsp;(&quot; ..&lt;/del&gt; frame:getParent().args[&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;extinct&lt;/del&gt;&#039;] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;..&lt;/del&gt; &quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;&quot; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;end&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	if frame:getParent().args[&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;extinction_date&lt;/ins&gt;&#039;] &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and&lt;/ins&gt; frame:getParent().args[&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;extinction_date&lt;/ins&gt;&#039;] &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;~=&lt;/ins&gt; &quot;&quot; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;then &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    		extinct = extinct .. &quot;&amp;amp;nbsp;(&quot; .. frame:getParent().args[&#039;extinction_date&#039;] .. &quot;)&quot; &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;a class=&quot;mw-diff-movedpara-right&quot; title=&quot;Paragraph was moved. Click to jump to old location.&quot; href=&quot;#movedpara_2_0_lhs&quot;&gt;&amp;#x26AB;&lt;/a&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;a name=&quot;movedpara_8_1_rhs&quot;&gt;&lt;/a&gt;    &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	end&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = p.addImage(&quot;Status iucn3.1 EX.svg&quot;, &#039;Extinct&#039;) .. extinct &lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    	output = p.addImage(&quot;Status iucn3.1 EX.svg&quot;, &#039;Extinct&#039;) .. extinct &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    elseif status == &quot;CR&quot; then&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    elseif status == &quot;CR&quot; then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>w&gt;Jts1882</name></author>
	</entry>
	<entry>
		<id>https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=28056&amp;oldid=prev</id>
		<title>w&gt;Jts1882: fix image alts/links in NZTCS</title>
		<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Module:Conservation_status&amp;diff=28056&amp;oldid=prev"/>
		<updated>2026-03-18T14:16:07Z</updated>

		<summary type="html">&lt;p&gt;fix image alts/links in NZTCS&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 main() - entry point for template&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    local system = mw.text.trim(frame:getParent().args[1]) -- needs trim() for unnamed parameters&lt;br /&gt;
	local status = mw.text.trim(frame:getParent().args[2]) &lt;br /&gt;
	local refs = mw.text.trim(frame:getParent().args[3] or &amp;quot;&amp;quot; ) &lt;br /&gt;
    &lt;br /&gt;
    --TODO add handling of extinct parameter&lt;br /&gt;
    &lt;br /&gt;
    return &amp;#039;! colspan = 2 | &amp;lt;div style = &amp;quot;text-align:center;&amp;quot;&amp;gt;[[Conservation status]]&amp;lt;/div&amp;gt;&amp;#039; -- header row&lt;br /&gt;
           .. &amp;#039;\n|-&amp;#039;&lt;br /&gt;
           .. &amp;#039;\n| colspan = 2 | &amp;lt;div style = &amp;quot;text-align:center;&amp;quot;&amp;gt;&amp;#039; &lt;br /&gt;
           .. p._main(frame, system, status, refs) -- status content &lt;br /&gt;
           .. &amp;#039;&amp;lt;/div&amp;gt;&amp;#039;&lt;br /&gt;
        &lt;br /&gt;
           &lt;br /&gt;
end&lt;br /&gt;
-- function status() - entry point for direct invoke testing (assumes table structure and adds cell content)&lt;br /&gt;
function p.status(frame) &lt;br /&gt;
	local system = mw.text.trim(frame.args[1])&lt;br /&gt;
	local status = mw.text.trim(frame.args[2])&lt;br /&gt;
	local refs = mw.text.trim(frame.args[3] or &amp;quot;&amp;quot; )&lt;br /&gt;
	--TODO if system and status then return&lt;br /&gt;
	return p._main(frame, system, status, refs)&lt;br /&gt;
end&lt;br /&gt;
function p._main(frame, system, status, refs)&lt;br /&gt;
    &lt;br /&gt;
    local output = &amp;quot;ERROR&amp;quot;&lt;br /&gt;
    system = string.upper(system)&lt;br /&gt;
    status = string.upper(status)&lt;br /&gt;
    local systemText = &amp;quot;&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
    --TODO check for system; if none give needs handling with long list of possible statuses to match current system&lt;br /&gt;
   &lt;br /&gt;
    if system == &amp;quot;IUCN3.1&amp;quot; or system == &amp;quot;IUCN&amp;quot; then&lt;br /&gt;
       output = p.IUCN31(frame, system, status)&lt;br /&gt;
       systemText = &amp;quot;[[IUCN Red List|IUCN 3.1]]&amp;quot;&lt;br /&gt;
    elseif system == &amp;quot;IUCN2.3&amp;quot; then&lt;br /&gt;
       output = p.IUCN23(frame, system, status)&lt;br /&gt;
       systemText = &amp;quot;[[IUCN Red List|IUCN 2.3]]&amp;quot;&lt;br /&gt;
    elseif system == &amp;quot;CNCFLORA&amp;quot; then&lt;br /&gt;
       --output = p.CNCFlora(frame, system, status)&lt;br /&gt;
       output = p.UsesIUCN31(frame, system, status)    -- uses IUCN3.1 system and criteria (need to block catgories)&lt;br /&gt;
       systemText = &amp;quot;[[CNCFlora]]&amp;quot;&lt;br /&gt;
    elseif system == &amp;quot;TPWCA&amp;quot; then&lt;br /&gt;
       output = p.UsesIUCN31(frame, system, status)    -- uses IUCN3.1 system and criteria (need to block catgories)&lt;br /&gt;
       systemText = &amp;quot;[[NTFlora#TPWCA|TPWCA]]&amp;quot;&lt;br /&gt;
    elseif system == &amp;quot;SANBI&amp;quot; or system == &amp;quot;RLSAP&amp;quot; then&lt;br /&gt;
       output = p.SANBI(frame, system, status)    &lt;br /&gt;
       systemText = &amp;quot;[[Red List of South African Plants|SANBI Red List]]&amp;quot;&lt;br /&gt;
    elseif system == &amp;quot;NATURESERVE&amp;quot; or system == &amp;quot;TNC&amp;quot; then&lt;br /&gt;
       output = p.NatureServe(frame, system, status)&lt;br /&gt;
       systemText = &amp;quot;[[NatureServe conservation status|NatureServe]]&amp;quot;&lt;br /&gt;
    elseif system == &amp;quot;EPBC&amp;quot; then&lt;br /&gt;
       output = p.EPBC(frame, system, status)&lt;br /&gt;
       systemText = &amp;quot;[[Environment Protection and Biodiversity Conservation Act 1999|EPBC Act]]&amp;quot;&lt;br /&gt;
    elseif system == &amp;quot;ESA&amp;quot; then&lt;br /&gt;
       output = p.ESA(frame, system, status)&lt;br /&gt;
       systemText = &amp;quot;[[Endangered Species Act|ESA]]&amp;quot;&lt;br /&gt;
  	elseif system == &amp;quot;COSEWIC&amp;quot; then&lt;br /&gt;
       output = p.COSEWIC(frame, system, status)&lt;br /&gt;
       systemText = &amp;quot;[[Committee on the Status of Endangered Wildlife in Canada|COSEWIC]]&amp;quot;&lt;br /&gt;
 	elseif system == &amp;quot;DECF&amp;quot; then&lt;br /&gt;
       output = p.DECF(frame, system, status)&lt;br /&gt;
       systemText = &amp;quot;[[Declared Rare and Priority Flora List|DEC]]&amp;quot;&lt;br /&gt;
 	elseif system == &amp;quot;NSWBCA&amp;quot; then&lt;br /&gt;
        output = p.NSWBCA(frame, system, status)&lt;br /&gt;
 		systemText = &amp;quot;[[Biodiversity Conservation Act 2016 (NSW)|NSWBCA]]&amp;quot;&lt;br /&gt;
 	elseif system == &amp;quot;QLDNCA&amp;quot; then&lt;br /&gt;
       output = p.QLDNCA(frame, system, status)&lt;br /&gt;
       systemText = &amp;quot;[[Nature Conservation Act 1992|NCA]]&amp;quot;&lt;br /&gt;
 	elseif system == &amp;quot;CITES&amp;quot; then&lt;br /&gt;
       output = p.CITES(frame, system, status)&lt;br /&gt;
       --systemText = &amp;quot;[[CITES]]&amp;quot;&lt;br /&gt;
 	elseif system == &amp;quot;NZTCS&amp;quot; then&lt;br /&gt;
       output = p.NZTCS(frame, system, status)&lt;br /&gt;
       systemText = &amp;quot;[[New Zealand Threat Classification System|NZ TCS]]&amp;quot;&lt;br /&gt;
    else&lt;br /&gt;
       output = p.SystemNotRecognised(frame, system, status)&lt;br /&gt;
       systemText = &amp;quot;[[&amp;quot; .. system .. &amp;quot;]]&amp;quot;  -- should this be linked?&lt;br /&gt;
    end&lt;br /&gt;
    if output ~= &amp;quot;ERROR&amp;quot; then&lt;br /&gt;
    	--[=[  template code&lt;br /&gt;
    	       &amp;lt;small&amp;gt;&amp;amp;nbsp;({{#if:{{{status_text|}}}&lt;br /&gt;
    	          |[[{{{status_text|#Conservation status}}}|See text]]   --  links to section in article?&lt;br /&gt;
    	          |[[IUCN Red List|IUCN 3.1]]}}){{{3|}}}&amp;lt;/small&amp;gt;&lt;br /&gt;
        ]=]&lt;br /&gt;
        local statusText = frame:getParent().args[&amp;#039;status_text&amp;#039;]&lt;br /&gt;
        --local systemText = &amp;quot; [[IUCN Red List|IUCN 3.1]]&amp;quot;&lt;br /&gt;
        if statusText then &lt;br /&gt;
           if statusText == &amp;quot;&amp;quot; then statusText = &amp;quot;#Conservation status&amp;quot; end&lt;br /&gt;
    	   systemText = &amp;quot;[[&amp;quot; .. statusText .. &amp;quot;|See text]]&amp;quot;&lt;br /&gt;
        end&lt;br /&gt;
        if systemText ~= &amp;quot;&amp;quot; then&lt;br /&gt;
        	output = output ..  &amp;quot;&amp;lt;small&amp;gt;&amp;amp;nbsp;(&amp;quot; .. systemText .. &amp;quot;)&amp;quot; .. refs .. &amp;quot;&amp;lt;/small&amp;gt;&amp;quot; -- &amp;quot;&amp;lt;/div&amp;gt;&amp;quot;&lt;br /&gt;
        else&lt;br /&gt;
        	output = output ..  &amp;quot;&amp;lt;small&amp;gt;&amp;amp;#8239;&amp;quot; .. refs .. &amp;quot;&amp;lt;/small&amp;gt;&amp;quot; -- &amp;quot;&amp;lt;/div&amp;gt;&amp;quot;&lt;br /&gt;
        end&lt;br /&gt;
 &lt;br /&gt;
        return output&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
--[[ OTHER SYSTEMS&lt;br /&gt;
        Territory Parks and Wildlife Conservation Act 2000 (TPWCA)&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
function  p.SystemNotRecognised(frame, system, status)&lt;br /&gt;
	local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
   if status == &amp;quot;EX&amp;quot; then&lt;br /&gt;
    	local extinct = &amp;quot;[[Extinction|Extinct]]&amp;quot;&lt;br /&gt;
    	if frame:getParent().args[&amp;#039;extinct&amp;#039;] then extinct = &amp;quot;&amp;amp;nbsp;(&amp;quot; .. frame:getParent().args[&amp;#039;extinct&amp;#039;] .. &amp;quot;)&amp;quot; end&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 EX.svg&amp;quot;, &amp;#039;Extinct&amp;#039;) .. extinct &lt;br /&gt;
    elseif status == &amp;quot;CR&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[Critically endangered species|Critically Endangered]]&amp;quot; &lt;br /&gt;
    elseif status == &amp;quot;EN&amp;quot; then	&lt;br /&gt;
    	output = &amp;quot;[[Endangered species|Endangered]]&amp;quot; &lt;br /&gt;
    elseif status == &amp;quot;NT&amp;quot; then	&lt;br /&gt;
    	output = &amp;quot;[[Near Threatened]]&amp;quot; &lt;br /&gt;
    else&lt;br /&gt;
    	output = status&lt;br /&gt;
    end&lt;br /&gt;
	return output .. p.addCategory(&amp;quot;Taxoboxes with an unrecognised status system&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--***************************************** IUCN 3.1 **********************************&lt;br /&gt;
function p.IUCN31(frame, system, status)&lt;br /&gt;
	&lt;br /&gt;
    local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
    if status == &amp;quot;EX&amp;quot; then&lt;br /&gt;
    	local extinct = &amp;quot;[[Extinction|Extinct]]&amp;quot;&lt;br /&gt;
    	if frame:getParent().args[&amp;#039;extinction_date&amp;#039;] and frame:getParent().args[&amp;#039;extinction_date&amp;#039;] ~= &amp;quot;&amp;quot; then &lt;br /&gt;
    		extinct = extinct .. &amp;quot;&amp;amp;nbsp;(&amp;quot; .. frame:getParent().args[&amp;#039;extinction_date&amp;#039;] .. &amp;quot;)&amp;quot; end&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 EX.svg&amp;quot;, &amp;#039;Extinct&amp;#039;) .. extinct .. p.addCategory(&amp;quot;IUCN Red List extinct species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;EW&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 EW.svg&amp;quot;, &amp;#039;Extinct in the Wild&amp;#039;) .. &amp;quot;[[Extinct in the Wild]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List extinct in the wild species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;CR&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 CR.svg&amp;quot;, &amp;#039;Critically Endangered&amp;#039;) .. &amp;quot;[[Critically endangered species|Critically Endangered]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List critically endangered species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;EN&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 EN.svg&amp;quot;, &amp;#039;Endangered&amp;#039;) .. &amp;quot;[[Endangered species (IUCN status)|Endangered]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List endangered species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;VU&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 VU.svg&amp;quot;, &amp;#039;Vulnerable&amp;#039;) .. &amp;quot;[[Vulnerable species|Vulnerable]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List vulnerable species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;NT&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 NT.svg&amp;quot;, &amp;#039;Near Threatened&amp;#039;) .. &amp;quot;[[Near Threatened]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List near threatened species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;LC&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 LC.svg&amp;quot;, &amp;#039;Least Concern&amp;#039;) .. &amp;quot;[[Least Concern]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List least concern species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;DD&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 blank.svg&amp;quot;, &amp;#039;Data Deficient&amp;#039;) .. &amp;quot;[[Data deficient|Data Deficient]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List data deficient species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;NE&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[Not evaluated]]&amp;quot; &lt;br /&gt;
    elseif status == &amp;quot;NR&amp;quot; then&lt;br /&gt;
    	output =  &amp;quot;&amp;#039;&amp;#039;Not recognized&amp;#039;&amp;#039;&amp;quot; &lt;br /&gt;
    elseif status == &amp;quot;NA&amp;quot; then            -- only used in regional assessments?&lt;br /&gt;
    	output =  &amp;quot;&amp;#039;&amp;#039;Not applicable&amp;#039;&amp;#039;&amp;quot; &lt;br /&gt;
    elseif status == &amp;quot;PE&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 CR.svg&amp;quot;, &amp;#039;Critically endangered&amp;#039;) .. &amp;quot;[[Critically endangered]], possibly extinct&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List critically endangered species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;PEW&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 CR.svg&amp;quot;, &amp;#039;Critically endangered&amp;#039;) .. &amp;quot;[[Critically endangered]], possibly extinct in the wild&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List critically endangered species&amp;quot;)&lt;br /&gt;
    else &lt;br /&gt;
    	-- | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;{{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}&lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
    end  &lt;br /&gt;
 &lt;br /&gt;
 -- | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;{{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}&lt;br /&gt;
 --}}&amp;lt;small&amp;gt;&amp;amp;nbsp;({{#if:{{{status_text|}}}|[[{{{status_text|#Conservation status}}}|See text]]|[[IUCN Red List|IUCN 3.1]]}}){{{3|}}}&amp;lt;/small&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;!--&lt;br /&gt;
   &lt;br /&gt;
 --   local thirdParam = &amp;quot;&amp;quot; --mw.text.trim(frame:getParent().args[3] or &amp;quot;&amp;quot;)&lt;br /&gt;
 --   local statusText = frame:getParent().args[&amp;#039;status_text&amp;#039;]&lt;br /&gt;
  --  local systemText = &amp;quot; [[IUCN Red List|IUCN 3.1]]&amp;quot;&lt;br /&gt;
 --   if statusText then &lt;br /&gt;
 --   	systemText = &amp;quot;[[{{{status_text|#Conservation status}}}|See text]]&amp;quot;&lt;br /&gt;
 --   end&lt;br /&gt;
 --   output = output ..  &amp;quot;&amp;lt;small&amp;gt;&amp;amp;nbsp;(&amp;quot; .. systemText .. thirdParam .. &amp;quot;)&amp;lt;/small&amp;gt;&amp;lt;/div&amp;gt;&amp;quot;&lt;br /&gt;
    return output &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- ********************************* IUCN 2.3 **********************************************&lt;br /&gt;
function p.IUCN23(frame, system, status)&lt;br /&gt;
	&lt;br /&gt;
    local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
    if status == &amp;quot;EX&amp;quot; then&lt;br /&gt;
    	local extinct = &amp;quot;[[Extinction|Extinct]]&amp;quot;&lt;br /&gt;
    	local extinctionDate = frame:getParent().args[&amp;#039;extinction_date&amp;#039;] or &amp;quot;&amp;quot;&lt;br /&gt;
    	if extinctionDate ~= &amp;quot;&amp;quot; then extinct = extinct .. &amp;quot;&amp;amp;nbsp;(&amp;quot; .. frame:getParent().args[&amp;#039;extinction_date&amp;#039;] .. &amp;quot;)&amp;quot; end&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn2.3 EX.svg&amp;quot;, &amp;#039;Extinct&amp;#039;) .. extinct .. p.addCategory(&amp;quot;IUCN Red List extinct species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;EW&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn2.3 EW.svg&amp;quot;, &amp;#039;Extinct in the Wild&amp;#039;) .. &amp;quot;[[Extinct in the Wild]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List extinct in the wild species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;CR&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn2.3 CR.svg&amp;quot;, &amp;#039;Critically Endangered&amp;#039;) .. &amp;quot;[[Critically endangered species|Critically Endangered]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List critically endangered species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;EN&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn2.3 EN.svg&amp;quot;, &amp;#039;Endangered&amp;#039;) .. &amp;quot;[[Endangered species (IUCN status)|Endangered]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List endangered species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;VU&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn2.3 VU.svg&amp;quot;, &amp;#039;Vulnerable&amp;#039;) .. &amp;quot;[[Vulnerable species|Vulnerable]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List vulnerable species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;LR&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn2.3 blank.svg&amp;quot;, &amp;#039;Lower risk&amp;#039;) .. &amp;quot;Lower risk&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;CD&amp;quot; or status == &amp;quot;LR/CD&amp;quot; then&lt;br /&gt;
        output = p.addImage(&amp;quot;Status iucn2.3 CD.svg&amp;quot;, &amp;#039;Conservation Dependent&amp;#039;) .. &amp;quot;[[Conservation Dependent]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List conservation dependent species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;NT&amp;quot; or status == &amp;quot;LR/NT&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn2.3 NT.svg&amp;quot;, &amp;#039;Near Threatened&amp;#039;) .. &amp;quot;[[Near Threatened]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List near threatened species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;LC&amp;quot; or status == &amp;quot;LR/LC&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn2.3 LC.svg&amp;quot;, &amp;#039;Least Concern&amp;#039;) .. &amp;quot;[[Least Concern]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List least concern species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;DD&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn2.3 blank.svg&amp;quot;, &amp;#039;Data Deficient&amp;#039;) .. &amp;quot;[[Data deficient|Data Deficient]]&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List data deficient species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;NE&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[Not evaluated]]&amp;quot; &lt;br /&gt;
    elseif status == &amp;quot;NR&amp;quot; then&lt;br /&gt;
    	output =  &amp;quot;&amp;#039;&amp;#039;Not recognized&amp;#039;&amp;#039;&amp;quot; &lt;br /&gt;
    elseif status == &amp;quot;PE&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn2.3 CR.svg&amp;quot;, &amp;#039;Critically endangered&amp;#039;) .. &amp;quot;[[Critically endangered]], possibly extinct&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List critically endangered species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;PEW&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn2.3 CR.svg&amp;quot;, &amp;#039;Critically endangered&amp;#039;) .. &amp;quot;[[Critically endangered]], possibly extinct in the wild&amp;quot; .. p.addCategory(&amp;quot;IUCN Red List critically endangered species&amp;quot;)&lt;br /&gt;
    else     	-- | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;{{#ifeq: {{NAMESPACEE}} | {{ns: 0}} | [[Category:Invalid conservation status]]|}}&lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
    end  &lt;br /&gt;
 &lt;br /&gt;
    return output &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--******************************************* CNCFlora***************************************&lt;br /&gt;
&lt;br /&gt;
-- Note: this is not needed if using IUCN 3.1 system and criteria; just use that function with no catgories&lt;br /&gt;
-- alternatively rename this function as p.UsesIUCN31()&lt;br /&gt;
--function p.CNCFlora(frame, system, status)&lt;br /&gt;
function p.UsesIUCN31(frame, system, status)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
    local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
    if status == &amp;quot;EX&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 EX.svg&amp;quot;, &amp;#039;Extinct&amp;#039;) .. &amp;quot;[[Extinction|Extinct]]&amp;quot; --.. p.addCategory(&amp;quot;IUCN Red List extinct species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;EW&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 EW.svg&amp;quot;, &amp;#039;Extinct in the Wild&amp;#039;) .. &amp;quot;[[Extinct in the Wild]]&amp;quot; --.. p.addCategory(&amp;quot;IUCN Red List extinct in the wild species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;CR&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 CR.svg&amp;quot;, &amp;#039;Critically Endangered&amp;#039;) .. &amp;quot;[[Critically endangered species|Critically Endangered]]&amp;quot; --.. p.addCategory(&amp;quot;IUCN Red List critically endangered species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;EN&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 EN.svg&amp;quot;, &amp;#039;Endangered&amp;#039;) .. &amp;quot;[[Endangered species|Endangered]]&amp;quot; --.. p.addCategory(&amp;quot;IUCN Red List endangered species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;VU&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 VU.svg&amp;quot;, &amp;#039;Vulnerable&amp;#039;) .. &amp;quot;[[Vulnerable species|Vulnerable]]&amp;quot; --.. p.addCategory(&amp;quot;IUCN Red List vulnerable species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;NT&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 NT.svg&amp;quot;, &amp;#039;Near Threatened&amp;#039;) .. &amp;quot;[[Near Threatened]]&amp;quot; --.. p.addCategory(&amp;quot;IUCN Red List near threatened species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;LC&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 LC.svg&amp;quot;, &amp;#039;Least Concern&amp;#039;) .. &amp;quot;[[Least Concern]]&amp;quot; --.. p.addCategory(&amp;quot;IUCN Red List least concern species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;DD&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 blank.svg&amp;quot;, &amp;#039;Data Deficient&amp;#039;) .. &amp;quot;[[Data deficient|Data Deficient]]&amp;quot; --.. p.addCategory(&amp;quot;IUCN Red List data deficient species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;NE&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;Not evaluated&amp;#039;&amp;#039;&amp;quot; &lt;br /&gt;
    elseif status == &amp;quot;NR&amp;quot; then&lt;br /&gt;
    	output =  &amp;quot;&amp;#039;&amp;#039;Not recognized&amp;#039;&amp;#039;&amp;quot; &lt;br /&gt;
    elseif status == &amp;quot;PE&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 CR.svg&amp;quot;, &amp;#039;Critically endangered&amp;#039;) .. &amp;quot;[[Critically endangered]], possibly extinct&amp;quot; --.. p.addCategory(&amp;quot;IUCN Red List critically endangered species&amp;quot;)&lt;br /&gt;
    elseif status == &amp;quot;PEW&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status iucn3.1 CR.svg&amp;quot;, &amp;#039;Critically endangered&amp;#039;) .. &amp;quot;[[Critically endangered]], possibly extinct in the wild&amp;quot; --.. p.addCategory(&amp;quot;IUCN Red List critically endangered species&amp;quot;)&lt;br /&gt;
    else &lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
    end  &lt;br /&gt;
 &lt;br /&gt;
   return output &lt;br /&gt;
end&lt;br /&gt;
-- *************** Natureserve/TNC ********************************&lt;br /&gt;
function p.NatureServe(frame, system, status)&lt;br /&gt;
&lt;br /&gt;
   local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
   if status == &amp;quot;GX&amp;quot; then&lt;br /&gt;
    	local extinct = &amp;quot;Presumed [[Extinction|Extinct]]&amp;quot;&lt;br /&gt;
    	if frame:getParent().args[&amp;#039;extinction_date&amp;#039;] and frame:getParent().args[&amp;#039;extinction_date&amp;#039;] ~= &amp;quot;&amp;quot; then extinct = extinct.. &amp;quot;&amp;amp;nbsp;(&amp;quot; .. frame:getParent().args[&amp;#039;extinction_date&amp;#039;] .. &amp;quot;)&amp;quot; end&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC GX.svg&amp;quot;, &amp;#039;Extinct&amp;#039;) .. extinct .. p.addCategory(&amp;quot;NatureServe presumed extinct species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;GH&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC GH.svg&amp;quot;, &amp;#039;Possibly Extinct&amp;#039;) .. &amp;quot;Possibly [[Extinction|Extinct]]&amp;quot; .. p.addCategory(&amp;quot;NatureServe possibly extinct species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;G1&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC G1.svg&amp;quot;, &amp;#039;Critically Imperiled&amp;#039;) .. &amp;quot;Critically Imperiled&amp;quot; .. p.addCategory(&amp;quot;NatureServe critically imperiled species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;G2&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC G2.svg&amp;quot;, &amp;#039;Imperiled&amp;#039;) .. &amp;quot;Imperiled&amp;quot; .. p.addCategory(&amp;quot;NatureServe imperiled species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;G3&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC G3.svg&amp;quot;, &amp;#039;Vulnerable&amp;#039;) .. &amp;quot;Vulnerable&amp;quot; .. p.addCategory(&amp;quot;NatureServe vulnerable species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;G4&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC G4.svg&amp;quot;, &amp;#039;Apparently Secure&amp;#039;) .. &amp;quot;Apparently Secure&amp;quot; .. p.addCategory(&amp;quot;NatureServe apparently secure species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;G5&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC G5.svg&amp;quot;, &amp;#039;Secure&amp;#039;) .. &amp;quot;Secure&amp;quot; .. p.addCategory(&amp;quot;NatureServe secure species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;GU&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC blank.svg&amp;quot;, &amp;#039;Unrankable&amp;#039;) .. &amp;quot;Unrankable&amp;quot;&lt;br /&gt;
   elseif status == &amp;quot;GNR&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC blank.svg&amp;quot;, &amp;#039;Unranked&amp;#039;) .. &amp;quot;Unranked&amp;quot;&lt;br /&gt;
   elseif status == &amp;quot;TX&amp;quot; then&lt;br /&gt;
    	local extinct = &amp;quot;Presumed [[Extinction|Extinct]]&amp;quot;&lt;br /&gt;
    	if frame:getParent().args[&amp;#039;extinct&amp;#039;] then extinct = &amp;quot;&amp;amp;nbsp;(&amp;quot; .. frame:getParent().args[&amp;#039;extinct&amp;#039;] .. &amp;quot;)&amp;quot; end&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC TX.svg&amp;quot;, &amp;#039;Extinct&amp;#039;) .. extinct .. p.addCategory(&amp;quot;NatureServe presumed extinct species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;TH&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC TH.svg&amp;quot;, &amp;#039;Possibly Extinct&amp;#039;) .. &amp;quot;Possibly [[Extinction|Extinct]]&amp;quot; .. p.addCategory(&amp;quot;NatureServe possibly extinct species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;T1&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC T1.svg&amp;quot;, &amp;#039;Critically Imperiled&amp;#039;) .. &amp;quot;Critically Imperiled&amp;quot; .. p.addCategory(&amp;quot;NatureServe critically imperiled species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;T2&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC T2.svg&amp;quot;, &amp;#039;Imperiled&amp;#039;) .. &amp;quot;Imperiled&amp;quot; .. p.addCategory(&amp;quot;NatureServe imperiled species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;T3&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC T3.svg&amp;quot;, &amp;#039;Vulnerable&amp;#039;) .. &amp;quot;Vulnerable&amp;quot; .. p.addCategory(&amp;quot;NatureServe vulnerable species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;T4&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC T4.svg&amp;quot;, &amp;#039;Apparently Secure&amp;#039;) .. &amp;quot;Apparently Secure&amp;quot; .. p.addCategory(&amp;quot;NatureServe apparently secure species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;T5&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC T5.svg&amp;quot;, &amp;#039;Secure&amp;#039;) .. &amp;quot;Secure&amp;quot; .. p.addCategory(&amp;quot;NatureServe secure species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;TU&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status TNC blank.svg&amp;quot;, &amp;#039;Unrankable&amp;#039;) .. &amp;quot;Unrankable&amp;quot;&lt;br /&gt;
   else &lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
   end  &lt;br /&gt;
   return output &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- ********* EPBC: Environment Protection and Biodiversity Conservation Act 1999 (Australia) ************&lt;br /&gt;
function p.SANBI(frame, system, status)&lt;br /&gt;
&lt;br /&gt;
   local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
   if status == &amp;quot;EX&amp;quot; then&lt;br /&gt;
    	local extinct = &amp;quot;[[Extinction|Extinct]]&amp;quot;&lt;br /&gt;
    	if frame:getParent().args[&amp;#039;extinct&amp;#039;] then extinct = &amp;quot;&amp;amp;nbsp;(&amp;quot; .. frame:getParent().args[&amp;#039;extinct&amp;#039;] .. &amp;quot;)&amp;quot; end&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status SANBI EX.svg&amp;quot;, &amp;#039;Extinct&amp;#039;) .. extinct --.. p.addCategory(&amp;quot;SANBI Red List extinct biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;EW&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status SANBI EW.svg&amp;quot;, &amp;#039;Extinct in the Wild&amp;#039;) .. &amp;quot;[[Extinct in the Wild]]&amp;quot; --.. p.addCategory(&amp;quot;SANBI Red List extinct in the wild biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;RE&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status SANBI RE.svg&amp;quot;, &amp;#039;Regionally Extinct&amp;#039;) .. &amp;quot;Regionally Extinct&amp;quot; --.. p.addCategory(&amp;quot;SANBI Red List regionally extinct biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;CR&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status SANBI CR.svg&amp;quot;, &amp;#039;Critically endangered&amp;#039;) .. &amp;quot;[[Critically endangered species|Critically endangered]]&amp;quot; --.. p.addCategory(&amp;quot;SANBI Red List critically endangered biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;EN&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status SANBI EN.svg&amp;quot;, &amp;#039;Endangered&amp;#039;) .. &amp;quot;[[Endangered species|Endangered]]&amp;quot; --.. p.addCategory(&amp;quot;SANBI Red List endangered biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;VU&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status SANBI VU.svg&amp;quot;, &amp;#039;Vulnerable&amp;#039;) .. &amp;quot;[[Vulnerable species|Vulnerable]]&amp;quot; --.. p.addCategory(&amp;quot;SANBI Red List vulnerable biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;NT&amp;quot;  then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status SANBI NT.svg&amp;quot;, &amp;#039;Near Threatened&amp;#039;) .. &amp;quot;[[Near Threatened]]&amp;quot; --.. p.addCategory(&amp;quot;SANBI Red List near threatened biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;LC&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status SANBI LC.svg&amp;quot;, &amp;#039;Least Concern&amp;#039;) .. &amp;quot;[[Least Concern]]&amp;quot; --.. p.addCategory(&amp;quot;SANBI Red List least concern biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;RA&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status SANBI Ra.svg&amp;quot;, &amp;#039;Rare&amp;#039;) .. &amp;quot;Rare&amp;quot; --  p.addCategory(&amp;quot;SANBI Red List rare biota&amp;quot;)&lt;br /&gt;
   else &lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
   end  &lt;br /&gt;
  &lt;br /&gt;
   return output &lt;br /&gt;
end&lt;br /&gt;
function p.EPBC(frame, system, status)&lt;br /&gt;
&lt;br /&gt;
   local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
   if status == &amp;quot;EX&amp;quot; then&lt;br /&gt;
    	local extinct = &amp;quot;[[Extinction|Extinct]]&amp;quot;&lt;br /&gt;
    	if frame:getParent().args[&amp;#039;extinct&amp;#039;] then extinct = &amp;quot;&amp;amp;nbsp;(&amp;quot; .. frame:getParent().args[&amp;#039;extinct&amp;#039;] .. &amp;quot;)&amp;quot; end&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status EPBC EX.svg&amp;quot;, &amp;#039;Extinct&amp;#039;) .. extinct .. p.addCategory(&amp;quot;EPBC Act extinct biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;EW&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status EPBC EW.svg&amp;quot;, &amp;#039;Extinct in the Wild&amp;#039;) .. &amp;quot;[[Extinct in the Wild]]&amp;quot; .. p.addCategory(&amp;quot;EPBC Act extinct in the wild biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;CR&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status EPBC CR.svg&amp;quot;, &amp;#039;Critically endangered&amp;#039;) .. &amp;quot;[[Critically endangered species|Critically endangered]]&amp;quot; .. p.addCategory(&amp;quot;EPBC Act critically endangered biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;EN&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status EPBC EN.svg&amp;quot;, &amp;#039;Endangered&amp;#039;) .. &amp;quot;[[Endangered species|Endangered]]&amp;quot; .. p.addCategory(&amp;quot;EPBC Act endangered biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;VU&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status EPBC VU.svg&amp;quot;, &amp;#039;Vulnerable&amp;#039;) .. &amp;quot;[[Vulnerable species|Vulnerable]]&amp;quot; .. p.addCategory(&amp;quot;EPBC Act vulnerable biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;CD&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status EPBC CD.svg&amp;quot;, &amp;#039;Conservation Dependent&amp;#039;) .. &amp;quot;[[Conservation Dependent]]&amp;quot; .. p.addCategory(&amp;quot;EPBC Act conservation dependent biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;DL&amp;quot;  or status == &amp;quot;DELISTED&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status EPBC DL.svg&amp;quot;, &amp;#039;Delisted&amp;#039;) .. &amp;quot;Delisted&amp;quot; &lt;br /&gt;
   else &lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
   end  &lt;br /&gt;
  &lt;br /&gt;
   return output &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- *************** ESA ********************************&lt;br /&gt;
function p.ESA(frame, system, status)&lt;br /&gt;
&lt;br /&gt;
   local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
   if status == &amp;quot;EX&amp;quot; then&lt;br /&gt;
    	local extinct = &amp;quot;[[Extinction|Extinct]]&amp;quot;&lt;br /&gt;
    	if frame:getParent().args[&amp;#039;extinct&amp;#039;] then extinct = &amp;quot;&amp;amp;nbsp;(&amp;quot; .. frame:getParent().args[&amp;#039;extinct&amp;#039;] .. &amp;quot;)&amp;quot; end&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status ESA EX.svg&amp;quot;, &amp;#039;Extinct&amp;#039;) .. extinct &lt;br /&gt;
   elseif status == &amp;quot;LE&amp;quot; or status == &amp;quot;E&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status ESA LE.svg&amp;quot;, &amp;#039;Endangered&amp;#039;) .. &amp;quot;[[Endangered species|Endangered]]&amp;quot;  .. p.addCategory(&amp;quot;ESA endangered species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;LT&amp;quot; or status == &amp;quot;T&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status ESA LT.svg&amp;quot;, &amp;#039;Threatened&amp;#039;) .. &amp;quot;[[Threatened species|Threatened]]&amp;quot;  .. p.addCategory(&amp;quot;ESA threatened species&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;DL&amp;quot;  or status == &amp;quot;DELISTED&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status ESA DL.svg&amp;quot;, &amp;#039;Delisted&amp;#039;) .. &amp;quot;Delisted&amp;quot; &lt;br /&gt;
   else &lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
   end        &lt;br /&gt;
&lt;br /&gt;
   return output &lt;br /&gt;
end&lt;br /&gt;
-- ********** COSEWIC: Committee on the Status of Endangered Wildlife in Canada **************&lt;br /&gt;
function p.COSEWIC(frame, system, status)&lt;br /&gt;
&lt;br /&gt;
   local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
   if status == &amp;quot;X&amp;quot; then&lt;br /&gt;
    	local extinct = &amp;quot;[[Extinction|Extinct]]&amp;quot;&lt;br /&gt;
    	if frame:getParent().args[&amp;#039;extinct&amp;#039;] then extinct = &amp;quot;&amp;amp;nbsp;(&amp;quot; .. frame:getParent().args[&amp;#039;extinct&amp;#039;] .. &amp;quot;)&amp;quot; end&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status COSEWIC X.svg&amp;quot;, &amp;#039;Extinct&amp;#039;) .. extinct &lt;br /&gt;
   elseif status == &amp;quot;XT&amp;quot; then&lt;br /&gt;
   	    output = p.addImage(&amp;quot;Status COSEWIC XT.svg&amp;quot;, &amp;#039;Extirpated (Canada)&amp;#039;) .. &amp;quot;Extirpated (Canada)&amp;quot;&lt;br /&gt;
   elseif status == &amp;quot;E&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status COSEWIC E.svg&amp;quot;, &amp;#039;Endangered&amp;#039;) .. &amp;quot;[[Endangered species|Endangered]]&amp;quot; &lt;br /&gt;
   elseif  status == &amp;quot;T&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status COSEWIC T.svg&amp;quot;, &amp;#039;Threatened&amp;#039;) .. &amp;quot;[[Threatened species|Threatened]]&amp;quot; &lt;br /&gt;
   elseif  status == &amp;quot;SC&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status COSEWIC SC.svg&amp;quot;, &amp;#039;Special Concern&amp;#039;) .. &amp;quot;Special Concern&amp;quot; &lt;br /&gt;
   elseif  status == &amp;quot;DD&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status_COSEWIC_blank.svg&amp;quot;, &amp;#039;Data Deficient&amp;#039;) .. &amp;quot;Data Deficient&amp;quot; &lt;br /&gt;
   elseif  status == &amp;quot;NAR&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status COSEWIC NAR.svg&amp;quot;, &amp;#039;Not at risk&amp;#039;) .. &amp;quot;[[Least Concern|Not at risk]]&amp;quot; &lt;br /&gt;
   else &lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
   end     &lt;br /&gt;
   return output &lt;br /&gt;
end&lt;br /&gt;
-- *************** DECF ********************************&lt;br /&gt;
function p.DECF(frame, system, status)&lt;br /&gt;
&lt;br /&gt;
   local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
   if status == &amp;quot;X&amp;quot; then&lt;br /&gt;
    	local extinct = &amp;quot;Declared Rare&amp;amp;nbsp;— Presumed [[Extinction|Extinct]]&amp;quot;&lt;br /&gt;
    	if frame:getParent().args[&amp;#039;extinct&amp;#039;] then extinct = &amp;quot;&amp;amp;nbsp;(&amp;quot; .. frame:getParent().args[&amp;#039;extinct&amp;#039;] .. &amp;quot;)&amp;quot; end&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status DECF X.svg&amp;quot;, &amp;#039;Extinct&amp;#039;) .. extinct &lt;br /&gt;
   elseif status == &amp;quot;R&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status DECF R.svg&amp;quot;, &amp;#039;Declared rare&amp;#039;) .. &amp;quot;Declared [[Rare species|rare]]&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;P1&amp;quot;  then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status DECF P1.svg&amp;quot;, &amp;#039;Priority One&amp;amp;nbsp;— Poorly Known Taxa&amp;#039;) .. &amp;quot;Priority One&amp;amp;nbsp;— Poorly Known Taxa&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;P2&amp;quot;  then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status DECF P2.svg&amp;quot;, &amp;#039;Priority Two&amp;amp;nbsp;— Poorly Known Taxa&amp;#039;) .. &amp;quot;Priority Two&amp;amp;nbsp;— Poorly Known Taxa&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;P3&amp;quot;  then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status DECF P3.svg&amp;quot;, &amp;#039;Priority Three&amp;amp;nbsp;— Poorly Known Taxa&amp;#039;) .. &amp;quot;Priority Three&amp;amp;nbsp;— Poorly Known Taxa&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;P4&amp;quot;  then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status DECF P4.svg&amp;quot;, &amp;#039;Priority Four&amp;amp;nbsp;— Rare Taxa&amp;#039;) .. &amp;quot;Priority Four&amp;amp;nbsp;— Rare Taxa&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;DL&amp;quot;  or status == &amp;quot;DELISTED&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status DECF DL.svg&amp;quot;, &amp;#039;Delisted&amp;#039;) .. &amp;quot;Delisted&amp;quot; &lt;br /&gt;
   else &lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
   end        &lt;br /&gt;
&lt;br /&gt;
   return output &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- *************** QLDNCA (Queensland Nature Conservation Act ********************************&lt;br /&gt;
-- https://www.data.qld.gov.au/dataset/conservation-status-of-queensland-wildlife/resource/d20c485d-b5dc-4c07-8304-df6a21783d4b &lt;br /&gt;
function p.QLDNCA(frame, system, status)&lt;br /&gt;
&lt;br /&gt;
   local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
   if status == &amp;quot;EX&amp;quot;  then&lt;br /&gt;
    	output = &amp;quot;[[Extinct]]&amp;quot; .. p.addCategory(&amp;quot;Nature Conservation Act extinct biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;EW&amp;quot; or status == &amp;quot;PE&amp;quot;   then  -- PE is the code used but keep EW for compatibility&lt;br /&gt;
    	output = &amp;quot;[[Extinct in the Wild]]&amp;quot; .. p.addCategory(&amp;quot;Nature Conservation Act extinct in the wild biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;CR&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[Critically endangered species|Critically Endangered]]&amp;quot; .. p.addCategory(&amp;quot;Nature Conservation Act critically endangered biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;EN&amp;quot; or status == &amp;quot;E&amp;quot;  then&lt;br /&gt;
    	output = &amp;quot;[[Endangered species|Endangered]]&amp;quot; .. p.addCategory(&amp;quot;Nature Conservation Act endangered biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;VU&amp;quot; or status == &amp;quot;V&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[Vulnerable species|Vulnerable]] &amp;quot; .. p.addCategory(&amp;quot;Nature Conservation Act vulnerable biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;R&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;Rare&amp;quot; .. p.addCategory(&amp;quot;Nature Conservation Act rare biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;NT&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[Near Threatened]]&amp;quot; .. p.addCategory(&amp;quot;Nature Conservation Act near threatened biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;SL&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[Special Least Concern]]&amp;quot; .. p.addCategory(&amp;quot;Nature Conservation Act special least concern biota&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;LC&amp;quot; or status == &amp;quot;C&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[Least Concern]]&amp;quot; .. p.addCategory(&amp;quot;Nature Conservation Act least concern biota&amp;quot;)&lt;br /&gt;
   else &lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
   end        &lt;br /&gt;
   &lt;br /&gt;
   return output &lt;br /&gt;
end&lt;br /&gt;
-- *************** NSWBCA ********************************&lt;br /&gt;
function p.NSWBCA(frame, system, status)&lt;br /&gt;
	local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
	   if status == &amp;quot;EX&amp;quot;  then&lt;br /&gt;
    	output = &amp;quot;[[Extinct]]&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;EW&amp;quot;  then&lt;br /&gt;
    	output = &amp;quot;[[Extinct in the Wild]]&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;CR&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[Critically endangered species|Critically Endangered]]&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;EN&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[Endangered species|Endangered]]&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;VU&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[Vulnerable species|Vulnerable]] &amp;quot; &lt;br /&gt;
--   elseif status == &amp;quot;R&amp;quot; then&lt;br /&gt;
--    	output = &amp;quot;Rare&amp;quot; &lt;br /&gt;
--   elseif status == &amp;quot;NT&amp;quot; then&lt;br /&gt;
--    	output = &amp;quot;[[Near Threatened]]&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;LC&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[Least Concern]]&amp;quot; &lt;br /&gt;
   else &lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
   end  &lt;br /&gt;
  	return output&lt;br /&gt;
end&lt;br /&gt;
-- *************** CITES ********************************&lt;br /&gt;
function p.CITES(frame, system, status)&lt;br /&gt;
	&lt;br /&gt;
   --colours: Animalia 	rgb(235,235,210)	Archaeplastida 	rgb(180,250,180)&lt;br /&gt;
   local colour = frame:getParent().args[&amp;#039;colour&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
   local categoryPrefix = &amp;quot;Taxa&amp;quot;&lt;br /&gt;
   --mw.addWarning (tostring(colour))&lt;br /&gt;
   if colour == &amp;#039;rgb(235,235,210)&amp;#039; then categoryPrefix = &amp;quot;Fauna&amp;quot; &lt;br /&gt;
   elseif colour == &amp;#039;rgb(180,250,180)&amp;#039; then categoryPrefix = &amp;quot;Flora&amp;quot; &lt;br /&gt;
   else  mw.addWarning (tostring(colour))&lt;br /&gt;
   end&lt;br /&gt;
   &lt;br /&gt;
   local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
   if status == &amp;quot;CITES_A1&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[CITES]] Appendix I&amp;quot; .. p.addCategory(categoryPrefix .. &amp;quot; listed on CITES Appendix I&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;CITES_A2&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[CITES]] Appendix II&amp;quot; .. p.addCategory(categoryPrefix .. &amp;quot; listed on CITES Appendix II&amp;quot;)&lt;br /&gt;
   elseif status == &amp;quot;CITES_A3&amp;quot; then&lt;br /&gt;
    	output = &amp;quot;[[CITES]] Appendix III&amp;quot; .. p.addCategory(categoryPrefix .. &amp;quot; listed on CITES Appendix III&amp;quot;)&lt;br /&gt;
   else &lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
   end &lt;br /&gt;
   return output &lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- *************** NZTCS ********************************&lt;br /&gt;
function p.NZTCS(frame, system, status)&lt;br /&gt;
&lt;br /&gt;
   local output = system .. &amp;#039; &amp;#039; .. status&lt;br /&gt;
   if status == &amp;quot;EX&amp;quot; then&lt;br /&gt;
    	local extinct = &amp;quot;[[Extinction|Extinct]]&amp;quot;&lt;br /&gt;
    	if frame:getParent().args[&amp;#039;extinction_date&amp;#039;] and frame:getParent().args[&amp;#039;extinction_date&amp;#039;] ~= &amp;quot;&amp;quot; then &lt;br /&gt;
    		extinct = extinct .. &amp;quot;&amp;amp;nbsp;(&amp;quot; .. frame:getParent().args[&amp;#039;extinction_date&amp;#039;] .. &amp;quot;)&amp;quot; &lt;br /&gt;
    	end&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status 2019 NZTCS EX.svg&amp;quot;, &amp;quot;extinct&amp;quot;) .. extinct &lt;br /&gt;
   -- Threatened categories 2019 (NC,NE,NV,NI)&lt;br /&gt;
   elseif status == &amp;quot;NC&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status 2019 NZTCS NC.svg&amp;quot;, &amp;quot;Nationally Critical&amp;quot;) .. &amp;quot;Nationally Critical&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;NE&amp;quot;  then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status 2019 NZTCS NE.svg&amp;quot;, &amp;quot;Nationally Endangered&amp;quot;) .. &amp;quot;Nationally Endangered&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;NV&amp;quot;  then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status 2019 NZTCS NV.svg&amp;quot;, &amp;quot;Nationally Vulnerable&amp;quot;) .. &amp;quot;Nationally Vulnerable&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;NI&amp;quot; or status == &amp;quot;ni&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status 2019 NZTCS NI.svg&amp;quot;, &amp;quot;Nationally Increasing&amp;quot;) .. &amp;quot;Nationally Increasing&amp;quot; &lt;br /&gt;
   -- At Risk categories (2019 version): &lt;br /&gt;
   elseif status == &amp;quot;D&amp;quot; or status == &amp;quot;d&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status 2019 NZTCS D.svg&amp;quot;, &amp;quot;Declining&amp;quot;) .. &amp;quot;Declining&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;REL&amp;quot; or status == &amp;quot;Rel&amp;quot; or status == &amp;quot;rel&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status 2019 NZTCS REL.svg&amp;quot;, &amp;quot;Relict&amp;quot;) .. &amp;quot;Relict&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;NU&amp;quot; or status == &amp;quot;nu&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status 2019 NZTCS NU.svg&amp;quot;,  &amp;quot;Naturally Uncommon&amp;quot;) .. &amp;quot;Naturally Uncommon&amp;quot; &lt;br /&gt;
   -- At Risk categories (2008 version): &lt;br /&gt;
   elseif status == &amp;quot;R&amp;quot; or status == &amp;quot;r&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status NZTCS R.svg&amp;quot;, &amp;quot;Recovering&amp;quot;) .. &amp;quot;Recovering&amp;quot;  -- included in NI in 2019 category&lt;br /&gt;
&lt;br /&gt;
   --- other&lt;br /&gt;
   elseif status == &amp;quot;NT&amp;quot; or status == &amp;quot;nt&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status 2019 NZTCS NT.svg&amp;quot;, &amp;quot;Not Threatened&amp;quot; ) .. &amp;quot;Not Threatened&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;DD&amp;quot; or status == &amp;quot;dd&amp;quot; then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status 2019 NZTCS DD.svg&amp;quot;, &amp;quot;Data Deficit&amp;quot; ) .. &amp;quot;Data Deficit&amp;quot; &lt;br /&gt;
   &lt;br /&gt;
   --  Older categories (version 2002): SD,GD,SP,RR&lt;br /&gt;
   elseif status == &amp;quot;SD&amp;quot;  then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status NZTCS SD.svg&amp;quot;, &amp;#039;Serious Decline&amp;#039;) .. &amp;quot;Serious Decline&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;GD&amp;quot;  then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status NZTCS GD.svg&amp;quot;, &amp;#039;Gradual Decline&amp;#039;) .. &amp;quot;Gradual Decline&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;SP&amp;quot;  then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status NZTCS SP.svg&amp;quot;, &amp;#039;Sparse&amp;#039;) .. &amp;quot;Sparse&amp;quot; &lt;br /&gt;
   elseif status == &amp;quot;RR&amp;quot;  then&lt;br /&gt;
    	output = p.addImage(&amp;quot;Status NZTCS RR.svg&amp;quot;, &amp;#039;Range Restricted&amp;#039;) .. &amp;quot;Range Restricted&amp;quot; &lt;br /&gt;
&lt;br /&gt;
   -- otherwise invalid conservation status&lt;br /&gt;
   else &lt;br /&gt;
    	output = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Invalid status&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. p.addCategory(&amp;quot;Invalid conservation status&amp;quot;)&lt;br /&gt;
   end        &lt;br /&gt;
   &lt;br /&gt;
   return output &lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- *************** functions  for image and category output ********&lt;br /&gt;
function p.addImage(file, alt)&lt;br /&gt;
    if file ~= &amp;quot;&amp;quot; then&lt;br /&gt;
    	return &amp;quot;[[File:&amp;quot; .. file .. &amp;quot;|frameless|alt=&amp;quot; .. ( alt or &amp;#039;|link=&amp;#039; ) .. &amp;quot;|class=skin-invert-image]]&amp;lt;br /&amp;gt;&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
function p.addCategory(category)&lt;br /&gt;
	local ns = mw.title.getCurrentTitle().namespace&lt;br /&gt;
    -- ns = 0 -- to test category put on page&lt;br /&gt;
	if category ~= &amp;quot;&amp;quot; and ns == 0 then&lt;br /&gt;
		return &amp;quot;[[Category:&amp;quot; .. category .. &amp;quot;]]&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>w&gt;Jts1882</name></author>
	</entry>
</feed>