Manual:Hooks/LanguageGetMagic

See Magic Words for current implementations.

LanguageGetMagic was an event for which a hook was available. Correspondingly it is an index of the array $wgHooks. The array value is an array of function names. To add a function name, a parser function extension can use a statement like: These functions provide for each parser function, optionally depending on $Langcode, a list of names that can be used in the wikitext for the parser function, and whether these names are case-sensitive (0=no, 1=yes): Thus in the simplest case it defines a single name for a single function, independent of language: Function setFunctionHook in Parser.php fills array mFunctionSynonyms with magic word IDs for all synonyms in the applicable language of all functions: and uses this in function braceSubstitution to convert a function synonym to a function ID.

In MediaWiki 1.6.x
Prior to MW 1.7, there was only one argument, which contained the array of magic words for the current language.