Module:Ntmp

local p = {}

function p.pre(frame) local ret = mw.html.create('pre') ret:wikitext('module:ntmp') return ret:done end

function p.null return nil end

function p.t(frame) local title = mw.title.getCurrentTitle local s = '' for _, c in ipairs(mw.text.split(title.text, '')) do       s = s .. '_ ' .. c .. ' '   end return frame:preprocess(s), ' ', title.text, ' ', mw.text.decode(title.text, true) end-- t

function p.m(frame) local args = frame.args or frame local a = frame:preprocess(args[1] or '*1') return frame:preprocess(' ' .. (a or ) .. ' '), #a, a == (args[1] or '*1') --(args.a1 or ) .. ' ' .. (args.a2 or '') .. ', ' .. (args[1] or '1') .. ', ' .. (args['1'] or '1') end

function p.max(frame) -- returns max of   local f = frame.getParent and frame:getParent or frame local args = f.args or f   local vmax = -1000000000 for _, v in pairs(args) do       v = tonumber(v) if v and v > vmax then vmax = v end end return vmax end

function p.min(frame) -- returns min of   local f = frame.getParent and frame:getParent or frame local args = f.args or f   local vmin = 1000000000 for _, v in pairs(args) do       v = tonumber(v) if v and v < vmin then vmin = v end end return vmin end return p