Module:Article history/config: Difference between revisions

Content deleted Content added
fix problem with the data for the Main Page date being returned too early for templates with no "maindate" parameter
fix spurious bullet and track in Category:Pages using article history with a spurious bullet, please revert and let me know if this causes problems
Line 1,877:
ctext[#ctext + 1] = string.format(
"The text of the entry was: ''Did you know %s''",
mw.ustring.gsub(data[1].entry, '^%s*%*%s*', '[[Category:Pages using article history with a spurious bullet]]')
data[1].entry
)
else
Line 1,883:
local lastEntryDate
for i, t in ipairs(data) do
entries[#entries + 1] = mw.ustring.gsub(t.entry, '^%s*%*%s*', '[[Category:Pages using article history with a spurious bullet]]')
lastEntryDate = t.date
end