Content deleted Content added
Tom.Reding (talk | contribs) m +Pseudo-log of cats using the Default tree |
Tom.Reding (talk | contribs) Let Spiders tree be handled by Default tree (yearmin is now largely unnecessary due to {{Navseasoncats}} use instead of {{Category in year}}; yearmin to be phased out towards end of category standardization, along with decade support) |
||
Line 5:
--[[============================================================================
Any category group (e.g.
in conf{} will follow the 'Default' tree for that group when the template is
used on that cateogry.
Line 20:
['tocmin'] = 401, --integer; minimum category size to add {{Category TOC}}
['Default'] = { --"group" (e.g. Amphibians/Birds/Crustaceans/Fish/Mammals/Molluscs/Reptiles/Spiders)
['yearmin'] = 1758, --integer; lowest possible year displayed in nav bars; 0/nil defaults to 1758 per ICZN Art. 5
['year'] = { --[[Category:Birds described in 1901]]
Line 44:
['parent1'] = 'formal', --[[Category:Animals by year of formal description]]
['parent2'] = 'Species', --[[Category:Species described in the 20th century]]
['description'] = '', --Century description tbd; container category, etc...
},
Line 243 ⟶ 229:
--determine current/related/adjacent cats' properties/vars/etc.
local currGroup = mw.ustring.match(currCat, '^%w+') --
if conf[currGroup] == nil then conf[currGroup] = conf['Default'] end --default to Default
local currYDC = nil --possible future values: year/decade/century
Line 285 ⟶ 271:
if conf[currGroup] == nil then
bConfError = true
trackingCategories[2] = '[[Category:Described in year error|1]]' --group (
elseif conf[currGroup][currYDC] == nil then
bConfError = true
|