GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing www.mediawiki.org — Help:URL - MediaWiki
For help with URLs in wikitext, see Help:Links . This page is about various URLs of project pages. URLs in external linksForm of the URLA link in external link style can be of the forms:
The target is a URL which can start with
Allowed charactersAll characters of the URL must be among: A-Z a-z 0-9 :._\/~%-+&#?!=()@ If a URL contains a different character you must convert it; for example, Character conversion" # $ % & ' ( ) * , ; %20 %22 %23 %24 %25 %26 %27 %28 %29 %2a %2c %3b < > ? [ ] ^ ` { | }
%3c %3e %3f %5b %5d %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. [[m:%C3%80_propos_de_M%C3%A9ta]] is rendered as m:%C3%80_propos_de_M%C3%A9ta, almost like m:À propos de Méta, which leads to the page on meta.wikimedia.org with in the address bar the URL https://meta.wikimedia.org/wiki/%C3%80_propos_de_M%C3%A9ta while https://meta.wikimedia.org/wiki/À_propos_de_Méta leads to the same. Parser function urlencode
There is an external online converter for encoding custom URLs to mediawiki format. See also (in Wikipedia): Internationalized domain names and Punycode. Percent-encodingFor ASCII characters (up to decimal 127, hexadecimal 7F) percent-encoding simply means adding % to the hexadecimal value, e.g. for a tilde ~ (decimal 126, hexadecimal 7E) it's %7E. Otherwise (non-ASCII) convert it first to UTF-8 and then percent-encode it. Here are the steps to follow with an example:
URLs of pages within the projectsSee w: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: https://www.wikipedia.org In projects outside Wikimedia the "w/" in URLs like https://www.wikipedia.org/w/wiki.phtml?title=Main_Page&action=history is sometimes not used, sometimes different, e.g.:
Use in templatesFor use in templates, note that all URLs on e.g. the English Wikipedia can be written in the form:
This requires To benefit from the conversion carried out by magic word fullurl, two parameters are needed:
(see template Url 2p on meta).
An example with the second parameter in fullurl fixed is w:Template:ed containing the link This works for a link in external link style to a page in the same project. We can use localurl for a link to a project which uses the same string in the URL between the server name and the question mark ($wgScript, on Wikimedia " Old versions of pagesAll 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 a page. New pagesPages are numbered with page_id (see Manual:Page table ) in order of creation.
Conversely, most Query API output provides page names as well as page ID's, e.g. https://meta.wikimedia.org/w/query.php?titles=Hilfe:Zeitleiste Page versions get a number "oldid" as soon as they are created; they are produced by variable {{REVISIONID}}. The URL is like in the previous section. EditExamples:
PurgeIn some cases of caching problems, to update a page it can help to use {{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}|action=purge}}
This results in:
Parameter uselangIn some cases it is helpful to link to another Wikimedia project by using the "&uselang" parameter, in a URL like https://commons.wikimedia.org/w/index.php?title=Glavna_stran&uselang=sl. This allows specifying the language (hereby 'sl' for Slovenian) of the interface messages that will be displayed when opening the page 'Glavna stran' in the Commons project. Miscellaneous actionsYou can fetch the raw wikitext of a page using a URL like {{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}|action=raw}}
which results here in:
Other actions are Kinds of dead linksThere 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 alsoRetrieved from "https://www.mediawiki.org/w/index.php?title=Help:URL&oldid=8358796" | |||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |