Help:URL

From Wikipedia, the free encyclopedia.

Jump to: navigation, search
This is a copy of m:Help:URL using Wikipedia-specific templates. Do not edit this page. Edits will be lost in the next update from Meta. Please carry out such an update simply by exactly copying the wikitext. To make changes applicable on all projects, edit the master page; to change Wikipedia-specific content, edit the templates; to make demos work, copy templates and images to this project.

Contents

URLs in external links

External links can start with "http://" or "ftp://"; "file://" does not work.

In external links, all symbols 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 %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.

[[%C3%80_propos_de_M%C3%A9ta]]

is rendered as À_propos_de_Méta, 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 name and Punycode.

URLs of pages within the projects

See en:Wikipedia:URLs; everything works the same, except that the domain names vary:

  • www.wikipedia.org
  • meta.wikipedia.org
  • wiktionary.org
  • quote.wikipedia.org
  • wikibooks.org
  • sources.wikipedia.org
  • sep11.wikipedia.org
  • xx.wikipedia.org with xx the language code, see m:List of Wikipedias

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 [1]:

$wgScriptPath = "/wiki";
$wgScript     = "{$wgScriptPath}/wiki.phtml";

There may be other variations, compare:

Old versions of pages

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.

New pages

New pages are numbered (with curid) chronologically.

See also Multiple titles.

Edit

Examples:

Purge

In some cases of caching problems, to update a page it can help to use "action=purge", in a URL like http://en.wikipedia.org/w/index.php?title=Help:URL&action=purge

See also

MediaWiki User's Guide: Namespaces, Make non-ugly URLs, Rewrite rules.

Wikipedia-specific content and links to other help pages

Template:Ph:URL
edit this Wikipedia- and subject-specific template
Help contents - all pages in the Help namespace: Meta b: c: n: w: q: wikisource wiktionary


Reading: Go | Search | URL | Namespace | Page name | Section | Link | Backlinks | Piped link | Interwiki link | Redirect | Variable | Category
Tracking changes: Recent | (enhanced) | Related | Watching pages | Page history | Diff | User contributions | Edit summary | Minor edit
Logging in and preferences: Logging in | Preferences | User style
Editing: Overview | New page | Images/files | Image description page | Special characters | Formula | Table | EasyTimeline | Template intro | Renaming (moving) a page | Automatic conversion of wikitext | Talk page | Testing | rlc
Projects: Meta (master page) | Wikibooks | Wikicommons | Wikinews | Wikipedia | Wikiquote | Wikisource | Wiktionary
For other languages see Meta.

Personal tools