A Link in external link style can be of the forms:
The target is a URL which can start with "
"file://" does not work by default. If enabled it only works in MSIE. To enable it, add a $wgUrlProtocols entry to LocalSettings.php; see the $wgUrlProtocols in DefaultSettings.php for example.
All Special characterss of the URL must be among: A-Z a-z 0-9 ._\/~%-+&#?!=()@
If a URL contains a different character it should be converted; for example, ^ has to be written %5e, the hexadecimal ASCII value with a percent sign in front. A blank space can also be converted into an underscore.
Conversion:
" # $ % & ' * , : ; < > ? [ ^ ` { | } %22 %23 %24 %25 %26 %27 %2a %2c %3a %3b %3c %3e %3f %5b %5e %60 %7b %7c %7d
For the other characters either the code or the character can be used in internal and external links, they are equivalent. The system does a conversion when needed. E.g.
is rendered as %C3%80_propos_de_M%C3%A9ta, almost like À propos de Méta, which leads to this page on Meta with in the address bar the URL
http://meta.wikipedia.org/wiki/%C3%80_propos_de_M%C3%A9ta
while http://meta.wikipedia.org/wiki/À_propos_de_Méta leads to the same.
See also (in Wikipedia): Internationalized domain names and Punycode.
See Wikipedia:URLs. On other projects everything works the same, except that the domain names vary:
A URL starting with www.wikipedia.org redirects to the corresponding one starting with en; only www.wikipedia.org itself leads to a portal page instead of the main page of the English Wikipedia: http://www.wikipedia.org
In projects outside Wikimedia the "w/" in URLs like http://www.wikipedia.org/w/wiki.phtml?title=Main_Page&action=history is sometimes not used, sometimes different, e.g.:
The default is /wiki/wiki.phtml, with in DefaultSetting.php *:
$wgScriptPath = "/wiki"; $wgScript = "{$wgScriptPath}/wiki.phtml";
There may be other variations, compare:
This requires } to be written with underscores and escape codes (if applicable). To benefit from the conversion carried out by localurl, two parameters are needed:
(see Url 2p). An example with the second parameter in localurl fixed is .
This works for a link in external link style to a page in the same project or a project which uses the same string in the URL between the server name and the question mark ($wgScript, on Wikimedia "/w/index.php"), but not for links to other projects.
All old versions of all pages are numbered (with oldid) approximately in the order of becoming an old version, i.e. in chronological order of the next edit of the same page.
See also Page history#Linking_to_specific_versions_of_articles.
New pages are numbered (with curid) chronologically.
See also Multiple titles.
. The URL is like in the previous section.}}
Examples:
In some cases of caching problems, to update a page it can help to use "action=purge", in a URL like :|action=purge}}
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Help:URL".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world