Jump to content

Module:FillDate

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Novem Linguae (talk | contribs) at 15:09, 11 April 2024 (create). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

-- Requested by [[User:Sdkb]]

-- Handles these 3 cases:
--     "2023" → "1 January 2023"
--     "March 2023" → "1 March 2023"
--     "14 March 2023" → "14 March 2023"

local p = {}

-- {{#invoke:FillDate|getDomain|{{{1|}}}}}
function p.fillDate(frame)
    local str = frame.args[1]
    return str
end

return p