Module:Category described in year: Difference between revisions

Content deleted Content added
m Undid revision 840835810 by Tom.Reding (talk) Not as useful as I had hoped
m Rem unnecessary <br />, from sandbox
Line 87:
local currGroup = mw.ustring.match(currCat, '^%w+') --Fish/Spiders/default/etc.
if map[currGroup] == nil then map[currGroup] = map['Fish'] end --'Fish' == default
local currYDC = nil --placeholder for year/decade/century
local currYear = mw.ustring.match(currCat, 'in (%d%d%d%d)$')
local currDeca = mw.ustring.match(currCat, 'the (%d%d%d%d)s$')
Line 173:
--produce header
if nav then header = nav end
if description and description ~= '' then header = header .. '<br />' .. description end
header = mw.text.trim(header)