Module:Sandbox

-- This is a sandbox for testing lua scripts. -- See Extension:Scribunto for more information.

local p = {} function p.f(frame) t={} for n,v in frame:argumentPairs do t = {t,n=v} end t = table.sort (t) r = '{|class="wikitable sortable"\n!name!!value\n' fori=1,5 do r = r..'|-\n|'..t.i.n..'||'..t.i.v..'\n' end r=r..'|}' return r end return p