Module:Sandbox/Animal lover 666/position data

local p={};

p.main = function( frame ) local args = frame:getParent.args local str=args["position"].."\n{| class=\"wikitable \" style=\"; margin-right:1em; font-size:95%\"\n" local i=1 while args[i] do		local name=mw.text.trim(args[i+1]) if name~="blank" then str=str.."|-\n|"..args[i] if args[i]~=args[i+2] then str=str.."-" if args[i+2] then str=str..args[i+2] end end str=str.."||" str=str..frame:preprocess("") str=str.."\n" end i=i+2 end str=str.."|}" return str end

return p