Magic Words look like template calls (surround by double curly braces) but they have no parameters and return a system variable value. Traditionally they are always types in all-caps to make them easy to see in the template code, but they are actually case-insensitive.
Magic Word | Meaning | Example |
---|---|---|
{{PAGENAME}} | Returns the title of the current wiki page, without any leading namespace: | Magic Words |
{{PAGENAMEE}} | Returns the url-encoded title of the current wiki page, without any leading namespace: | Magic_Words |
{{NAMESPACE}} | Returns the namespace portion of the current wiki page title (without the colon) | Wiki |
{{NAMESPACEE}} | Returns the url-encoded namespace portion of the current wiki page title (without the colon) | NAMESPACEE |