Help:Magic Words

This is a summary of magic words that are unique to UESP and Starfield Wiki. All of the standard MediaWiki magic words are also available, as listed at Wikimedia. Most of these magic words are added by one of two Starfield Wiki custom extensions, namely UespCustomCode and MetaTemplate. More details on these magic words may be provided on the extension documentation pages.

Namespace
Two namespace-related variables are added by MetaTemplate

The rest of the namespace-related variables are all added by the UespNamespace class in UespCustomCode. In all cases:
 * The definitions of the namespaces are provided by MediaWiki:uespnamespacelist (which can be updated by the site's admins). The definition list can include both true namespaces and mods which contain articles that are subpages of the mod's main page (e.g., Tes3Mod:Tamriel Rebuilt).
 * The variables are designed so that mods listed in uespnamespacelist can be treated as if they were true namespaces, in particular within templates. These are often referred to interchangeably as mod namespaces, pseudo-namespaces, or just pseudo-spaces.
 * These variable names must be upper case. Either an underscore (_) or a space can be used interchangeably.
 * There are three possible ways that these magic words can identify the requested namespace:
 * Any of the magic words can be called with an argument ("arg" in the following examples) which specifies the desired namespace. The argument can be the basic name of the namespace or the ID of the namespace . This option overrides any other options.
 * If the magic word is called without an argument, then the code checks to see whether the template variables  or   have been set (the variables must be all lowercase; ns_base takes precedence over ns_id). If so, these variables are used to determine the namespace.
 * If neither of the above conditions is met, then the default behavior is to automatically identify the namespace (or mod) for the article, and return values appropriate for that namespace. For talk page articles, the corresponding SUBJECTSPACE is always used, instead of the talk namespace.

Other
The NESTLEVEL magic word is added by the MetaTemplate Extension

Parser Subroutines
These are all technically parser functions, but for all of these parser subroutines, the return value (the text displayed in the article) is always an empty string. The purpose of these subroutines is not to directly display content in the article, but rather to do various types of behind-the-scenes processing.