Module:Repeat symbols
Appearance
local p = {}
function p.repeat_arg_2_3_from_arg_1 ( frame )
num_1 = frame.args[1] ;
str_1 = frame.args[2] ;
str_2 = frame.args[3] ;
-- assert(type(num_1) == "number", "function repeat_arg_2_3_from_arg_1 expects a number for first argument") ;
mod10 = num_1 % 10 ;
div10 = math.floor (num_1/10) ;
return a .. '|' .. div10 .. '|' .. mod10 .. '<br>' .. string.rep(str_1,div10) .. ' - ' .. string.rep(str_2,mod10) ;
end
return p