Content deleted Content added
Tom.Reding (talk | contribs) m Rem <br> b/w nav & side box iif description dne, from sandbox |
Tom.Reding (talk | contribs) +Taxa tree ('biology' parent used instead, b/c it's more specific than 'science'); +'environment' parents to species-year & species-century cats; 'Taxa' don't belong in 'environment' b/c fossil taxa have no anthropocentric relevance, antithetical to the 'environment' cats' description |
||
Line 227:
['Species'] = {
['year'] = { --[[Category:Species described in 1901]]
['parent1'] = 'century', --[[Category:Species described in the 20th century]]
['sortkey1'] = ' ',
['parent2'] = 'Taxa', --[[Category:Taxa described in 1901]]
['
['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'] = "*'''[[Species]]''' of [[Biota (taxonomy)|biota]] described in the '''[[%century% century]]'''.", --taken from [[Category:Species described in the 19th century]] & [[Category:Species described in the 20th century]]
},
Line 241 ⟶ 243:
--[[===================== "Taxa described in"-level ======================]]
['Taxa'] = {
['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
},
},
}
Line 456 ⟶ 469:
if sortkey == nil then sortkey = currYear end --default to currYear
categories[iparent] = '[[Category:'..currGroup..' described in the '..addOrd(parentCent)..' century|'..sortkey..']]'
elseif parent == 'biology' then
if sortkey == nil then sortkey = '' end --default to none
categories[iparent] = '[[Category:'..year..' in biology|'..sortkey..']]'
elseif parent == 'environment' then
if sortkey == nil then sortkey = '' end --default to none
categories[iparent] = '[[Category:'..year..' in the environment|'..sortkey..']]'
elseif mw.ustring.match(parent, '^%u%l') then --e.g. Animals/Insects
if sortkey == nil then sortkey = '' --default to none
Line 491 ⟶ 510:
if sortkey == nil then sortkey = addOrd(currCent) end --default to currCent
categories[iparent] = '[[Category:'..currGroup..' by year of formal description|'..sortkey..']]'
elseif parent == 'biology' then
if sortkey == nil then sortkey = '' end --default to none
categories[iparent] = '[[Category:'..currCent..' in biology|'..sortkey..']]'
elseif parent == 'environment' then
if sortkey == nil then sortkey = '' end --default to none
categories[iparent] = '[[Category:'..currCent..' in the environment|'..sortkey..']]'
elseif mw.ustring.match(parent, '^%u%l') then --e.g. Animals/Insects
if sortkey == nil then sortkey = '' --default to none
|