local url = require('Module:URL')._urllocal getArgs = require('Module:Arguments').getArgslocal buffer = require("Module:Buffer")('
\" is an overused example phrase.")end local function makeInvokeFunc(funcName) -- An invoke function to permit multiple functions with different arguments return function(frame) local args = getArgs(frame) return p[funcName](args) endend-- End of invoke function function p._func1(args) -- Code for the first function goes here. --local mathtable = return function(t1=tonumber(exp1), t2=tonumber(exp2)) local i=0 repeat block i = i + 1 end until i=(t2-t1) return mathtable end --end function p._func2(args) -- Code for the second function goes here.end -- Define invokable functions:p.url = p.main-- p.math = makeInvokeFunc('_func1') -- DECENSOR THIS LINE AFTER p._func1(args) IS COMPLETE-- p.sequence = makeInvokeFunc('_func2') -- DECENSOR THIS LINE AFTER p._func2(args) IS COMPLETE -- End of script return p |
---|