Jump to content

Module:MD5: Difference between revisions

From Seeds of the Word, the encyclopedia of the influence of the Gospel on culture
Content deleted Content added
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..."
(No difference)

Revision as of 00:29, 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