Module:MD5: Difference between revisions
Johnrdorazio (talk | contribs) Created page with "local p = {} local getArgs = require('Module:Arguments').getArgs function p.main(frame) local args = getArgs(frame, { --we will only consider arguments that are pass..." |
Johnrdorazio (talk | contribs) No edit summary |
(One intermediate revision by the same user not shown) | |
(No difference)
|
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