User:Dan1wang/Sandbox/Links
Tests for my MediaWiki parser project. Please do not delete
Links
editIPv6
edit* [https://%5B2607:f8b0:4003:c00::6a%5D/test ipv6 test] * [https://[2607:f8b0:4003:c00::6a]/test ipv6 test] * https://%5B2607:f8b0:4003:c00::6a%5D/test * https://[2607:f8b0:4003:c00::6a]/test
IPv4
editDNS
edithttp://username:password@www.example.com:80/path/to/file.php?foo=316&bar=this+has+spaces#anchor
Links with magic words
edit* https:{{SERVER}} * https://www.google.com/search?q={{urlencode:測試|QUERY}} * [{{urlencode:https|QUERY}}://{{urlencode:www.google.com|QUERY}}]
- https://en.wiktionary.org
- https://www.google.com/search?q=%E6%B8%AC%E8%A9%A6
- https://www.google.com/search?q=%E6%B8%AC%E8%A9%A6
- [1]
Links with comments
edithttps://<!-- -->google.com
Really obscure link
edithttps://www.google.com/search?q=ab (\u180E between a and b)
https://www.google.com/search?q=}something
www.google.com = https://%67%6f%6f%67%6c%65%2e%63%6f%6d/search?q=test