Module:Category described in year: Difference between revisions

Content deleted Content added
+Butterflies subtree (starting from deepest cats and working up) (Category:Lepidoptera described in 1758-type cats replaced with Category:Insects described in 1758-type cats, and Category:Butterflies by year of formal description parent removed from year-level cats, per discussions at WT:INSECTS & WT:TREE, respectively)
m -{{Category in year}} option (no issues after a week); --/{table} ce
Line 48:
},
['Spiders'] = { --"group"
--[[=========================== Insect subtree ===========================]]
['yearmin'] = 1757, --integer; lowest possible year (and thus decade) 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]]
['parent2'] = 'Animals', --[[Category:Animals described in 1901]]
['description'] = '', --Year description tbd; 'This category should only contain species articles', etc...
},
['century'] = { --[[Category:Spiders described in the 20th century]]
['parent1'] = 'formal', --[[Category:Spiders by year of formal description]]
['parent2'] = 'Animals', --[[Category:Animals described in the 20th century]]
['description'] = '', --Century description tbd; container category, etc...
},
},
--[[============================ InsectInsects subtreetree ============================]]
['Butterflies'] = { --"subgroup" to insectsInsects
['yearmin'] = 1758, --integer; lowest possible year (and thus decade) displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Butterflies described in 1901]]
Line 60 ⟶ 74:
['parent1'] = 'formal', --[[Category:Butterflies by year of formal description]]
['parent2'] = 'Insects', --[[Category:Insects described in the 20th century]]
['description'] = '', --Century description tbd; container category, etc...
},
},
--[[======================================================================]]
['Spiders'] = { --"group"
['yearmin'] = 1757, --integer; lowest possible year (and thus decade) 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]]
['parent2'] = 'Animals', --[[Category:Animals described in 1901]]
['description'] = '', --Year description tbd; 'This category should only contain species articles', etc...
},
['century'] = { --[[Category:Spiders described in the 20th century]]
['parent1'] = 'formal', --[[Category:Spiders by year of formal description]]
['parent2'] = 'Animals', --[[Category:Animals described in the 20th century]]
['description'] = '', --Century description tbd; container category, etc...
},
Line 303 ⟶ 301:
if currYDC == 'year' then
if nav == nil then
--{{Category in year}} option
--local args = { year = currYear, min = minYear, cat = currGroup .. ' described in' }
--nav = frame:expandTemplate{ title = 'Category in year', args = args }
--{{Navseasoncats}} option
local args = { linkcatifexists2 = 'yes' }
nav = frame:expandTemplate{ title = 'Navseasoncats', args = args }