Content deleted Content added
Tom.Reding (talk | contribs) m --Add to Taxa todo |
Tom.Reding (talk | contribs) Add WIkispecies link detection, for use in {{Wikispecies|...}}, from sandbox |
||
Line 264:
local header = ' ' --header template(s), nav bar, and category description text; whitespace-initialized for convenience
local nav = nil
local commons = nil --for {{Commons|...}}
local wikispecies = nil --for {{Wikispecies|...}}
local description = nil
local toc = nil
Line 294 ⟶ 295:
end
--find commons & wikispecies link(s)
if currQID then
local commonsLinks = {}
Line 315 ⟶ 316:
end
end
--check "Other sites"
local currSiteLinks = currEntity.sitelinks
if currSiteLinks then
Line 323 ⟶ 324:
if currCommonsWikiTitle then
commonsLinks[#commonsLinks + 1] = currCommonsWikiTitle
end
end
local currSpeciesWiki = currEntity.sitelinks.specieswiki
if currSpeciesWiki then
local currSpeciesWikiTitle = currSpeciesWiki.title
if currSpeciesWikiTitle then
wikispecies = frame:expandTemplate{ title = 'Wikispecies', args = { currSpeciesWikiTitle } }
end
end
Line 359 ⟶ 367:
local lastCent, nextCent = nil, nil --used with currYear & currCent
local minYear = tonumber(conf[currGroup].yearmin)
if
minYear = 1758 --default to 1758 per ICZN Art. 5
end
Line 515 ⟶ 523:
if nav then header = nav end
if commons then header = header .. commons end
if wikispecies then header = header .. wikispecies end
if description and description ~= '' then header = header .. description end
if toc then header = header .. '<br />' .. toc end
|