Module:Category described in year: Difference between revisions

Content deleted Content added
m config
m ce, from sandbox
Line 101:
local minYear = tonumber(conf[currGroup].minyear)
if minYear == nil or
(minYear and (minYear <= 1700 or minYear >= 2000))
then
minYear = 1758 --default to 1758 per ICZN Art. 5
end
Line 324 ⟶ 325:
end --if currCat then
--build header & rem surrounding whitespace
local br = '<br />'
local n = '\n'
if nav then header = nav end
if portal then header = header..'\n'..portal end
if commons then header = header..'\n'..commons end
if wikispecies then header = header..'\n'..wikispecies end
if description and description ~= '' then
header = header..description
elseif portal or commons or wikispecies then
header = mw.ustring.gsub(header, '<br ?/?>', '')
end
if toc then header = header..br..toc end
--rem surrounding whitespace
header = mw.text.trim(header)
header = mw.ustring.gsub(header, '^<br />'..br, '')
header = mw.ustring.gsub(header, '<br />..'$', '')
--append header to outString
Line 346 ⟶ 350:
--append cats to outString
if currentTitle.namespace == 14 then --category namespace
if table.maxn(categories) > 0 then
outString = outString..table.concat(categories)
end
outString = outString..table.concat(trackingCats)
else