Module:Sandbox/Erutuon: Difference between revisions

Content deleted Content added
"scripts in block" function
leave off block name by default
Line 121:
errorf("No block '%s' could be found", block_name)
end
local show_block_name = frame.args[2] and require "Module:Yesno" (frame.args[2])
return ("%s: %s"):format(block_name, show_scripts(fun.range(low, high)))
if show_block_name then
return ("%s: %s"):format(block_name, show_scripts(fun.range(low, high)))
else
return ("%s"):format(block_name, show_scripts(fun.range(low, high)))
end
end