Модуль:URL/doc
Тас көрүҥэ
Это страница документации Модуль:URL.
Модуль используется в шаблоне {{URL}}.
Тесты
[биики-тиэкиһи уларытыы]All tests passed.
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 | 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 | 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 |