Jump to content

Module:Category described in year/config

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Tom.Reding (talk | contribs) at 05:04, 21 January 2019 (Create separate conf module from the main, for ease of editing both). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local p = {}

--[[==========================================================================]]
--[[                      Case sensitive conf/map table                       ]]
--[[==========================================================================]]
p.conf = {
--[[============================================================================
	
	Any category group (e.g. Bacteria/Plants/etc.) NOT explicitly outlined here 
	in conf{} will follow the 'Default' tree for that group when the template is 
	used on that cateogry.
	
	The default-style category tree is:
		year -> century -> formal
		year -> Animals:year -> Animals:century
	Decadal categories are discouraged.
	
	To create a new tree, only if necessarily different from the default, copy 
	an existing tree and paste it in an appropriate spot in the conf{} table, 
	following the same general table format, and updating any group-specific 
	variables.
	
    ============================================================================]]-- 
	
	['tocmin'] = 401, --integer; minimum category size to add {{Category TOC}}
	
	['Default'] = { --"group" (Animals only; used for: Amphibians/Birds/Crustaceans/Fish/Mammals/Molluscs/Reptiles/Sponges)
		['minyear'] = 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
			['parent2'] = 'Animals', --[[Category:Animals described in 1901]]
			['description'] = 'This category should only contain articles on [[species]] and notable [[subspecies]].', --adapted from [[Category:Species described in the 18th century]] & [[Category:Species described in the 21st century]]
		},
		['century'] = {              --[[Category:Birds described in the 20th century]]
			['parent1'] = 'formal',  --[[Category:Birds by year of formal description]]
			['parent2'] = 'Animals', --[[Category:Animals described in the 20th century]]
			['description'] = '',    --Century description tbd; container category, etc...
		},
		['formal'] = {               --[[Category:Birds by year of formal description]]
			['parent1'] = 'Group',   --[[Category:Birds]]
			['parent2'] = 'Animals', --[[Category:Animals by year of formal description]]
			['description'] = '',    --Formal description tbd; container category, etc...
		},
	},
	
	['Animals'] = { --"group"
		['minyear'] = 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]]
			['parent2'] = 'Species', --[[Category:Species described in 1901]]
			['description'] = '',    --Year description tbd; *not* a container cat
		},
		['century'] = {              --[[Category:Animals described in the 20th century]]
			['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...
		},
	},
	
	['Spiders'] = { --"group"; ICZN allows names in Clerck's Aranei Svecici of 1757, earliest date used in World Spider Catalog
		['minyear'] = 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]]
			['parent2'] = 'Animals', --[[Category:Animals described in 1901]]
			['description'] = '',    --Year description tbd; Default-group's description doesn't apply
		},
		['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...
		},
		['formal'] = {               --[[Category:Spiders by year of formal description]]
			['parent1'] = 'Group',   --[[Category:Spiders]]
			['parent2'] = 'Animals', --[[Category:Animals by year of formal description]]
			['description'] = 'This category serves only to [[WP:DIFFUSE|diffuse]] the lower level "Spiders described in YEAR" categories, thus reducing their size.',
		},
	},
	
	--[[============================ Insects tree ============================]]
	
	['Insects'] = { --"group"
		['minyear'] = 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]]
			['parent2'] = 'Animals', --[[Category:Animals described in 1901]]
			['description'] = '',    --Year description tbd; Default-group's description doesn't apply
		},
		['century'] = {              --[[Category:Insects described in the 20th century]]
			['parent1'] = 'formal',  --[[Category:Insects by year of formal description]]
			['parent2'] = 'Animals', --[[Category:Animals described in the 20th century]]
			['description'] = '',    --Century description tbd; container category, etc...
		},
	},
	
	['Beetles'] = { --"subgroup" to Insects
		['minyear'] = 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]]
			['parent2'] = 'Insects', --[[Category:Insects described in 1901]]
			['description'] = '',    --Year description tbd; 'This category should only contain species articles', etc...
		},
		['century'] = {              --[[Category:Beetles described in the 20th century]]
			['parent1'] = 'formal',  --[[Category:Beetles by year of formal description]]
			['parent2'] = 'Insects', --[[Category:Insects described in the 20th century]]
			['sortkey2'] = '*', 
			['description'] = '',    --Century description tbd; container category, etc...
		},
	},
	
	['Butterflies'] = { --"subgroup" to Insects
		['minyear'] = 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]]
			['parent2'] = 'Insects', --[[Category:Insects described in 1901]]
			['description'] = '',    --Year description tbd; 'This category should only contain species articles', etc...
		},
		['century'] = {              --[[Category:Butterflies described in the 20th century]]
			['parent1'] = 'formal',  --[[Category:Butterflies by year of formal description]]
			['parent2'] = 'Insects', --[[Category:Insects described in the 20th century]]
			['sortkey2'] = '*', 
			['description'] = '',    --Century description tbd; container category, etc...
		},
	},
	
	['Moths'] = { --"subgroup" to Insects
		['year'] = {                 --[[Category:Moths described in 1901]]
			['parent1'] = 'century', --[[Category:Moths described in the 20th century]]
			['parent2'] = 'Insects', --[[Category:Insects described in 1901]]
			['description'] = '',    --Year description tbd; 'This category should only contain species articles', etc...
		},
		['century'] = {              --[[Category:Moths described in the 20th century]]
			['parent1'] = 'formal',  --[[Category:Moths by year of formal description]]
			['parent2'] = 'Insects', --[[Category:Insects described in the 20th century]]
			['sortkey2'] = '*', 
			['description'] = '',    --Century description tbd; container category, etc...
		},
	},
	
	--[[=========================== Molluscs tree ============================]]
	
	['Bivalves'] = { --"subgroup" to Molluscs
		['year'] = {                  --[[Category:Bivalves described in 1901]]
			['parent1'] = 'century',  --[[Category:Bivalves described in the 20th century]]
			['parent2'] = 'Molluscs', --[[Category:Molluscs described in 1901]]
			['description'] = '',     --Year description tbd; 'This category should only contain species articles', etc...
		},
		['century'] = {               --[[Category:Bivalves described in the 20th century]]
			['parent1'] = 'formal',   --[[Category:Bivalves by year of formal description]]
			['parent2'] = 'Molluscs', --[[Category:Molluscs described in the 20th century]]
			['sortkey2'] = '*', 
			['description'] = '',     --Century description tbd; container category, etc...
		},
	},
	
	['Cephalopods'] = { --"subgroup" to Molluscs
		['year'] = {                  --[[Category:Cephalopods described in 1901]]
			['parent1'] = 'century',  --[[Category:Cephalopods described in the 20th century]]
			['parent2'] = 'Molluscs', --[[Category:Molluscs described in 1901]]
			['description'] = '',     --Year description tbd; 'This category should only contain species articles', etc...
		},
		['century'] = {               --[[Category:Cephalopods described in the 20th century]]
			['parent1'] = 'formal',   --[[Category:Cephalopods by year of formal description]]
			['parent2'] = 'Molluscs', --[[Category:Molluscs described in the 20th century]]
			['sortkey2'] = '*', 
			['description'] = '',     --Century description tbd; container category, etc...
		},
	},
	
	['Chitons'] = { --"subgroup" to Molluscs
		['year'] = {                  --[[Category:Chitons described in 1901]]
			['parent1'] = 'century',  --[[Category:Chitons described in the 20th century]]
			['parent2'] = 'Molluscs', --[[Category:Molluscs described in 1901]]
			['description'] = '',     --Year description tbd; 'This category should only contain species articles', etc...
		},
		['century'] = {               --[[Category:Chitons described in the 20th century]]
			['parent1'] = 'formal',   --[[Category:Chitons by year of formal description]]
			['parent2'] = 'Molluscs', --[[Category:Molluscs described in the 20th century]]
			['sortkey2'] = '*', 
			['description'] = '',     --Century description tbd; container category, etc...
		},
	},
	
	['Gastropods'] = { --"subgroup" to Molluscs
		['year'] = {                  --[[Category:Gastropods described in 1901]]
			['parent1'] = 'century',  --[[Category:Gastropods described in the 20th century]]
			['parent2'] = 'Molluscs', --[[Category:Molluscs described in 1901]]
			['description'] = '',     --Year description tbd; 'This category should only contain species articles', etc...
		},
		['century'] = {               --[[Category:Gastropods described in the 20th century]]
			['parent1'] = 'formal',   --[[Category:Gastropods by year of formal description]]
			['parent2'] = 'Molluscs', --[[Category:Molluscs described in the 20th century]]
			['sortkey2'] = '*', 
			['description'] = '',     --Century description tbd; container category, etc...
		},
	},
	
	--[[============================= Non-animals ============================]]
	
	['Archaea'] = { --"group"
		['year'] = {                 --[[Category:Archaea described in 1901]]
			['parent1'] = 'century', --[[Category:Archaea described in the 20th century]]
			['parent2'] = 'Species', --[[Category:Species described in 1901]]
			['description'] = '',    --Year description tbd; 'This category should only contain species articles', etc...
		},
		['century'] = {              --[[Category:Archaea described in the 20th century]]
			['parent1'] = 'formal',  --[[Category:Archaea by year of formal description]]
			['parent2'] = 'Species', --[[Category:Species described in the 20th century]]
			['description'] = '',    --Century description tbd; container category, etc...
		},
	},
	
	['Bacteria'] = { --"group"
		['minyear'] = 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]]
			['parent2'] = 'Species', --[[Category:Species described in 1901]]
			['description'] = '',    --Year description tbd; 'This category should only contain species articles', etc...
		},
		['century'] = {              --[[Category:Bacteria described in the 20th century]]
			['parent1'] = 'formal',  --[[Category:Bacteria by year of formal description]]
			['parent2'] = 'Species', --[[Category:Species described in the 20th century]]
			['description'] = '',    --Century description tbd; container category, etc...
		},
	},
	
	['Fungi'] = { --"group"
		['minyear'] = 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]]
			['parent2'] = 'Species', --[[Category:Species described in 1901]]
			['description'] = '',    --Year description tbd; 'This category should only contain species articles', etc...
		},
		['century'] = {              --[[Category:Fungi described in the 20th century]]
			['parent1'] = 'formal',  --[[Category:Fungi by year of formal description]]
			['parent2'] = 'Species', --[[Category:Species described in the 20th century]]
			['description'] = '',    --Century description tbd; container category, etc...
		},
	},
	
	['Plants'] = { --"group"
		['minyear'] = 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]]
			['parent2'] = 'Species', --[[Category:Species described in 1901]]
			['description'] = "This category includes plants that were ''first formally and validly described'' in %year% according to the rules of the [[International Code of Botanical Nomenclature]]. Use [[WP:RS|reliable sources]] like the [[International Plant Names Index]] to figure out the proper category. For examples see the [[Wikipedia:WikiProject Plants/Description in year categories|WikiProject Plants essay]] on this topic.", --taken from [[Category:Plants described in 1928]]
		},
		['century'] = {              --[[Category:Plants described in the 20th century]]
			['parent1'] = 'formal',  --[[Category:Plants by year of formal description]]
			['parent2'] = 'Species', --[[Category:Species described in the 20th century]]
			['description'] = 'For advice on using the subcategories of this category, see [[Wikipedia:WikiProject Plants/Description in year categories]].', --taken from [[Category:Plants described in the 21st century]]
		},
	},
	
	--[[==================== "Species described in"-level ====================]]
	
	['Species'] = {
		['minyear'] = 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]]
			['sortkey1'] = ' ',
			['parent2'] = 'Taxa',        --[[Category:Taxa described in 1901]]
			['parent3'] = 'environment', --[[Category:1901 in the environment]]
			['description'] = '',        --Year description tbd
		},
		['century'] = {                  --[[Category:Species described in the 20th century]]
			['parent1'] = 'formal',      --[[Category:Species by year of formal description]]
			['parent2'] = 'Taxa',        --[[Category:Taxa described in the 20th century]]
			['parent3'] = 'environment', --[[Category:20th century in the environment]]
			['description'] = "This category should only contain '''[[species]]''' and notable [[subspecies]] of [[Biota (taxonomy)|biota]] described in the '''[[%century% century]]'''.", --adapted from all 4 Species-century cats (18th-21st)
		},
	},
	
	--[[===================== "Taxa described in"-level ======================]]
	
	['Taxa'] = {
		['minyear'] = 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]]
			['parent2'] = 'biology', --[[Category:1901 in biology]]
			['description'] = '',    --Year description tbd
		},
		['century'] = {              --[[Category:Taxa described in the 20th century]]
			['parent1'] = 'formal',  --[[Category:Taxa by year of formal description]]
			['parent2'] = 'biology', --[[Category:20th century in biology]]
			['description'] = '',    --Century description tbd
		},
	},
	
	--[[==================== "Fossil taxa described in"-level ====================]]
	
	['Fossil taxa'] = {
		['minyear'] = 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]]
			['sortkey1'] = ' ',
			['parent2'] = 'Taxa',         --[[Category:Taxa described in 1901]]
			['parent3'] = 'paleontology', --[[Category:1901 in paleontology]]
			['description'] = 'This category should only contain articles on fossil [[genus|genera]] or lower.',
		},
		['century'] = {                   --[[Category:Fossil taxa described in the 20th century]]
			['parent1'] = 'formal',       --[[Category:Fossil taxa by year of formal description]]
			['parent2'] = 'Taxa',         --[[Category:Taxa described in the 20th century]]
			['parent3'] = 'paleontology', --[[Category:20th century in paleontology]]
			['description'] = '',         --Century description tbd
		},
	},
	
}

return p