Module:MD5: Difference between revisions
Content deleted Content added
Johnrdorazio (talk | contribs) No edit summary |
Johnrdorazio (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
function p.main(frame) |
function p.main(frame) |
||
local args = getArgs(frame |
local args = getArgs(frame, { |
||
--we will only consider arguments that are passed by the template itself in the invoke |
|||
frameOnly = true |
|||
}) |
|||
-- let's make sure defaults are set |
-- let's make sure defaults are set |
||
args.value = args.value or "" |
args.value = args.value or "" |
Latest revision as of 00:37, September 10, 2020
Documentation for this module may be created at Module:MD5/doc
local p = {}
local getArgs = require('Module:Arguments').getArgs
function p.main(frame)
local args = getArgs(frame, {
--we will only consider arguments that are passed by the template itself in the invoke
frameOnly = true
})
-- let's make sure defaults are set
args.value = args.value or ""
return mw.hash.hashValue('md5',args.value)
end
return p