Difference between revisions of "Module:URL/doc"

From Northumberland Climbing
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
Yes {{#invoke:URL | formatUrl | }}
Yes {{#invoke:URL | formatUrl | EXAMPLE.com }} example.com example.com
Yes {{#invoke:URL | formatUrl | example.com }} example.com example.com
Yes {{#invoke:URL | formatUrl | www.example.com }} example.com example.com
Yes {{#invoke:URL | formatUrl | http://www.example.com }} example.com example.com
Yes {{#invoke:URL | formatUrl | http://пример.рф }} пример.рф пример.рф
Yes {{#invoke:URL | formatUrl | https://www.example.com }} example.com example.com
Yes {{#invoke:URL | formatUrl | ftp://www.example.com }} example.com example.com
Yes {{#invoke:URL | formatUrl | ftp://ftp.example.com }} ftp.example.com ftp.example.com
Yes {{#invoke:URL | formatUrl | http://www.example.com/ }} example.com example.com
Yes {{#invoke:URL | formatUrl | //ftp.example.com }} ftp.example.com ftp.example.com
Yes {{#invoke:URL | formatUrl | //www.example.com/ }} example.com example.com
Yes {{#invoke:URL | formatUrl | www.example.com/foo }} example.com/foo example.com/foo
Yes {{#invoke:URL | formatUrl | http://www.example.com/foo }} example.com/foo example.com/foo
Yes {{#invoke:URL | formatUrl | http://sub.example.com/foo/bar }} sub.example.com/foo/bar sub.example.com/foo/bar
Yes {{#invoke:URL | formatUrl | example.com?a }} example.com?a example.com?a
Yes {{#invoke:URL | formatUrl | http://sub.example.com/foo/bar?a }} sub.example.com/foo/bar?a sub.example.com/foo/bar?a
Yes {{#invoke:URL | formatUrl | example.com | title }} title title
Yes {{#invoke:URL | formatUrl | example.com?a | title }} title title
Yes {{#invoke:URL | formatUrl | http://sub.example.com/foo/bar | title }} title title
Yes {{#invoke:URL | formatUrl | http://sub.example.com/foo/bar?a | title }} title title
Yes {{#invoke:URL | formatUrl | [http://example.com] }} example.com example.com
Yes {{#invoke:URL | formatUrl | [http://example.com title] }} title title
Yes {{#invoke:URL | formatUrl | [http://пример.рф пример] }} пример пример
Yes {{#invoke:URL | formatUrl | [http://example.com old title] | title }} title title
Yes {{#invoke:URL | formatUrl | email@example.com }} email@example.com email@example.com
Yes {{#invoke:URL | formatUrl | mailto:email@example.com }} email@example.com email@example.com
Yes {{#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/…