X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=inline;f=docs%2Fhooks.txt;h=02c9fad1b2d61e740548bbb5bb7997a104db2494;hb=fda090a7e7f85f146ec84798fda45232ab67613e;hp=640d64299a0a62340bfe8cd07b424a7d63610f7a;hpb=525f157e17c0bfaf65ea90e47a88b873bd17c576;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index 640d64299a..02c9fad1b2 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -615,6 +615,7 @@ the user is redirected back to the page. 'ArticleViewFooter': After showing the footer section of an ordinary page view $article: Article object +$patrolFooterShown: boolean whether patrol footer is shown 'ArticleViewHeader': Before the parser cache is about to be tried for article viewing. @@ -800,6 +801,19 @@ content model name, but no entry for that model exists in $wgContentHandlers. $modeName: the requested content model name &$handler: set this to a ContentHandler object, if desired. +'ContentGetParserOutput': Customize parser output for a given content object, +called by AbstractContent::getParserOutput. May be used to override the normal +model-specific rendering of page content. +$content: The Content to render +$title: Title of the page, as context +$revId: The revision ID, as context +$options: ParserOptions for rendering. To avoid confusing the parser cache, +the output can only depend on parameters provided to this hook function, not on global state. +$generateHtml: boolean, indicating whether full HTML should be generated. If false, +generation of HTML may be skipped, but other information should still be present in the +ParserOutput object. +&$output: ParserOutput, to manipulate or replace + 'ConvertContent': Called by AbstractContent::convert when a conversion to another content model is requested. $content: The Content object to be converted. @@ -1993,7 +2007,7 @@ $title : Current Title object being displayed in search results. $article: The article object corresponding to the page 'ShowRawCssJs': Customise the output of raw CSS and JavaScript in page views. -DEPRECATED, use the ContentHandler facility to handle CSS and JavaScript! +DEPRECATED, use the ContentGetParserOutput hook instead! $text: Text being shown $title: Title of the custom script/stylesheet page $output: Current OutputPage object @@ -2330,6 +2344,15 @@ database result. &$titleArray: set this to an object to override the default object returned $res: database result used to create the object +'TitleQuickPermissions': Called from Title::checkQuickPermissions to add to +or override the quick permissions check. +$title: The Title object being accessed +$user: The User performing the action +$action: Action being performed +&$errors: Array of errors +$doExpensiveQueries: Whether to do expensive DB queries +$short: Whether to return immediately on first error + 'TitleGetRestrictionTypes': Allows extensions to modify the types of protection that can be applied. $title: The title in question.