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

Content deleted Content added
m Way more
m ws
Line 90:
local header = ' ' --header template(s), nav bar, and category description text; whitespace-initialized for convenience
local nav = nil
local commonsCatcommons = nil
local description = nil
local toc = nil
Line 123:
local currCommonsWiki = currEntity.sitelinks.commonswiki
if currCommonsWiki then
local commonsCatTitlecommonsTitle = currEntity.sitelinks.commonswiki.title
if commonsCatTitlecommonsTitle then
local args = { commonsCatTitlecommonsTitle }
commonsCatcommons = frame:expandTemplate{ title = 'Commons', args = args }
end
end
Line 242:
--TODO: test/see if a similar commons cat exists and, if so, include it in the header
if nav then header = nav end
if commonsCatcommons then header = header .. '<br />' .. commonsCatcommons end
if description and description ~= '' then header = header .. '<br />' .. description end
if toc then header = header .. '<br />' .. toc end