Content deleted Content added
Tom.Reding (talk | contribs) m Replace-all bad |
Tom.Reding (talk | contribs) Default to none for Animal parents |
||
Line 322:
nav = frame:expandTemplate{ title = 'Navseasoncats', args = args }
end
if sortkey == nil then sortkey = currYear end --default to currYear▼
if parent == 'decade' then
▲ if sortkey == nil then sortkey = currYear end --default to currYear
categories[iparent] = '[[Category:'..currGroup..' described in the '..parentDeca..'s|'..sortkey..']]'
elseif parent == 'century' then
categories[iparent] = '[[Category:'..currGroup..' described in the '..addOrd(parentCent)..' century|'..sortkey..']]'
elseif mw.ustring.match(parent, '^%u%l') then --e.g. Animals/Insects
categories[iparent] = '[[Category:'..parent..' described in '..currYear..']]'▼
else sortkey = '|'..sortkey end
▲ categories[iparent] = '[[Category:'..parent..' described in '..currYear..sortkey..']]'
else
trackingCategories[2] = '[[Category:Described in year error|Y]]' --invalid year-parent
Line 339 ⟶ 342:
nav = frame:expandTemplate{ title = 'Category by decade', args = args }
end
▲ if sortkey == nil then sortkey = currDeca end --default to currDeca
if parent == 'century' then
if sortkey == nil then sortkey = currDeca end --default to currDeca
categories[iparent] = '[[Category:'..currGroup..' described in the '..addOrd(parentCent)..' century|'..sortkey..']]'
elseif mw.ustring.match(parent, '^%u%l') then --e.g. Animals/Insects
if sortkey == nil then sortkey = '' --default to none
categories[iparent] = '[[Category:'..parent..' described in the '..currDeca..'s]]'▼
else sortkey = '|'..sortkey end
▲ categories[iparent] = '[[Category:'..parent..' described in the '..currDeca..'s'..sortkey..']]'
else
trackingCategories[2] = '[[Category:Described in year error|D]]' --invalid decade-parent
Line 355 ⟶ 360:
nav = nav .. frame:expandTemplate{ title = 'Category pair', args = args }
end
▲ if sortkey == nil then sortkey = addOrd(currCent) end --default to currCent
if parent == 'formal' then
if sortkey == nil then sortkey = addOrd(currCent) end --default to currCent
categories[iparent] = '[[Category:'..currGroup..' by year of formal description|'..sortkey..']]'
elseif mw.ustring.match(parent, '^%u%l') then --e.g. Animals/Insects
if sortkey == nil then sortkey = '' --default to none
categories[iparent] = '[[Category:'..parent..' described in the '..addOrd(currCent)..' century]]'▼
else sortkey = '|'..sortkey end
▲ categories[iparent] = '[[Category:'..parent..' described in the '..addOrd(currCent)..' century'..sortkey..']]'
else
trackingCategories[2] = '[[Category:Described in year error|C]]' --invalid century-parent
|