Module:Policy

local Policy = {} local policyData = mw.loadData ('Module:Policy/Offenses')

local definitionData = mw.loadData ('Module:Policy/Definitions') function Policy.offense(frame) local ipolicy = frame.args[1] or frame.args["ipolicy"] local opolicy = string.lower(ipolicy) opolicy2 = policyData[opolicy] or "" return opolicy2 end

function Policy.definition(frame) local idefinition = frame.args[1] or frame.args["idefinition"] local odefinition = string.lower(idefinition) odefinition2 = definitionData[odefinition] or "" return odefinition2 end --