Help:Parser functions
Jump to navigation
Jump to search
| Driver's Manual | ||||||||||||
| Page | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| New • Search • Info • Move • Delete | ||||||||||||
| Editing | ||||||||||||
| ||||||||||||
| Account | ||||||||||||
| Account • Preferences | ||||||||||||
| Directory... |
Parser functions, or magic words, are essentially callbacks to special, software-level operations which aren't otherwise possible through regular user-defined means. Their syntax is nonetheless quite similar to templates, and may take one of a couple common forms:
- Variables, not to be confused with the extension of the same name, which itself operates via parser functions. These generally have
{{ALLCAPSNAMES}}and return environmental info, like system time or language, statistics, and page titles. - Functions, which look more like this
{{#this:}}and accept parameters much like templates. Many extensions build on the core MediaWiki libraries with their own function hooks.
For our purposes, all hooks listed on Special:Version are documented here. Behavior switches (i.e. __THESETAGS__) seem to be omitted and may be documented elsewhere; see here for the list of <extensiontags>.

