Jump to content

Module:Sandbox/Ahecht

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ahecht (talk | contribs) at 13:45, 20 June 2018 (rewrite). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local p = {}

local IP = require('Module:IP')
local IPAddress = IP.IPAddress

function p.main(frame)
	local output = frame[1] or  frame.args[1] or frame:getParent().args[1]
	output = pcall(function () return IPAddress.new(output) end)
	return output
end

return p