Module talk:Conservation status
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]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)