Difference between revisions of "Template:HD/url"
Jump to navigation
Jump to search
imported>Gadget850 (URI scheme) |
imported>Newslinger m (Replace File:Vector toolbar insert link button.png with representation of current icon used in the Vector skin's WikiEditor toolbar, File:OOjs UI icon link-ltr.svg (via WP:JWB)) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[Image:Symbol move vote.svg|20px]] URLs containing certain characters will display and link incorrectly unless those characters are encoded. For example, a space must be replaced by <code>%20</code>. | [[Image:Symbol move vote.svg|20px]] URLs containing certain characters will display and link incorrectly unless those characters are encoded. For example, a space must be replaced by <code>%20</code>. | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | ! sp !! " !! | + | ! sp !! " !! ' !! , !! ; !! < !! > !! ? !! [ !! ] |
|- | |- | ||
| − | | %20 || %22 || % | + | | %20 || %22 || %27 || %2c || %3b || %3c || %3e || %3f || %5b || %5d |
|} | |} | ||
:{{small|Single apostrophes do not need to be encoded; multiples will be parsed as italic or bold markup}} | :{{small|Single apostrophes do not need to be encoded; multiples will be parsed as italic or bold markup}} | ||
| − | The link button [[File: | + | The link button [[File:OOjs UI icon link-ltr.svg]] on the enhanced editing toolbar will encode a link. |
| − | The URL must start with a supported [[URI scheme]]. <code>http://</code> and <code>https://</code> are always supported. <code>gopher://</code>, <code>irc://</code>, <code>ircs://</code>, <code>ftp://</code>, <code>news://</code> and <code>mailto:</code> will create a link and an icon but | + | The URL must start with a supported [[URI scheme]]. <code>http://</code> and <code>https://</code> are always supported. <code>gopher://</code>, <code>irc://</code>, <code>ircs://</code>, <code>ftp://</code>, <code>news://</code> and <code>mailto:</code> will create a link and an icon but require an agent registered in the browser.<!--- TemplateHD/url ---> |
Latest revision as of 17:31, 7 February 2019
URLs containing certain characters will display and link incorrectly unless those characters are encoded. For example, a space must be replaced by %20.
| sp | " | ' | , | ; | < | > | ? | [ | ] |
|---|---|---|---|---|---|---|---|---|---|
| %20 | %22 | %27 | %2c | %3b | %3c | %3e | %3f | %5b | %5d |
- Single apostrophes do not need to be encoded; multiples will be parsed as italic or bold markup
The link button
on the enhanced editing toolbar will encode a link.
The URL must start with a supported URI scheme. http:// and https:// are always supported. gopher://, irc://, ircs://, ftp://, news:// and mailto: will create a link and an icon but require an agent registered in the browser.