Help:URL

From No Subject - Encyclopedia of Psychoanalysis
Jump to: navigation, search

Editing overview

Starting a new page

  1. Page name

Images and other uploaded files

  1. Image description page

Special characters

Formatting

  1. Formula
  2. Table
  3. EasyTimeline syntax

Referencing

  1. Link
  2. Piped link
  3. Interwiki linking
  4. Variable
  5. URL

Organizing

  1. Sections
  2. Templates
  3. Category
  4. Redirect
  5. Renaming (moving) a page
  6. Namespace

Saving effort (not having to write something, or copy and paste)

  1. Automatic conversion of wikitext
  2. Editing toolbar

HTML in wikitext

Fixing mistakes and vandalism

  1. Reverting a page to an earlier version

Communicating

  1. Edit summary
  2. Talk page
  3. Edit conflict
  4. Minor edit

Testing

URLs in external links

A link in external link style can be of the forms:

  • target: http://meta.wikimedia.org/ is rendered as http://meta.wikimedia.org/
  • [ target label ], with a blank space in between: [http://meta.wikimedia.org/ wikimedia] gives wikimedia (see also Help:Piped link)
  • [ target ] - these are automatically labelled with serial numbers 1, 2, 3, ...: [http://meta.wikimedia.org/] gives [1]

The target is a URL which can start with "http://" or "ftp://";

"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 characters 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.

[[%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.

URLs of pages within the projects

On other projects everything works the same, except that the domain names vary:

  • xx.wikipedia.org with xx the language code
  • meta.wikimedia.org (meta.wikipedia.org redirects there)
  • xx.wiktionary.org
  • xx.wikiquote.org
  • xx.wikibooks.org
  • wikisource.org
  • he.wikisource.org
  • sep11.wikipedia.org

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

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

There may be other variations, compare:

Use in templates

For use in templates, note that all URLs on e.g. the English Wikipedia can be written in the form

http://en.wikipedia.org/w/index.php?title={{{1}}}

This requires {{{1}}} to be written with underscores and escape codes (if applicable). To benefit from the conversion carried out by localurl, two parameters are needed:

http://en.wikipedia.org{{localurl:{{{1}}}|{{{2}}}}}

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.

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.

See also Linking to specific versions of articles.

New pages

New pages are numbered (with curid) chronologically.


Template:H:new

Edit

Examples:

Purge

In some cases of caching problems, to update a page it can help to use "action=purge", in a URL like https://nosubject.com/index.php?title=Help:URL&action=purge

Kinds of dead links

There can be various kinds of errors in the URL. With some the server is not even reached, with others the server takes some action. The server may also go to the correct page and just ignore a wrong parameter or anchor.

See also

Help:Namespace


Edit

No Subject - Encyclopedia of Psychoanalysis-specific information

Template:Ph:URL

Edit
Help contents
Reading
Go|Search|Stop words|URL|Namespace|Page name|Section
Backlinks|Link|Piped link|Interwiki link|Redirect|Category|Image page
Logging in and preferences
Logging in|Preferences|User style|Special page
Keeping track of changes
Recent changes (enhanced)|Related changes|Watching pages|Page history
Diff|Edit summary|Minor edit|User contributions
Editing
Filling the page|Starting a new page|List|Table|Special characters
Template|Magic words|Renaming (moving) a page|Editing shortcuts
Talk page|Testing
Advanced
Advanced templates|Array|Parameter default|Variable|Substitution
Displaying a formula|EasyTimeline|Inputbox|Uploading files|Calculation
Lists of resources
Categories|Stub types|Infoboxes|Templates|Shortcuts

This page is a copy of the master help page at Meta (for general help information), with Wikipedia-specific templates inserted. To update the general help, edit the master help page for all projects at m:Help:URL. For Wikipedia-specific help, there are two templates - the main template, Template:Ph:URL, is the extra text at the bottom of this page, before the links to other help pages. Template:Phh:URL appears at the top of this help page and is useful for Wikipedia-specific lead text. You are welcome to copy the exact wikitext from the master page at Meta and paste it into this page at any time.


Copies of this page on other projects, for other languages see Meta
Meta (master page)|Wikinews|Wikiquote|Wiktionary