Help:Variable

This page presents a list of variables that can be used in the wikitext. Similar to templates, their content is dynamically included in the page text. Unlike templates, however, a variable's rendering depends on the time, the project, or the page on which it appears.

"Constant" variables
These variables are mainly useful in the event that Memory Alpha content is included in some other MediaWiki-based database.

Time-based variables
The NUMBEROFARTICLES variable is defined as the number of articles in the main namespace that contain a link to another page and are not a redirect. In other words, the number of articles, stubs containing a link, and disambiguation pages.

Page-based variables
PAGENAMEE will display the page title in the style that is used in URLs – that is, with underscores for spaces and escape codes for special characters. For example, a page called "Test page" would render as "Test_page" instead.

When used in a template, these three variables refer to the page in which the template is included, not to the template page.

Examples of combinations

 * /temp : /temp
 * /temp : /temp
 * /temp : /temp

In a template, for a link to a page which depends on a template parameter, the external link style is used even for internal links, to avoid that the system links to the edit page even if the page exists. To construct the external link, variables can also be useful.