<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>https://playzone.in.ua/wiki/mc//index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AIPAddress</id>
		<title>Модуль:IPAddress - История изменений</title>
		<link rel="self" type="application/atom+xml" href="https://playzone.in.ua/wiki/mc//index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AIPAddress"/>
		<link rel="alternate" type="text/html" href="https://playzone.in.ua/wiki/mc//index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:IPAddress&amp;action=history"/>
		<updated>2026-04-13T07:27:16Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.28.3</generator>

	<entry>
		<id>https://playzone.in.ua/wiki/mc//index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:IPAddress&amp;diff=13116&amp;oldid=prev</id>
		<title>Softer: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="https://playzone.in.ua/wiki/mc//index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:IPAddress&amp;diff=13116&amp;oldid=prev"/>
				<updated>2017-01-17T22:26:59Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='ru'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 22:26, 17 января 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='ru'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Softer</name></author>	</entry>

	<entry>
		<id>https://playzone.in.ua/wiki/mc//index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:IPAddress&amp;diff=13115&amp;oldid=prev</id>
		<title>AttemptToCallNil: перевод комментариев</title>
		<link rel="alternate" type="text/html" href="https://playzone.in.ua/wiki/mc//index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:IPAddress&amp;diff=13115&amp;oldid=prev"/>
				<updated>2015-07-22T11:49:08Z</updated>
		
		<summary type="html">&lt;p&gt;перевод комментариев&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
p.isIPv4 = function( f )&lt;br /&gt;
	local ip = mw.text.trim( f.args and f.args[1] or f )&lt;br /&gt;
	if ip:len() == 0 then return false end&lt;br /&gt;
	&lt;br /&gt;
    local legal = function( num )&lt;br /&gt;
		return num and tonumber( num ) &amp;lt; 256&lt;br /&gt;
	end&lt;br /&gt;
    local p1, p2, p3, p4 = ip:match( '^(%d+)%.(%d+)%.(%d+)%.(%d+)$' )&lt;br /&gt;
    return legal( p1 ) and legal( p2 ) and legal( p3 ) and legal( p4 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.isIPv6 = function( f )&lt;br /&gt;
	local ip = mw.text.trim( f.args and f.args[1] or f )&lt;br /&gt;
    local dcolon, groups&lt;br /&gt;
    if ip:len() == 0&lt;br /&gt;
        or ip:find( '[^:%x]' ) -- допустимые символы — только двоеточие и шестнадцатеричные цифры&lt;br /&gt;
        or ip:find( '^:[^:]' ) or ip:find( '[^:]:$' ) -- может начинаться или заканчиваться на ::, но не на одиночное двоеточие&lt;br /&gt;
        or ip:find( ':::' )&lt;br /&gt;
    then&lt;br /&gt;
        return false&lt;br /&gt;
    end &lt;br /&gt;
    ip, dcolon = ip:gsub( '::', ':' )&lt;br /&gt;
    if dcolon &amp;gt; 1 then return false end -- не больше одной последовательности ::&lt;br /&gt;
    ip = ip:gsub( '^:?', ':' ) -- добавить в начало двоеточие, если оно необходимо, перевод в верхний регистр&lt;br /&gt;
    ip, groups = ip:gsub( ':%x%x?%x?%x?', '' ) -- удалить допустимые группы и сосчитать их.&lt;br /&gt;
    return ( ( dcolon == 1 and groups &amp;lt; 8 ) or ( dcolon == 0 and groups == 8 ) )&lt;br /&gt;
        and ( ip:len() == 0 or ( dcolon == 1 and ip == ':' ) ) -- может остаться одно висящее двоеточие, если оригинал заканчивался на два двоеточия&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.isIP = function( f )&lt;br /&gt;
	local ip = f.args and f.args[1] or f&lt;br /&gt;
	return p.isIPv4( ip ) and '4' or p.isIPv6( ip ) and '6'&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>AttemptToCallNil</name></author>	</entry>

	</feed>