memory alpha
Help ContentsLink → URL

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

Linking to URLs

When editing a page, hyperlinks to other pages within Memory Alpha are normally written as wikilinks, using the [[...]] syntax described here. If you want to link to an outside website, or to certain specially generated Memory Alpha pages (such as the raw 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:

Making a link to elsewhere on Memory Alpha using the external link syntax can be simplified by using {{SERVER}}. Example: [{{SERVER}}/wiki/Star_Trek?action=raw].

Fixing links with unsupported characters

sp " ' , ; < > ? [ ] { | }
%20 %22 %27 %2C %3B %3C %3E %3F %5B %5D %7B %7C %7D
Single apostrophes do not need to be encoded; but unencoded multiples will be parsed as italic or bold markup
newline [ ] |
space &#91; &#93; &#124;
; @ $ ! * ( ) , / ~ :
%3B %40 %24 %21 %2A %28 %29 %2C %2F %7E %3A

URLs of Memory Alpha pages

URLs of pages on the English Memory Alpha begin https://memory-alpha.fandom.com/. That address on its own redirects a user to the main page, the recent changes page, or Discussions, depending on that user's preferences. Pages in the Memory Alpha database are located in the /wiki/ directory. The page name may include a namespace prefix (such as "MA Help:" for this page). There are various query strings that can be appended to a page URL to modify its presentation. Some of the most important ones are listed below:

If constructing URLs for Memory Alpha 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 Help:Magic words at MediaWiki.org.

Most programmatic interaction with Memory Alpha can be performed most efficiently using the API, for which URLs beginning https://memory-alpha.fandom.com/api.php are used. For details, see API at MediaWiki.org.

See also

External links