मॉड्यूल:superseded spelling of
दिखावट
इस मॉड्यूल हेतु प्रलेख मॉड्यूल:superseded spelling of/doc पर बनाया जा सकता है
local export = {}
function export.parse_use_param(frame)
local use = frame.args[1] or ""
if use == "" then
error("1= must be supplied to specify the value of the use= param")
end
local before = use:match("^<([0-9]+)$")
if before then
return ", which was deprecated in " .. before
end
local before = use:match("^<(.*)c$")
if before then
return ", which was used until the " .. before .. " century"
end
local from, to = mw.ustring.match(use, "^([0-9]+)[:%-–—]([0-9]+)$")
if from then
return (", which was introduced in %s and deprecated in %s"):format(from, to)
end
error("Unrecognized format for use=" .. use .. " param")
end
return export