42 public function __construct( $name =
'Recentchanges', $restriction =
'' ) {
43 parent::__construct( $name, $restriction );
45 $this->watchlistFilterGroupDefinition = [
46 'name' =>
'watchlist',
47 'title' =>
'rcfilters-filtergroup-watchlist',
48 'class' => ChangesListStringOptionsFilterGroup::class,
50 'isFullCoverage' =>
true,
54 'label' =>
'rcfilters-filter-watchlist-watched-label',
55 'description' =>
'rcfilters-filter-watchlist-watched-description',
56 'cssClassSuffix' =>
'watched',
57 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
58 return $rc->getAttribute(
'wl_user' );
62 'name' =>
'watchednew',
63 'label' =>
'rcfilters-filter-watchlist-watchednew-label',
64 'description' =>
'rcfilters-filter-watchlist-watchednew-description',
65 'cssClassSuffix' =>
'watchednew',
66 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
67 return $rc->getAttribute(
'wl_user' ) &&
68 $rc->getAttribute(
'rc_timestamp' ) &&
69 $rc->getAttribute(
'wl_notificationtimestamp' ) &&
70 $rc->getAttribute(
'rc_timestamp' ) >= $rc->getAttribute(
'wl_notificationtimestamp' );
74 'name' =>
'notwatched',
75 'label' =>
'rcfilters-filter-watchlist-notwatched-label',
76 'description' =>
'rcfilters-filter-watchlist-notwatched-description',
77 'cssClassSuffix' =>
'notwatched',
78 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
79 return $rc->getAttribute(
'wl_user' ) ===
null;
84 'queryCallable' =>
function ( $specialPageClassName,
$context,
$dbr,
85 &
$tables, &$fields, &$conds, &$query_options, &$join_conds, $selectedValues ) {
86 sort( $selectedValues );
87 $notwatchedCond =
'wl_user IS NULL';
88 $watchedCond =
'wl_user IS NOT NULL';
89 $newCond =
'rc_timestamp >= wl_notificationtimestamp';
91 if ( $selectedValues === [
'notwatched' ] ) {
92 $conds[] = $notwatchedCond;
96 if ( $selectedValues === [
'watched' ] ) {
97 $conds[] = $watchedCond;
101 if ( $selectedValues === [
'watchednew' ] ) {
102 $conds[] =
$dbr->makeList( [
109 if ( $selectedValues === [
'notwatched',
'watched' ] ) {
114 if ( $selectedValues === [
'notwatched',
'watchednew' ] ) {
115 $conds[] =
$dbr->makeList( [
125 if ( $selectedValues === [
'watched',
'watchednew' ] ) {
126 $conds[] = $watchedCond;
130 if ( $selectedValues === [
'notwatched',
'watched',
'watchednew' ] ) {
145 $feedFormat = $this->
getRequest()->getVal(
'feed' );
146 if ( !$this->
including() && $feedFormat ) {
148 $query[
'feedformat'] = $feedFormat ===
'atom' ?
'atom' :
'rss';
156 $out->setCdnMaxage( 10 );
159 if ( $lastmod ===
false ) {
164 '//meta.wikimedia.org/wiki/Special:MyLanguage/Help:Recent_changes',
167 parent::execute( $subpage );
174 if ( isset( $filterDefinition[
'showHideSuffix'] ) ) {
175 $filterDefinition[
'showHide'] =
'rc' . $filterDefinition[
'showHideSuffix'];
178 return $filterDefinition;
185 parent::registerFilters();
189 $this->
getUser()->isLoggedIn() &&
190 $this->
getUser()->isAllowed(
'viewmywatchlist' )
194 $watchlistGroup->getFilter(
'watched' )->setAsSupersetOf(
195 $watchlistGroup->getFilter(
'watchednew' )
202 $hideMinor = $significance->getFilter(
'hideminor' );
203 $hideMinor->setDefault( $user->getBoolOption(
'hideminor' ) );
206 $hideBots = $automated->getFilter(
'hidebots' );
207 $hideBots->setDefault(
true );
210 if ( $reviewStatus !==
null ) {
212 if ( $user->getBoolOption(
'hidepatrolled' ) ) {
213 $reviewStatus->setDefault(
'unpatrolled' );
214 $legacyReviewStatus = $this->
getFilterGroup(
'legacyReviewStatus' );
215 $legacyHidePatrolled = $legacyReviewStatus->getFilter(
'hidepatrolled' );
216 $legacyHidePatrolled->setDefault(
true );
221 $hideCategorization = $changeType->getFilter(
'hidecategorization' );
222 if ( $hideCategorization !==
null ) {
224 $hideCategorization->setDefault( $user->getBoolOption(
'hidecategorization' ) );
235 parent::parseParameters( $par, $opts );
237 $bits = preg_split(
'/\s*,\s*/', trim( $par ) );
238 foreach ( $bits as $bit ) {
239 if ( is_numeric( $bit ) ) {
240 $opts[
'limit'] = $bit;
244 if ( preg_match(
'/^limit=(\d+)$/', $bit, $m ) ) {
245 $opts[
'limit'] = $m[1];
247 if ( preg_match(
'/^days=(\d+(?:\.\d+)?)$/', $bit, $m ) ) {
248 $opts[
'days'] = $m[1];
250 if ( preg_match(
'/^namespace=(.*)$/', $bit, $m ) ) {
251 $opts[
'namespace'] = $m[1];
253 if ( preg_match(
'/^tagfilter=(.*)$/', $bit, $m ) ) {
254 $opts[
'tagfilter'] = $m[1];
268 $rcQuery = RecentChange::getQueryInfo();
270 $fields = array_merge( $rcQuery[
'fields'], $fields );
271 $join_conds = array_merge( $join_conds, $rcQuery[
'joins'] );
274 if ( $user->isLoggedIn() && $user->isAllowed(
'viewmywatchlist' ) ) {
276 $fields[] =
'wl_user';
277 $fields[] =
'wl_notificationtimestamp';
278 $join_conds[
'watchlist'] = [
'LEFT JOIN', [
279 'wl_user' => $user->getId(),
281 'wl_namespace=rc_namespace'
287 $fields[] =
'page_latest';
288 $join_conds[
'page'] = [
'LEFT JOIN',
'rc_cur_id=page_id' ];
290 $tagFilter = $opts[
'tagfilter'] ? explode(
'|', $opts[
'tagfilter'] ) : [];
291 ChangeTags::modifyDisplayQuery(
311 'ORDER BY' =>
'rc_timestamp DESC',
312 'LIMIT' => $opts[
'limit']
314 if ( in_array(
'DISTINCT', $query_options ) ) {
320 $orderByAndLimit[
'ORDER BY'] =
'rc_timestamp DESC, rc_id DESC';
321 $orderByAndLimit[
'GROUP BY'] =
'rc_timestamp, rc_id';
327 $query_options = array_merge( $orderByAndLimit, $query_options );
333 $conds + [
'rc_new' => [ 0, 1 ] ],
360 $query[
'action'] =
'feedrecentchanges';
361 $feedLimit = $this->
getConfig()->get(
'FeedLimit' );
362 if ( $query[
'limit'] > $feedLimit ) {
363 $query[
'limit'] = $feedLimit;
376 $limit = $opts[
'limit'];
378 $showWatcherCount = $this->
getConfig()->get(
'RCShowWatchingUsers' )
379 && $this->
getUser()->getOption(
'shownumberswatching' );
384 $list->initChangesListRows(
$rows );
386 $userShowHiddenCats = $this->
getUser()->getBoolOption(
'showhiddencats' );
387 $rclistOutput = $list->beginRecentChangesList();
392 foreach (
$rows as $obj ) {
396 $rc = RecentChange::newFromRow( $obj );
398 # Skip CatWatch entries for hidden cats based on user preference
401 !$userShowHiddenCats &&
402 $rc->getParam(
'hidden-cat' )
407 $rc->counter = $counter++;
408 # Check if the page has been updated since the last visit
409 if ( $this->
getConfig()->
get(
'ShowUpdatedMarker' )
410 && !empty( $obj->wl_notificationtimestamp )
412 $rc->notificationtimestamp = ( $obj->rc_timestamp >= $obj->wl_notificationtimestamp );
414 $rc->notificationtimestamp =
false;
416 # Check the number of users watching the page
417 $rc->numberofWatchingusers = 0;
418 if ( $showWatcherCount && $obj->rc_namespace >= 0 ) {
419 if ( !isset( $watcherCache[$obj->rc_namespace][$obj->rc_title] ) ) {
420 $watcherCache[$obj->rc_namespace][$obj->rc_title] =
421 MediaWikiServices::getInstance()->getWatchedItemStore()->countWatchers(
422 new TitleValue( (
int)$obj->rc_namespace, $obj->rc_title )
425 $rc->numberofWatchingusers = $watcherCache[$obj->rc_namespace][$obj->rc_title];
428 $changeLine = $list->recentChangesLine( $rc, !empty( $obj->wl_user ), $counter );
429 if ( $changeLine !==
false ) {
430 $rclistOutput .= $changeLine;
434 $rclistOutput .= $list->endRecentChangesList();
436 if (
$rows->numRows() === 0 ) {
439 $this->
getOutput()->setStatusCode( 404 );
442 $this->
getOutput()->addHTML( $rclistOutput );
455 $defaults = $opts->getAllValues();
456 $nondefaults = $opts->getChangedValues();
462 $panel[] = $this->
optionsPanel( $defaults, $nondefaults, $numRows );
466 $extraOptsCount = count( $extraOpts );
468 $submit =
' ' . Xml::submitButton( $this->
msg(
'recentchanges-submit' )->
text() );
470 $out = Xml::openElement(
'table', [
'class' =>
'mw-recentchanges-table' ] );
471 foreach ( $extraOpts as $name => $optionRow ) {
472 # Add submit button to the last row only
474 $addSubmit = ( $count === $extraOptsCount ) ? $submit :
'';
476 $out .= Xml::openElement(
'tr', [
'class' => $name .
'Form' ] );
477 if ( is_array( $optionRow ) ) {
480 [
'class' =>
'mw-label mw-' . $name .
'-label' ],
485 [
'class' =>
'mw-input' ],
486 $optionRow[1] . $addSubmit
491 [
'class' =>
'mw-input',
'colspan' => 2 ],
492 $optionRow . $addSubmit
495 $out .= Xml::closeElement(
'tr' );
497 $out .= Xml::closeElement(
'table' );
499 $unconsumed = $opts->getUnconsumedValues();
500 foreach ( $unconsumed as $key =>
$value ) {
505 $out .= Html::hidden(
'title',
$t->getPrefixedText() );
506 $form = Xml::tags(
'form', [
'action' =>
wfScript() ],
$out );
508 $panelString = implode(
"\n", $panel );
510 $rcoptions = Xml::fieldset(
511 $this->
msg(
'recentchanges-legend' )->
text(),
513 [
'class' =>
'rcoptions cloptions' ]
518 $rcfilterContainer = Html::element(
520 [
'class' =>
'rcfilters-container' ]
523 $loadingContainer = Html::rawElement(
525 [
'class' =>
'rcfilters-spinner' ],
528 [
'class' =>
'rcfilters-spinner-bounce' ]
536 [
'class' =>
'rcfilters-head' ],
537 $rcfilterContainer . $rcoptions
542 $this->
getOutput()->addHTML( $loadingContainer );
544 $this->
getOutput()->addHTML( $rcoptions );
556 $message = $this->
msg(
'recentchangestext' )->inContentLanguage();
557 if ( !$message->isDisabled() ) {
558 $contLang = MediaWikiServices::getInstance()->getContentLanguage();
562 $parserOutput = MessageCache::singleton()->parse(
564 $this->getPageTitle(),
571 $content = $parserOutput->getText( [
572 'enableSectionEditLinks' =>
false,
575 $this->
getOutput()->addParserOutputMetadata( $parserOutput );
578 'lang' => $contLang->getHtmlCode(),
579 'dir' => $contLang->getDir(),
582 $topLinksAttributes = [
'class' =>
'mw-recentchanges-toplinks' ];
586 $collapsedState = $this->
getRequest()->getCookie(
'rcfilters-toplinks-collapsed-state' );
588 $topLinksAttributes[
'class' ] .= $collapsedState !==
'expanded' ?
589 ' mw-recentchanges-toplinks-collapsed' :
'';
592 $contentTitle =
new OOUI\ButtonWidget( [
593 'classes' => [
'mw-recentchanges-toplinks-title' ],
594 'label' =>
new OOUI\HtmlSnippet( $this->
msg(
'rcfilters-other-review-tools' )->parse() ),
596 'indicator' => $collapsedState !==
'expanded' ?
'down' :
'up',
597 'flags' => [
'progressive' ],
600 $contentWrapper = Html::rawElement(
'div',
602 [
'class' =>
'mw-recentchanges-toplinks-content mw-collapsible-content' ],
607 $content = $contentTitle . $contentWrapper;
613 $topLinksAttributes = array_merge( $topLinksAttributes, $langAttributes );
617 Html::rawElement(
'div', $topLinksAttributes,
$content )
629 $opts->consumeValues( [
630 'namespace',
'invert',
'associated',
'tagfilter'
636 $tagFilter = ChangeTags::buildTagFilterSelector(
637 $opts[
'tagfilter'],
false, $this->
getContext() );
638 if ( count( $tagFilter ) ) {
639 $extraOpts[
'tagfilter'] = $tagFilter;
643 if ( $this->
getName() ===
'Recentchanges' ) {
644 Hooks::run(
'SpecialRecentChangesPanel', [ &$extraOpts, $opts ] );
654 parent::addModules();
656 $out->addModules(
'mediawiki.special.recentchanges' );
668 $lastmod =
$dbr->selectField(
'recentchanges',
'MAX(rc_timestamp)',
'', __METHOD__ );
680 $nsSelect = Html::namespaceSelector(
681 [
'selected' => $opts[
'namespace'],
'all' =>
'' ],
682 [
'name' =>
'namespace',
'id' =>
'namespace' ]
684 $nsLabel = Xml::label( $this->
msg(
'namespace' )->
text(),
'namespace' );
685 $invert = Xml::checkLabel(
686 $this->
msg(
'invert' )->
text(),
'invert',
'nsinvert',
688 [
'title' => $this->
msg(
'tooltip-invert' )->
text() ]
690 $associated = Xml::checkLabel(
691 $this->
msg(
'namespace_association' )->
text(),
'associated',
'nsassociated',
693 [
'title' => $this->
msg(
'tooltip-namespace_association' )->
text() ]
696 return [ $nsLabel,
"$nsSelect $invert $associated" ];
710 $categories = array_map(
'trim', explode(
'|', $opts[
'categories'] ) );
712 if ( !count( $categories ) ) {
718 foreach ( $categories as $cat ) {
730 foreach (
$rows as $k => $r ) {
731 $nt = Title::makeTitle( $r->rc_namespace, $r->rc_title );
732 $id = $nt->getArticleID();
734 continue; #
Page might have been deleted...
736 if ( !in_array( $id, $articles ) ) {
739 if ( !isset( $a2r[$id] ) ) {
747 if ( !count( $articles ) || !count( $cats ) ) {
753 $catFind->
seed( $articles, $cats, $opts[
'categories_any'] ?
'OR' :
'AND' );
754 $match = $catFind->run();
758 foreach ( $match as $id ) {
759 foreach ( $a2r[$id] as
$rev ) {
761 $newrows[$k] = $rowsarr[$k];
780 $title =
new HtmlArmor(
'<strong>' . htmlspecialchars( $title ) .
'</strong>' );
784 'data-params' => json_encode( $override ),
785 'data-keys' => implode(
',', array_keys( $override ) ),
798 $options = $nondefaults + $defaults;
801 $msg = $this->
msg(
'rclegend' );
802 if ( !$msg->isDisabled() ) {
803 $note .=
'<div class="mw-rclegend">' . $msg->parse() .
"</div>\n";
811 [
'from' =>
'' ], $nondefaults );
813 $noteFromMsg = $this->
msg(
'rcnotefrom' )
820 ->numParams( $numRows );
821 $note .= Html::rawElement(
823 [
'class' =>
'rcnotefrom' ],
824 $noteFromMsg->parse()
829 [
'class' =>
'rcoptions-listfromreset' ],
830 $this->
msg(
'parentheses' )->rawParams( $resetLink )->parse()
835 # Sort data for display and make sure it's unique after we've added user data.
836 $linkLimits = $config->get(
'RCLinkLimits' );
839 $linkLimits = array_unique( $linkLimits );
841 $linkDays = $config->get(
'RCLinkDays' );
844 $linkDays = array_unique( $linkDays );
848 foreach ( $linkLimits as
$value ) {
852 $cl =
$lang->pipeList( $cl );
856 foreach ( $linkDays as
$value ) {
860 $dl =
$lang->pipeList( $dl );
862 $showhide = [
'show',
'hide' ];
867 $msg = $filter->getShowHide();
868 $linkMessage = $this->
msg( $msg .
'-' . $showhide[1 -
$options[$key]] );
871 if ( !$linkMessage->exists() ) {
872 $linkMessage = $this->
msg( $showhide[1 -
$options[$key]] );
876 [ $key => 1 -
$options[$key] ], $nondefaults );
879 'class' =>
"$msg rcshowhideoption clshowhideoption",
880 'data-filter-name' => $filter->getName(),
883 if ( $filter->isFeatureAvailableOnStructuredUi( $this ) ) {
884 $attribs[
'data-feature-in-structured-ui'] =
true;
887 $links[] = Html::rawElement(
890 $this->
msg( $msg )->rawParams(
$link )->parse()
896 $now =
$lang->userTimeAndDate( $timestamp, $user );
897 $timenow =
$lang->userTime( $timestamp, $user );
898 $datenow =
$lang->userDate( $timestamp, $user );
899 $pipedLinks =
'<span class="rcshowhide">' .
$lang->pipeList( $links ) .
'</span>';
901 $rclinks =
'<span class="rclinks">' . $this->
msg(
'rclinks' )->rawParams( $cl, $dl,
'' )
902 ->parse() .
'</span>';
905 $this->
msg(
'rclistfrom' )->rawParams( $now, $timenow, $datenow )->parse(),
906 [
'from' => $timestamp ],
910 return "{$note}$rclinks<br />$pipedLinks<br />$rclistfrom";
922 $systemPrefValue = $this->
getUser()->getIntOption(
'rclimit' );
925 return $this->
getUser()->getIntOption( static::$limitPreferenceName, $systemPrefValue );
929 return $systemPrefValue;
within a display generated by the Derivative if and wherever such third party notices normally appear The contents of the NOTICE file are for informational purposes only and do not modify the License You may add Your own attribution notices within Derivative Works that You alongside or as an addendum to the NOTICE text from the provided that such additional attribution notices cannot be construed as modifying the License You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for or distribution of Your or for any such Derivative Works as a provided Your and distribution of the Work otherwise complies with the conditions stated in this License Submission of Contributions Unless You explicitly state any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this without any additional terms or conditions Notwithstanding the nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions Trademarks This License does not grant permission to use the trade service or product names of the except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file Disclaimer of Warranty Unless required by applicable law or agreed to in Licensor provides the WITHOUT WARRANTIES OR CONDITIONS OF ANY either express or including
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text
wfTimestampNow()
Convenience function; returns MediaWiki timestamp for the present time.
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
wfAppendQuery( $url, $query)
Append a query string to an existing URL, which may or may not already have query string parameters a...
wfScript( $script='index')
Get the path to a specified script file, respecting file extensions; this is a wrapper around $wgScri...
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
The "CategoryFinder" class takes a list of articles, creates an internal representation of all their ...
seed( $articleIds, $categories, $mode='AND', $maxdepth=-1)
Initializes the instance.
Special page which uses a ChangesList to show query results.
runMainQueryHook(&$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts)
registerFiltersFromDefinitions(array $definition)
Register filters from a definition object.
convertParamsForLink( $params)
Convert parameters values from true/false to 1/0 so they are not omitted by wfArrayToCgi() T38524.
getFilterGroup( $groupName)
Gets a specified ChangesListFilterGroup by name.
isStructuredFilterUiEnabled()
Check whether the structured filter UI is enabled.
areFiltersInConflict()
Check if filters are in conflict and guaranteed to return no results.
outputNoResults()
Add the "no results" message to the output.
getLegacyShowHideFilters()
getOptions()
Get the current FormOptions for this request.
setBottomText(FormOptions $opts)
Send the text to be displayed after the options.
makeLegend()
Return the legend displayed within the fieldset.
const NONE
Signifies that no options in the group are selected, meaning the group has no effect.
static newFromContext(IContextSource $context, array $groups=[])
Fetch an appropriate changes list class for the specified context Some users might want to use an enh...
Marks HTML that shouldn't be escaped.
getName()
Get the name of this Special Page.
getOutput()
Get the OutputPage being used for this instance.
getUser()
Shortcut to get the User executing this instance.
addFeedLinks( $params)
Adds RSS/atom links.
getContext()
Gets the context this SpecialPage is executed in.
msg( $key)
Wrapper around wfMessage that sets the current context.
getConfig()
Shortcut to get main config object.
getRequest()
Get the WebRequest being used for this instance.
getPageTitle( $subpage=false)
Get a self-referential title object.
getLanguage()
Shortcut to get user's language.
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
A special page that lists last changes made to the wiki.
filterByCategories(&$rows, FormOptions $opts)
Filter $rows by categories set in $opts.
optionsPanel( $defaults, $nondefaults, $numRows)
Creates the options panel.
isIncludable()
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
setTopText(FormOptions $opts)
Send the text to be displayed above the options.
getExtraOptions( $opts)
Get options to be displayed in a form.
makeOptionsLink( $title, $override, $options, $active=false)
Makes change an option link which carries all the other options.
getDB()
Return a IDatabase object for reading.
execute( $subpage)
Main execution point.
static $savedQueriesPreferenceName
addModules()
Add page-specific modules.
getFeedQuery()
Get URL query parameters for action=feedrecentchanges API feed of current recent changes view.
static $daysPreferenceName
checkLastModified()
Get last modified date, for client caching Don't use this if we are using the patrol feature,...
doHeader( $opts, $numRows)
Set the text to be displayed above the changes.
static $limitPreferenceName
transformFilterDefinition(array $filterDefinition)
@inheritDoc
parseParameters( $par, FormOptions $opts)
Process $par and put options found in $opts.
getDefaultLimit()
Get the default value of the number of changes to display when loading the result set.
__construct( $name='Recentchanges', $restriction='')
namespaceFilterForm(FormOptions $opts)
Creates the choose namespace selection.
outputChangesList( $rows, $opts)
Build and output the actual changes list.
outputFeedLinks()
Output feed links.
registerFilters()
@inheritDoc
static $collapsedPreferenceName
$watchlistFilterGroupDefinition
doMainQuery( $tables, $fields, $conds, $query_options, $join_conds, FormOptions $opts)
@inheritDoc
Represents a page (or page fragment) title within MediaWiki.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction $rows
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context
this hook is for auditing only RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist & $tables
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out
usually copyright or history_copyright This message must be in HTML not wikitext & $link
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing & $attribs
null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify $query
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc $rev
Interface for type hinting (accepts WikiPage, Article, ImagePage, CategoryPage)
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
if(!isset( $args[0])) $lang