Module:Category described in year/sandbox: Difference between revisions

Content deleted Content added
m sync --ce/ws align
m Sync remainder, except old 'min'
Line 113:
currQID = mw.wikibase.getEntityIdForTitle('Category:' .. currCat)
else --currQID & currCat both nil
if currentTitle.fullText ~= 'Template:Category described in year' then --ignore self...
trackingCategories[2] = '[[Category:Described in year error|P]]' --missing a category parameter outside category-space
end
end
end
Line 153 ⟶ 155:
if currCat then
--determine current/related/adjacent cats' properties/vars/etc
local currGroup = mw.ustring.match(currCat, '^%w+') --Fish/Spiders/default/etc.
Line 267 ⟶ 270:
end --if currYDC then
--check for non-existent cats
for _, category in pairs(categories) do
local cat = mw.ustring.match(category, '%[%[Category:([%w%s]+)')
Line 274 ⟶ 278:
end
end
end
Line 282 ⟶ 287:
if toc then header = header .. '<br />' .. toc end
header = mw.text.trim(header)
header = mw.ustring.gsub(header, '^%<br />', '')
header = mw.ustring.gsub(header, '%<br />$', '')
--append header to outString