🇮🇷 Iran Proxy | https://www.wikipedia.org/wiki/Module_talk:Conservation_status
Jump to content

Module talk:Conservation status

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Module Created

[edit]

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)

Summary of conservation system usage

[edit]
Summary of conservation system usage
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


stripped div tags

[edit]

@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)[reply]

Kingdom detection is broken

[edit]

@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)[reply]

Thank-you for the heads up. I was trying to quickly fix something raised at the Village Pump and should have waited until I add time to check everything was working as intended. The Taxa categories should be empty and all placed in the Fauna or Flora categories, which I think they will when the changes are propagated.  —  Jts1882 | talk  11:01, 16 November 2025 (UTC)[reply]

CITES references missing

[edit]

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)[reply]

Yes, it was removing the redundant (CITES) that introduced the error. I've fixed that.
However, the CITES status is shown slightly differently to other statuses. It shows "CITES Appendix I" whereas others are of form "Endangered (IUCN 3.1)". Perhaps it should be changed to "Appendix I (CITES)".  —  Jts1882 | talk  08:23, 21 November 2025 (UTC)[reply]
Cheers for the fix! I do like the look of the "Appendix I (CITES)" format slightly better than "CITES Appendix I". Ethmostigmus 🌿 (talk | contribs) 02:28, 22 November 2025 (UTC)[reply]