Module:Category described in year: Difference between revisions

Content deleted Content added
m I mean century-level
m Replace-all bad
Line 328:
categories[iparent] = '[[Category:'..currGroup..' described in the '..addOrd(parentCent)..' century|'..sortkey..']]'
elseif mw.ustring.match(parent, '^%u%l') then --e.g. Animals
categories[iparent] = '[[Category:'..parent..' described in '..sortkeycurrYear..']]'
else
trackingCategories[2] = '[[Category:Described in year error|Y]]' --invalid year-parent
Line 343:
categories[iparent] = '[[Category:'..currGroup..' described in the '..addOrd(parentCent)..' century|'..sortkey..']]'
elseif mw.ustring.match(parent, '^%u%l') then --e.g. Animals
categories[iparent] = '[[Category:'..parent..' described in the '..sortkeycurrDeca..'s]]'
else
trackingCategories[2] = '[[Category:Described in year error|D]]' --invalid decade-parent
Line 359:
categories[iparent] = '[[Category:'..currGroup..' by year of formal description|'..sortkey..']]'
elseif mw.ustring.match(parent, '^%u%l') then --e.g. Animals
categories[iparent] = '[[Category:'..parent..' described in the '..sortkeyaddOrd(currCent)..' century]]'
else
trackingCategories[2] = '[[Category:Described in year error|C]]' --invalid century-parent