मॉड्यूल:superseded spelling of
दिखावट
- इस module को विवरणउपपृष्ठ की आवश्यकता है। कृपया निर्मित करें।
- उपयोगी कड़ियाँ: उपपृष्ठ सूची • कड़ियाँ • ट्रांसक्लूजन • testcases • sandbox
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