Welcome to my module sandbox.
This is a sandbox that can be used to test module-related things.
Since it is a sandbox, do not invoke it outside of sandboxes, nor should it be edited by other users.
[view | edit | history | purge]The above documentation is transcluded from Module:Blobs2/Sandbox/doc.
local p={}
p.table=function(f)
local args=f.args
local chart={'{|style="line-height:0"\n!+'..args.type}
local switch={['left']='right',['right']='left',['top']='bottom',['bottom']='top',['width']='height',['height']='width'}
local types={['left']='width',['right']='width',['top']='height',['bottom']='height'}
for offset=1,32 do
table.insert(chart,tostring(offset)..'\n|<span style="padding-'..switch[args.type]..':'..tostring(offset-1)..'px"><span style=border:1px solid #000;'..types[args.type]..':'..tostring(32-offset)..'px;'..switch[types[args.type]]..':32px"><br></span><br>[[File:Grid White Banner.png|link=]]</span>')
end
return table.concat(chart,'\n|-\n!')..'\n|}'
end
return p