Module:Sandbox/Gpmat/test2 explained

local p = local t = ""local mod1 = require "Module:Sandbox/Gpmat/test"

local max = mw.loadData('Module:Sandbox/Gpmat/test/max')local gare = mw.loadData('Module:Sandbox/Gpmat/test/gare')

function p.vuote(frame)

local anno = tonumber(frame.args[1])local ritiro = tonumber(frame.args[2])local str

if ritiro

nil thenritiro = 0end

if max[ritiro]-gare[anno] ~= 0 thenstr = "||width=3%| "for i=2,(max[ritiro]-gare[anno]) do str = str .. "||width=3%| "endend

return str

end

function p.celle(frame)local anno = tonumber(frame.args[1])

local input = local input2 = col = mod1.main(input)res = mod1.render(input2)t = "|width=3% " .. col .. "| " .. res

for i=4,(gare[anno]*2+1),2 do if frame.args[i] ~= nil then j=i+1 res = frame.args[i] input = input2 = col = mod1.main(input) res = mod1.render(input2) t = t .. "||width=3% " .. col .. "| " .. res else t = t .. "||width=3%| " end endreturn tend

return p