Перейти к содержанию

Модуль:URL/doc

Сæрибар энциклопеди Википедийы æрмæг.

Это страница документации Модуль:URL.

Модуль используется в шаблоне {{URL}}.

Тесты[Бындур ивын]

2 tests failed.

test_formatUrl:

Text Expected Actual
✔ {{#invoke:URL | formatUrl | }}
✔ {{#invoke:URL | formatUrl | EXAMPLE.com }} example.com example.com
✔ {{#invoke:URL | formatUrl | example.com }} example.com example.com
✔ {{#invoke:URL | formatUrl | www.example.com }} example.com example.com
✔ {{#invoke:URL | formatUrl | http://www.example.com }} example.com example.com
✔ {{#invoke:URL | formatUrl | http://пример.рф }} пример.рф пример.рф
✔ {{#invoke:URL | formatUrl | https://www.example.com }} example.com example.com
✔ {{#invoke:URL | formatUrl | ftp://www.example.com }} example.com example.com
✔ {{#invoke:URL | formatUrl | ftp://ftp.example.com }} ftp.example.com ftp.example.com
✔ {{#invoke:URL | formatUrl | http://www.example.com/ }} example.com example.com
✔ {{#invoke:URL | formatUrl | //ftp.example.com }} ftp.example.com ftp.example.com
✔ {{#invoke:URL | formatUrl | //www.example.com/ }} example.com example.com
✔ {{#invoke:URL | formatUrl | www.example.com/foo }} example.com/foo example.com/foo
✔ {{#invoke:URL | formatUrl | http://www.example.com/foo }} example.com/foo example.com/foo
✔ {{#invoke:URL | formatUrl | http://sub.example.com/foo/bar }} sub.example.com/foo/bar sub.example.com/foo/bar
✔ {{#invoke:URL | formatUrl | example.com?a }} example.com?a example.com?a
✔ {{#invoke:URL | formatUrl | http://sub.example.com/foo/bar?a }} sub.example.com/foo/bar?a sub.example.com/foo/bar?a
✔ {{#invoke:URL | formatUrl | example.com | title }} title title
✔ {{#invoke:URL | formatUrl | example.com?a | title }} title title
✔ {{#invoke:URL | formatUrl | http://sub.example.com/foo/bar | title }} title title
✔ {{#invoke:URL | formatUrl | http://sub.example.com/foo/bar?a | title }} title title
✔ {{#invoke:URL | formatUrl | [http://example.com] }} example.com example.com
✔ {{#invoke:URL | formatUrl | [http://example.com title] }} title title
✔ {{#invoke:URL | formatUrl | [http://пример.рф пример] }} пример пример
✔ {{#invoke:URL | formatUrl | [http://example.com old title] | title }} title title
✔ {{#invoke:URL | formatUrl | email@example.com }} email@example.com email@example.com
✔ {{#invoke:URL | formatUrl | mailto:email@example.com }} email@example.com email@example.com
✔ {{#invoke:URL | formatUrl | [http://example.com title]{{ref-en}} }} title(англ.) title(англ.)
✔ {{#invoke:URL | formatUrl | http://example.com/very/long/path/index.html | length = 25 }} example.com/very/long/pa… example.com/very/long/pa…
✔ {{#invoke:URL | formatUrl | http://very.long.domain.example.com/index.html | length = 25 }} very.long.domain.example.com/… very.long.domain.example.com/…
✔ {{#invoke:URL | formatUrl | [http://very.long.domain.example.com/index.html] | length = 25 }} very.long.domain.example.com/… very.long.domain.example.com/…
✔ {{#invoke:URL | formatUrl | [https://web.archive.org/web/20070520014853/http://example.com/] | length = 25 }} web.archive.org/web/2007… web.archive.org/web/2007…
N {{#invoke:URL | formatUrl | [http://example.com example.com]<br>[http://www.example.ru example.ru] }} example.com
example.ru
example.com
example.ru
N {{#invoke:URL | formatUrl | [[Site]] }} Site Site