Module:Uniform map: Difference between revisions

Trying to make the call to map template work
The expandTemplate trick won't work with a separate _ function it seems
Line 101: Line 101:
function p.print_table(frame)
function p.print_table(frame)
local args = getArgs(frame)
local args = getArgs(frame)
return p._print_table(args[1], args[2], args[3])
local prime = args[1]
end
local min = args[2]
 
local max = args[3]
function p._print_table(prime, min, max)
if u.index_of(p.primes, u.eval_num_arg(prime, 5)) == nil then
if u.index_of(p.primes, u.eval_num_arg(prime, 5)) == nil then
prime = 5                          -- Default to 5-limit
prime = 5                          -- Default to 5-limit