Difference between revisions of "Template:HD/url"
Jump to navigation
Jump to search
imported>John of Reading (Apostrophe/Single quote is %27 not %3a) |
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)) |
||
| Line 7: | Line 7: | ||
:{{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 require an agent registered in the browser.<!--- TemplateHD/url ---> | 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.