Content deleted Content added
Tom.Reding (talk | contribs) +Fossil taxa tree |
Tom.Reding (talk | contribs) +{{Portal|Paleontology}} for Fossil taxa cats |
||
Line 300:
local header = ' ' --header template(s), nav bar, and category description text; whitespace-initialized for convenience
local nav = nil
local portal = nil --for {{Portal|...}}
local commons = nil --for {{Commons|...}}
local wikispecies = nil --for {{Wikispecies|...}}
Line 451 ⟶ 452:
end
--produce
if bConfError == false then
--portal
if currGroup == 'Fossil taxa' then
portal = frame:expandTemplate{ title = 'Portal', args = { 'Paleontology' } }
end
--description
description = conf[currGroup][currYDC].description
if mw.ustring.match(description, '%%year%%') then
Line 466 ⟶ 473:
else description = mw.ustring.gsub(description, '%%century%%', 'this century') end
end
--toc
if mw.site.stats.pagesInCategory(currCat, 'pages') >= conf['tocmin'] then --expensive
local args = { numerals = 'no' }
Line 582 ⟶ 591:
--build header & rem surrounding whitespace
if nav then header = nav end
if portal then header = header .. portal end
if commons then header = header .. commons end
if wikispecies then header = header .. wikispecies end
if description and description ~= '' then
header = header .. description
elseif portal or commons or wikispecies then
header = mw.ustring.gsub(header, '<br ?/?>', '')
end
|