Help:URL

Like all pages on the World Wide Web, the pages delivered by WikiQueer's servers have URLs to identify them. These are the addresses that appear in your browser's address bar when you view a page. WikiQueer editors also have the ability to create hyperlinks to chosen URLs, pointing to pages either within WikiQueer or elsewhere on the Web.

Linking to URLs
When editing a page, hyperlinks to other pages within WikiQueer are normally made as wikilinks or interwikilinks, using the  ...  syntax described at Help:Link. However if you want to link to an outside website, or to certain specially generated WikiQueer pages (such as a past version of an article), it is necessary to provide the full URL. This is done using external link syntax.

There are three forms of external link syntax:
 * If the URL is simply included in the wikitext, without square brackets, then it appears as written, and a hyperlink is created:  http://meta.wikiqueer.org/  produces http://meta.wikiqueer.org/
 * If the URL is placed in square brackets, then a hyperlink is created with a serial number as its label:   gives
 * If the URL is placed in square brackets followed by a space and some text, then that text is used as the label for the hyperlink:  WikiQueer Meta  gives WikiQueer Meta

Making a link to elsewhere on the same server as the wiki can be simplified by using. Example:  [/relative/url] .

To suppress the external link icon, place the external link between tags.

Fixing links with unsupported characters

The URL must start with a supported URI scheme. and  are always supported. ,,  ,  ,   and   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 encoded. For example, a space must be replaced by.
 * Single apostrophes do not need to be encoded; multiples will be parsed as italic or bold markup

The link button on the enhanced editing toolbar will encode a link.

URLs of WikiQueer pages
English WikiQueer's URLs begin http://en.WikiQueer.org/. That address on its own is redirected to the Main Page.


 * The main form of a URL to a WikiQueer page:
 * http://www.wikiqueer.org/w/Page_name (used in wikilinks, recommended when a URL has to be given)


 * An alternative form:
 * http://www.wikiqueer.org/index.php?title=Page_name (allows more options by appending parameters to the URL, not indexed by search engines)

The page name may include a namespace prefix (such as "Help:" in this page). With some special pages it may also include a parameter, as in http://www.wikiqueer.org/w/Special:Contributions/Jimbo_Wales (but for most special page parameters, see below).

Other URLs associated with a page are constructed by adding a query string. The string can be added to either of the above forms (as in http://www.wikiqueer.org/w/Train?action=history ), but in this case the system defaults to the second form, i.e. it extends the index.php query string "title=Page_name".

Extended URLs are used:
 * To go to a redirect page without following the redirect: http://www.wikiqueer.org/index.php?title=Railway_train&redirect=no
 * To go to the edit page (or view the source of a protected page): http://www.wikiqueer.org/index.php?title=Train&action=edit. Other parameters can be added, such as section=5 or section=new to edit or add a page section. There are also parameters for preloading text into the edit box of a new page, as used by the inputbox extension (see mw:Extension:InputBox).
 * To access the edit history of a page: http://www.wikiqueer.org/index.php?title=Train&action=history (or further parameters can be added, as in http://www.wikiqueer.org/index.php?title=Train&limit=5&offset=90&action=history, which displays edits 91–95).
 * To link to a particular version of a page: http://www.wikiqueer.org/index.php?title=Train&oldid=1374279 (this gives a permanent link to a particular version of the page). A permanent link to the present version of the page can be accessed by clicking "Permanent link" under "toolbox" on the left side of the page. Note that the version ID is unique across all pages, so the title parameter here has no effect, and can in fact be omitted.
 * To link to a diff between two versions of a page: http://www.wikiqueer.org/index.php?title=Train&diff=1374279&oldid=1260056, where diff is the ID of the version to appear on the right. Set diff=0 to compare the current version; set diff=0 and oldid=0 to compare the two most recent versions. Again the title parameter has no real effect (you can in fact compare versions of two different pages).
 * To watch or unwatch a page: http://www.wikiqueer.org/index.php?title=Train&action=watch (or action=unwatch).
 * To purge a page from the server cache (to have it rendered with the latest template versions etc.): http://www.wikiqueer.org/index.php?title=Train&action=purge (this is not the same as purging your browser cache).
 * To perform certain other defined actions, replacing purge in the above example with view, delete, revert, rollback, unprotect, info, markpatrolled, validate, render, deletetrackback (most of these are available only to administrators).
 * To obtain the raw wikitext of a page without downloading the full HTML: http://www.wikiqueer.org/index.php?title=Train&action=raw
 * To view a category listing starting from a specified point: http://www.wikiqueer.org/index.php?title=Category:Disambiguation_pages&from=B
 * To specify parameters for a special page, as in: http://www.wikiqueer.org/index.php?/w/index.php?title=Special:Recentchanges&from=20030918220000 (in this case the "from" parameter is a timestamp, format yyyymmddhhmmss, UTC time, but many other types of parameter are possible, depending on the page).

If constructing URLs for WikiQueer pages, remember to convert spaces into underscores, and to percent-code special characters where necessary, as described in the previous section. (For how to do this in template code, see Templates and programming below.)

Various kinds of error message may appear if an invalid URL, or one to which you do not have access, is submitted. In other cases the URL may redirect to a valid one (for example, page titles are converted to their canonical form as they are when they appear in wikilinks).

Templates and programming
For use in templates, correct URLs can be constructed using certain magic words and parser functions such as fullurl, urlencode and others. Details of these can be found at mw:Help:Magic words.

Most programmatic interaction with WikiQueer can be performed most efficiently using the API, for which URLs beginning http://www.wikiqueer.org/api.php are used. For details, see API.