Documentation for this module may be created at ಮಾಡ್ಯೂಲ್:Makeid/doc
require('strict')
local p = {}
local getArgs = require('Module:Arguments').getArgs
function p._makeid(args)
local id_text = args[1]
if not id_text or id_text == '' then
return ''
end
local blank_values = {}
for k, v in pairs(args) do
if string.match(k, '^blank%d*$') then
blank_values[v] = true
end
end
if blank_values[id_text] then
return ''
else
return 'id=\"' .. mw.uri.anchorEncode(id_text) .. '\"'
end
end
function p.makeid(frame)
return p._makeid(getArgs(frame))
end
return p