This module is designed place the conservation status in taxoboxes and to eventually replace {{taxobox/species}}. The basic code handles all the existing conser
This module is designed place the conservation status in taxoboxes and to eventually replace {{taxobox/species}}. The basic code handles all the existing conservation systems handled by the template and so far I haven't seen any errors when testing. However more is needed before replacing the template code.
As a first step I've added a couple of regional conservation systems. I've modified {{taxobox/species}} to invoke the module for these systems, leaving the template code to handle existing systems. This way only new conservation systems or thoroughly checked taxoboxes are handled by the module.
Below is a summary of conservation status systems and their use in taxoboxes (under construction)
| Conservation status system | Taxobox | Speciesbox | Subspeciesbox | Total |
|---|---|---|---|---|
| IUCN 3.1 | 8204 | 36303 | 310 | 44826 |
| IUCN 2.3 | 3669 | 5211 | 40 | 8928 |
| IUCN unspecified | 2 | 1 | 0 | 3 |
| IUCN (all) | 11875 | 41515 | 350 | 53757 (5 automatic taxobox) |
| TNC (none use NatureServe parameter value) | 806 | 1271 | 2106 | |
| CITES | 4 | 138 | 2 | 162 (18 automatic taxobox) |
| ESA (USA) | 42 | 115 | 52 | 213 |
| DECF (Western Australia, Australia) | 27 | 669 | 0 | 629 |
| QLDNCA (Queensland, Australia) | 3 | 46 | 0 | 49 |
| NZTCS (New Zealand) | 35 | 96 | 2 | 134 (1 automatic taxobox) |
| COSEWIC (Canada) | 1 | 2 | 1 | 4 |
| EPBC (Australia) | 127 | 434 | 594 | |
| Newly handled regional systems (by module) | ||||
| CNCFlora (Brazil) | 1 | 1 | ||
| TPWCA (Northern Territory, Australia) | 2 | 7 | 9 | |
| Totals (including empty) | 18604 | 49379 | 550 | 68860 |
@Jts1882: I have little knowledge of how to code modules, but I believe this module is causing stripped tag lint errors for </div>; most likely the final </div> should be removed in the two uses of
output = output .. "<small> (" .. systemText .. ")" .. refs .. "</small></div>"Please see if you agree. —Anomalocaris (talk) 22:39, 18 August 2019 (UTC)
@Jts1882: Your recent edit seems to have broken kingdom detection, resulting in (for instance) all articles previously in Category:Fauna listed on CITES Appendix II now being placed in Category:Taxa listed on CITES Appendix II. (Before I fixed it, they were actually winding up at Category:Taxon listed on CITES Appendix II.) jlwoodwa (talk) 01:56, 16 November 2025 (UTC)
Hi @Jts1882, I think one of your recent edits to this module have caused CITES ref footnotes to disappear from speciesboxes - see for example at Aloe abyssicola, where the speciesbox still displays CITES Appendix II but without the ref included in the |status_ref= parameter. The reference still appears in the reflist, but the footnote in the speciesbox no longer appears. I assume that this is an unintended side effect of editing this module so that |status_system= doesn't add a redundant (CITES) system identifier? Ethmostigmus 🌿 (talk | contribs) 00:38, 21 November 2025 (UTC)
@Jts1882: Bulbine louwii uses the valid SANBI status of "RA" = "Rare", which could usefully be added to this module, I think. Peter coxhead (talk) 07:46, 11 March 2026 (UTC)
{{Taxobox/species}} is a weird name, which I never seem to remember. I wonder if it would be simpler to maintain if instead of the elseifs in functions like p.IUCN23, a table was used like the approach in Module:Taxobox ranks. I vaguely remember starting the design of this module with elseifs before settling on the use of a table. One (minor?) advantage is that you can then include a function to display the table for documentation purposes and debugging. Peter coxhead (talk) 11:58, 11 March 2026 (UTC)
{ status, image, linked_text, category } for each system might be easier to read and they could probably be eventually combined into a larger 2D table.{{Taxobox/species}} in the default option of the line 2 #switch{{{1}}} statememt for when there no system (from line 269 to line 378). I don't know how much that code is still needed and didn't understand some of it when I last looked. I suppose Category:Taxoboxes needing a status system parameter might answer that.{{Taxobox/species/sandbox}} could be easily tested? — Jts1882 | talk 14:11, 11 March 2026 (UTC)
|extinct= (which behaves badly from a software engineering point of view, because it functions as true/false for ancient extinctions and to set a date for recent ones). So there doesn't seem to be anything useful available for testing different status systems and values.{{Taxobox/species| |VU}} generates{{Taxobox/species| |G1}} givesG1
|
{{Taxobox/species}} for each system with a single line call to the module. I'll do this one by one so I can test it in editor mode. At the same time I'll update the documentation as that can be used for checking the output in editor mode.|extinct= parameter that is used by both status systems. Ideally there would be |status_extinction_date= and |status2_extinction_date= but changing this would be problematic due to the number of uses of |extinct=. For NZTCS I could remove the extinction date code as it doesn't give them in the examples I've looked at, but the issue will exist for other status systems. — Jts1882 | talk 17:11, 15 March 2026 (UTC)|extinct= is problematic, as I noted above, because for long extinct/fossil species it's used with the value "yes" to mark the species extinct when the parent taxon (usually genus) is not. In this use it has nothing to do with conservation status. For recently extinct species with a status system and a status like "EX" it's used to add a date to the "EX", or if |status=EX is absent, to behave as "yes". Caspian tiger should be shown as "Extinct (1970)" solely based on |extinct=1970, which is supported in the text. A recently extinct species doesn't need |status=EX if there's no system but there are sources to support the date of extinction. Category:Taxoboxes for extinct species without status system parameter would thus collect articles that don't need a status system.|status=domesticated again doesn't need a status system – do any of them have this value? So Category:Taxoboxes for domesticated animals without status system parameter would collect articles with no possible status system. Giving the "conservation status" as "domesticated" is equivalent to saying "domesticated, so conservation not needed".|extinct=. Looking at some examples, |extinct=yes no longer works. |status=EX is required, e.g. Viti Levu snipe (speciesbox), Mesopropithecus (automatic taxobox), Caspian tiger (population taxobox).|status=DOM with a status system (there are three with an empty parameter). — Jts1882 | talk 10:19, 19 March 2026 (UTC)
|extinct=yes does work in a Speciesbox and is needed, but not for conservation status. Go to Homo erectus for example. Note that the species has † although the genus does not. Now edit to remove |extinct=yes and preview. The † disappears before the species. Peter coxhead (talk) 12:24, 22 March 2026 (UTC)|status_system=, deleting code that is now unnecesary and unused. I notice that the fourth from last line (currently line 92), the default of the status switch statement, outputted the content of |status= without modification or adding a category. I added Category:Invalid conservation status, which collected around 50 cases that I've being going through.|status=. A few had |status=> or other trivial content.|status_ref= to these, but they remain in the category.|status_system= to indicate that no status system was a deliberate choice by the editor, rather than just oversight, but I wouldn't display it. I plan to add a check for |status_ref=, so an alternative would be to only use a tracking category when there is no system and no reference. This approach would empty the category (apart from few SANSA spiders I haven't changed yet). — Jts1882 | talk 12:42, 22 March 2026 (UTC)
only use a tracking category when there is no system and no referenceseems the right approach to me. Peter coxhead (talk) 16:52, 22 March 2026 (UTC)
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.