<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.dzmuh.com/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AURL%2Ftests</id>
	<title>Модуль:URL/tests - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dzmuh.com/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AURL%2Ftests"/>
	<link rel="alternate" type="text/html" href="https://wiki.dzmuh.com/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:URL/tests&amp;action=history"/>
	<updated>2026-06-19T17:34:12Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://wiki.dzmuh.com/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:URL/tests&amp;diff=7799&amp;oldid=prev</id>
		<title>Dzmuh: Новая страница: «-- Unit tests for Module:URL. Click talk page to run tests. local p = require('Module:UnitTests')  function p:test_formatUrl()     self:preprocess_equals('{{#...»</title>
		<link rel="alternate" type="text/html" href="https://wiki.dzmuh.com/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:URL/tests&amp;diff=7799&amp;oldid=prev"/>
		<updated>2022-03-31T20:31:39Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «-- Unit tests for &lt;a href=&quot;/index.php/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:URL&quot; title=&quot;Модуль:URL&quot;&gt;Module:URL&lt;/a&gt;. Click talk page to run tests. local p = require(&amp;#039;Module:UnitTests&amp;#039;)  function p:test_formatUrl()     self:preprocess_equals(&amp;#039;{{#...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Unit tests for [[Module:URL]]. Click talk page to run tests.&lt;br /&gt;
local p = require('Module:UnitTests')&lt;br /&gt;
&lt;br /&gt;
function p:test_formatUrl()&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | }}', '')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | EXAMPLE.com }}', '[http://EXAMPLE.com example.com]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | example.com }}', '[http://example.com example.com]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | www.example.com }}', '[http://www.example.com example.com]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | http://www.example.com }}', '[http://www.example.com example.com]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | http://пример.рф }}', '[http://пример.рф пример.рф]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | https://www.example.com }}', '[https://www.example.com example.com]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | ftp://www.example.com }}', '[ftp://www.example.com example.com]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | ftp://ftp.example.com }}', '[ftp://ftp.example.com ftp.example.com]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | http://www.example.com/ }}', '[http://www.example.com/ example.com]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | //ftp.example.com }}', '[//ftp.example.com ftp.example.com]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | //www.example.com/ }}', '[//www.example.com/ example.com]')&lt;br /&gt;
&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | www.example.com/foo }}', '[http://www.example.com/foo example.com/foo]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | http://www.example.com/foo }}', '[http://www.example.com/foo example.com/foo]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | http://sub.example.com/foo/bar }}', '[http://sub.example.com/foo/bar sub.example.com/foo/bar]')&lt;br /&gt;
&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | example.com?a }}', '[http://example.com?a example.com?a]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | http://sub.example.com/foo/bar?a }}', '[http://sub.example.com/foo/bar?a sub.example.com/foo/bar?a]')&lt;br /&gt;
&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | example.com | title }}', '[http://example.com title]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | example.com?a | title }}', '[http://example.com?a title]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | http://sub.example.com/foo/bar | title }}', '[http://sub.example.com/foo/bar title]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | http://sub.example.com/foo/bar?a | title }}', '[http://sub.example.com/foo/bar?a title]')&lt;br /&gt;
&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | [http://example.com] }}', '[http://example.com example.com]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | [http://example.com title] }}', '[http://example.com title]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | [http://пример.рф пример] }}', '[http://пример.рф пример]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | [http://example.com old title] | title }}', '[http://example.com title]')&lt;br /&gt;
&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | email@example.com }}', '[mailto:email@example.com email@example.com]')&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | mailto:email@example.com }}', '[mailto:email@example.com email@example.com]')&lt;br /&gt;
&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | [http://example.com title]{{ref-en}} }}', '[http://example.com title]' .. self.frame:expandTemplate{ title = 'ref-en' } )&lt;br /&gt;
&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | http://example.com/very/long/path/index.html | length = 25 }}', '[http://example.com/very/long/path/index.html example.com/very/long/pa…]' )&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | http://very.long.domain.example.com/index.html | length = 25 }}', '[http://very.long.domain.example.com/index.html very.long.domain.example.com/…]' )&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | [http://very.long.domain.example.com/index.html] | length = 25 }}', '[http://very.long.domain.example.com/index.html very.long.domain.example.com/…]' )&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | [https://web.archive.org/web/20070520014853/http://example.com/] | length = 25 }}', '[https://web.archive.org/web/20070520014853/http://example.com/ web.archive.org/web/2007…]' )&lt;br /&gt;
&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | [http://example.com example.com]&amp;lt;br&amp;gt;[http://www.example.ru example.ru] }}', '[http://example.com example.com]&amp;lt;br&amp;gt;[http://www.example.ru example.ru]' )&lt;br /&gt;
    self:preprocess_equals('{{#invoke:URL | formatUrl | [[Site]] }}', '[[Site]]' )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Dzmuh</name></author>
	</entry>
</feed>