Document "MessageNotInMwNs" hook
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 16 May 2009 19:32:12 +0000 (19:32 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 16 May 2009 19:32:12 +0000 (19:32 +0000)
docs/hooks.txt

index 1dce1f0..5e4195d 100644 (file)
@@ -949,6 +949,13 @@ $message: value (string), change it to the message you want to define
 $title: name of the page changed.
 $text: new contents of the page.
 
+'MessageNotInMwNs': When trying to get a message that isn't found in the
+MediaWiki namespace (but before checking the message files)
+* &$message: message's content; can be changed
+* $lckey: message's name
+* $langcode: language code
+* $isFullKey: specifies whether $lckey is a two part key "msg/lang"
+
 'MonoBookTemplateToolboxEnd': Called by Monobook skin after toolbox links have been rendered (useful for adding more)
 Note: this is only run for the Monobook skin.  To add items to the toolbox
 for all 'SkinTemplate'-type skins, use the SkinTemplateToolboxEnd hook