Module:Category described in year/sandbox: Difference between revisions

Content deleted Content added
m Semi-alphabetical Animals section, with trees at the bottom; rem --heading from Spiders as no subgroups
m "yearmin" -> "minyear": reads better, matches the internal variable name for less confusion, and doesn't suggest any association with the "year" key by both starting with "year"
Line 26:
['Default'] = { --"group" (e.g. Amphibians/Birds/Crustaceans/Fish/Mammals/Molluscs/Reptiles/Sponges)
['yearminminyear'] = 1758, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Birds described in 1901]]
['parent1'] = 'century', --[[Category:Birds described in the 20th century]] --decade, century, or formal
Line 40:
['Animals'] = { --"group"
['yearminminyear'] = 1757, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Animals described in 1901]]
['parent1'] = 'century', --[[Category:Animals described in the 20th century]]
Line 54:
['Spiders'] = { --"group"; ICZN allows names in Clerck's Aranei Svecici of 1757, earliest date used in World Spider Catalog
['yearminminyear'] = 1757, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Spiders described in 1901]]
['parent1'] = 'century', --[[Category:Spiders described in the 20th century]]
Line 70:
['Insects'] = { --"group"
['yearminminyear'] = 1757, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Insects described in 1901]]
['parent1'] = 'century', --[[Category:Insects described in the 20th century]]
Line 84:
['Beetles'] = { --"subgroup" to Insects
['yearminminyear'] = 1757, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Beetles described in 1901]]
['parent1'] = 'century', --[[Category:Beetles described in the 20th century]]
Line 99:
['Butterflies'] = { --"subgroup" to Insects
['yearminminyear'] = 1757, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Butterflies described in 1901]]
['parent1'] = 'century', --[[Category:Butterflies described in the 20th century]]
Line 201:
['Bacteria'] = { --"group"
['yearminminyear'] = 1753, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Bacteria described in 1901]]
['parent1'] = 'century', --[[Category:Bacteria described in the 20th century]]
Line 215:
['Fungi'] = { --"group"
['yearminminyear'] = 1753, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Fungi described in 1901]]
['parent1'] = 'century', --[[Category:Fungi described in the 20th century]]
Line 229:
['Plants'] = { --"group"
['yearminminyear'] = 1753, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Plants described in 1901]]
['parent1'] = 'century', --[[Category:Plants described in the 20th century]]
Line 245:
['Species'] = {
['yearminminyear'] = 1753, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Species described in 1901]]
['parent1'] = 'century', --[[Category:Species described in the 20th century]]
Line 264:
['Taxa'] = {
['yearminminyear'] = 1753, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Taxa described in 1901]]
['parent1'] = 'century', --[[Category:Taxa described in the 20th century]]
Line 280:
['Fossil taxa'] = {
['yearminminyear'] = 1753, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Fossil taxa described in 1901]]
['parent1'] = 'century', --[[Category:Fossil taxa described in the 20th century]]
Line 431:
local lastCent, nextCent = nil, nil --used with currYear & currCent
local parentDeca, parentCent = nil, nil --used with currYear & currDeca
local minYear = tonumber(conf[currGroup].yearminminyear)
if (minYear == nil or (minYear and minYear <= 1700)) then
minYear = 1758 --default to 1758 per ICZN Art. 5