Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Help:URL
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Fixing links with unsupported characters=== {{Shortcut|WP:ENCODE}} * The URL must start with a supported [[URI scheme]]. <code>http://</code> and <code>https://</code> are always supported. <code>ssh://</code>, <code>gopher://</code>, <code>irc://</code>, <code>ircs://</code>, <code>ftp://</code>, <code>ftps://</code>, <code>sftp://</code>, <code>news://</code>, <code>nntp://</code>, <code>worldwind://</code>, <code>telnet://</code>, <code>svn://</code>, <code>git://</code>, <code>mms://</code> and <code>mailto:</code> will create a link and an icon but require an agent registered in the browser. * URLs containing certain characters will display and link incorrectly unless those characters are [[percent-encoded]]. For example, a space must be replaced by <code>%20</code> (this can be done using the PATH option of the [[Help:Parser function#Paths|{{tlc|urlencode:}}]] parser function). {{incomplete list}} {| class="wikitable" ! sp !! " !! ' !! , !! ; !! < !! > !! ? !! [ !! ] !! { !! <nowiki>|</nowiki> !! } |- | %20 || %22 || %27 || %2C || %3B || %3C || %3E || %3F || %5B || %5D || %7B || %7C || %7D |} :{{small|Single apostrophes do not need to be encoded; but unencoded multiples will be parsed as italic or bold markup}} * Titles containing certain characters will display and link incorrectly unless those characters are encoded with HTML character references. {| class="wikitable" ! newline !! [ !! ] !! | |- | space || &#91; || &#93; || &#124; |} * Even though PHP's [https://www.php.net/manual/en/function.urlencode.php urlencode()] automatically percent-encodes them, these characters do '''not''' get URL-encoded by [https://github.com/wikimedia/mediawiki/blob/master/includes/GlobalFunctions.php#L309 wfUrlencode()]. The ":" symbol is a partial exception β it is not encoded anywhere except for IIS 7.0. {| class="wikitable" ! ; !! @ !! $ !! ! !! * !! ( !! ) !! , !! / !! ~ !! : |- | %3B || %40 || %24 || %21 || %2A || %28 || %29 || %2C || %2F || %7E || %3A |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)