Difference between revisions of "Module:URL/doc"
Jump to navigation
Jump to search
module>Pppery |
m (1 revision imported) |
(No difference)
|
Latest revision as of 06:53, 31 July 2020
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 | 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] {{ok}} }} | title OK OK | title OK OK | |
File:OOjs UI icon check-constructive.svg | {{#invoke:URL | formatUrl | http://example.com/very/long/path/index.html | length = 25 }} | example.com/very/long/pa… | example.com/very/long/pa… |
File:OOjs UI icon check-constructive.svg | {{#invoke:URL | formatUrl | http://very.long.domain.example.com/index.html | length = 25 }} | very.long.domain.example.com/… | very.long.domain.example.com/… |