Module:Param Parse: Difference between revisions

Escape all the things
(Linked and correctly ordered dates)
(Escape all the things)
Line 177:
return nil
end
local formatted_date = os.date('%[%[%d %B%]%] %[%[%Y%]%]', time) -- [[01 January]] [[2024]]
formatted_date = string.gsub(formatted_date, '%[%[0', '%[%[') -- Convert [[01 January]] [[2024]] to [[1 January]] [[2024]]
return formatted_date
end