Module:UIText

--Get Required Modules local getArgs = require('Module:Arguments').getArgs local string = require('Module:String') local table = require('Module:Table') local lu = require('Module:LibraryUtil') local yesno = require('Module:Yesno') local checkType, checkType, setRequiredArgs, customArgError = unpack{ lu.checkType, lu.checkType, lu.setRequiredArgs, lu.customArgError, } --Begin Exports local p = {}

- -- Temlate: UIText -- -- Makes making UI's alot easier - function p.main(frame) local args = getArgs(frame) local val = args[1] or args["t"] or args["text"]

return string.pcall(p._main, val) end - -- Template: UIText Module access point - function p._main(val) checkType('_main', 1, val, 'string') return val :gsub('/', '\\/') :gsub('\n', '/') end --Finish Module/Exports return p