Module:Sandbox/Cyborg Coder/Dates: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 29:
local date = frame.args.text or mw.text.trim(frame.args[1] or "")
date = " " .. date
local dformat = frame.args.format or default"none"
if date == "" then date = "No date" end
--local d, y = date:match("(%d+)%D+(%d+)")
local d = date:match("%D([1-3]%d%d)%D")
local y = date:match("(%d%d%d+)")
local mnth = date:match("%a+") or ""