Module:Age: Difference between revisions

5 bytes added ,  8 years ago
fix <span> anchor for error message
(restore new version: sorry, I forgot to update Template:Age in years and months last time)
(fix <span> anchor for error message)
Line 46: Line 46:
-- Return formatted message text for an error.
-- Return formatted message text for an error.
-- Can append "#FormattingError" to URL of a page with a problem to find it.
-- Can append "#FormattingError" to URL of a page with a problem to find it.
local anchor = '<span id="FormattingError" />'
local anchor = '<span id="FormattingError"></span>'
local category
local category
if not nocat and mw.title.getCurrentTitle():inNamespaces(0, 10) then
if not nocat and mw.title.getCurrentTitle():inNamespaces(0, 10) then
Anonymous user