Module:Sandbox/Animal lover 666/position data

This is an old revision of this page, as edited by Animal lover 666 (talk | contribs) at 19:47, 4 January 2021. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p={};

p.main = function( frame )
	
    local args = frame:getParent().args
    
    
	
	local str=args["position"].."<table>"
	
	local i=1
	
	while args[i] do
		str=str.."<tr><td>"..args[i].."-"
		if args[i+2] then
			str=str..args[i+2]
		end
		str=str.."</td><td>[["..args[i+1].."]]</td></tr>"
		i=i+2
	end
	str=str.."</table>"
	
	
	
	
	return str
end

return p