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

Content deleted Content added
m No matter what maybe?
m Only rem ws when there is no description
Line 522:
--build header & rem surrounding whitespace
if nav then header = nav end
header = mw.ustring.gsub(header, '<br>', '')
if commons then header = header .. commons end
if wikispecies then header = header .. wikispecies end
if description and description ~= '' then header = header .. description end
header = header .. wikispeciesdescription
else
header = mw.ustring.gsub(header, '<br>', '')
end
if description and description ~= '' then header = header .. description end
if toc then header = header .. '<br />' .. toc end
header = mw.text.trim(header)