39 public function __construct( $page =
'Watchlist', $restriction =
'viewmywatchlist' ) {
40 parent::__construct( $page, $restriction );
42 $this->maxDays = $this->
getConfig()->get(
'RCMaxAge' ) / ( 3600 * 24 );
62 'mediawiki.special.changeslist.visitedstatus',
63 'mediawiki.special.watchlist',
65 $output->addModuleStyles( [
'mediawiki.special.watchlist.styles' ] );
68 if ( $mode !==
false ) {
77 $output->redirect( $title->getLocalURL() );
88 if ( ( $config->get(
'EnotifWatchlist' ) || $config->get(
'ShowUpdatedMarker' ) )
91 && $user->matchEditToken(
$request->getVal(
'token' ) )
93 $user->clearAllNotifications();
99 parent::execute( $subpage );
102 $output->addModuleStyles( [
'mediawiki.rcfilters.highlightCircles.seenunseen.styles' ] );
104 $output->addJsConfigVars(
'wgStructuredChangeFiltersLiveUpdateSupported',
false );
106 'wgStructuredChangeFiltersEditWatchlistUrl',
113 return $this->
getRequest()->getBool(
'rcfilters' ) || (
114 $this->
getConfig()->get(
'StructuredChangeFiltersOnWatchlist' ) &&
115 $this->
getUser()->getOption(
'rcenhancedfilters' )
120 return $this->
getConfig()->get(
'StructuredChangeFiltersOnWatchlist' ) &&
121 $this->
getUser()->getDefaultOption(
'rcenhancedfilters' );
142 if ( isset( $filterDefinition[
'showHideSuffix'] ) ) {
143 $filterDefinition[
'showHide'] =
'wl' . $filterDefinition[
'showHideSuffix'];
146 return $filterDefinition;
153 parent::registerFilters();
157 'name' =>
'extended-group',
160 'name' =>
'extended',
161 'isReplacedInStructuredUi' =>
true,
162 'activeValue' =>
false,
163 'default' => $this->
getUser()->getBoolOption(
'extendwatchlist' ),
164 'queryCallable' =>
function ( $specialClassName, $ctx,
$dbr, &
$tables,
165 &$fields, &$conds, &$query_options, &$join_conds ) {
166 $nonRevisionTypes = [
RC_LOG ];
167 Hooks::run(
'SpecialWatchlistGetNonRevisionTypes', [ &$nonRevisionTypes ] );
168 if ( $nonRevisionTypes ) {
169 $conds[] =
$dbr->makeList(
171 'rc_this_oldid=page_latest',
172 'rc_type' => $nonRevisionTypes,
185 ->getFilter(
'hidepreviousrevisions' )
186 ->setDefault( !$this->
getUser()->getBoolOption(
'extendwatchlist' ) );
190 'name' =>
'watchlistactivity',
191 'title' =>
'rcfilters-filtergroup-watchlistactivity',
192 'class' => ChangesListStringOptionsFilterGroup::class,
194 'isFullCoverage' =>
true,
198 'label' =>
'rcfilters-filter-watchlistactivity-unseen-label',
199 'description' =>
'rcfilters-filter-watchlistactivity-unseen-description',
200 'cssClassSuffix' =>
'watchedunseen',
201 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
202 $changeTs = $rc->getAttribute(
'rc_timestamp' );
203 $lastVisitTs = $rc->getAttribute(
'wl_notificationtimestamp' );
204 return $lastVisitTs !==
null && $changeTs >= $lastVisitTs;
209 'label' =>
'rcfilters-filter-watchlistactivity-seen-label',
210 'description' =>
'rcfilters-filter-watchlistactivity-seen-description',
211 'cssClassSuffix' =>
'watchedseen',
212 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
213 $changeTs = $rc->getAttribute(
'rc_timestamp' );
214 $lastVisitTs = $rc->getAttribute(
'wl_notificationtimestamp' );
215 return $lastVisitTs ===
null || $changeTs < $lastVisitTs;
220 'queryCallable' =>
function ( $specialPageClassName,
$context,
$dbr,
221 &
$tables, &$fields, &$conds, &$query_options, &$join_conds, $selectedValues ) {
222 if ( $selectedValues === [
'seen' ] ) {
223 $conds[] =
$dbr->makeList( [
224 'wl_notificationtimestamp IS NULL',
225 'rc_timestamp < wl_notificationtimestamp'
227 } elseif ( $selectedValues === [
'unseen' ] ) {
228 $conds[] =
$dbr->makeList( [
229 'wl_notificationtimestamp IS NOT NULL',
230 'rc_timestamp >= wl_notificationtimestamp'
239 $hideMinor = $significance->getFilter(
'hideminor' );
240 $hideMinor->setDefault( $user->getBoolOption(
'watchlisthideminor' ) );
243 $hideBots = $automated->getFilter(
'hidebots' );
244 $hideBots->setDefault( $user->getBoolOption(
'watchlisthidebots' ) );
247 $hideAnons = $registration->getFilter(
'hideanons' );
248 $hideAnons->setDefault( $user->getBoolOption(
'watchlisthideanons' ) );
249 $hideLiu = $registration->getFilter(
'hideliu' );
250 $hideLiu->setDefault( $user->getBoolOption(
'watchlisthideliu' ) );
253 if ( $reviewStatus !==
null ) {
255 $hidePatrolled = $reviewStatus->getFilter(
'hidepatrolled' );
256 $hidePatrolled->setDefault( $user->getBoolOption(
'watchlisthidepatrolled' ) );
260 $hideMyself = $authorship->getFilter(
'hidemyself' );
261 $hideMyself->setDefault( $user->getBoolOption(
'watchlisthideown' ) );
264 $hideCategorization = $changeType->getFilter(
'hidecategorization' );
265 if ( $hideCategorization !==
null ) {
267 $hideCategorization->setDefault( $user->getBoolOption(
'watchlisthidecategorization' ) );
277 $opts = parent::getDefaultOptions();
288 parent::validateOptions( $opts );
297 if ( $this->customFilters ===
null ) {
298 $this->customFilters = parent::getCustomFilters();
299 Hooks::run(
'SpecialWatchlistFilters', [ $this, &$this->customFilters ],
'1.23' );
315 static $compatibilityMap = [
316 'hideMinor' =>
'hideminor',
317 'hideBots' =>
'hidebots',
318 'hideAnons' =>
'hideanons',
319 'hideLiu' =>
'hideliu',
320 'hidePatrolled' =>
'hidepatrolled',
321 'hideOwn' =>
'hidemyself',
325 foreach ( $compatibilityMap as $from => $to ) {
326 if ( isset(
$params[$from] ) ) {
332 if ( $this->
getRequest()->getVal(
'action' ) ==
'submit' ) {
333 $allBooleansFalse = [];
341 foreach ( $this->filterGroups as $filterGroup ) {
344 foreach ( $filterGroup->getFilters() as $filter ) {
345 if ( $filter->displaysOnUnstructuredUi() ) {
346 $allBooleansFalse[$filter->getName()] =
false;
358 $opts->fetchValuesFromRequest(
$request );
370 parent::buildQuery(
$tables, $fields, $conds, $query_options, $join_conds,
374 if ( $opts[
'days'] > 0 ) {
375 $conds[] =
'rc_timestamp > ' .
376 $dbr->addQuotes(
$dbr->timestamp( time() - $opts[
'days'] * 3600 * 24 ) );
389 $tables = array_merge( [
'recentchanges',
'watchlist' ],
$tables );
392 $join_conds = array_merge(
397 'wl_user' => $user->getId(),
398 'wl_namespace=rc_namespace',
407 $fields[] =
'page_latest';
408 $join_conds[
'page'] = [
'LEFT JOIN',
'rc_cur_id=page_id' ];
410 $fields[] =
'wl_notificationtimestamp';
414 if ( !$user->isAllowed(
'deletedhistory' ) ) {
416 } elseif ( !$user->isAllowedAny(
'suppressrevision',
'viewsuppressed' ) ) {
422 $conds[] =
$dbr->makeList( [
424 $dbr->bitAnd(
'rc_deleted', $bitmask ) .
" != $bitmask",
428 $tagFilter = $opts[
'tagfilter'] ? explode(
'|', $opts[
'tagfilter'] ) : [];
445 'ORDER BY' =>
'rc_timestamp DESC',
446 'LIMIT' => $opts[
'limit']
448 if ( in_array(
'DISTINCT', $query_options ) ) {
454 $orderByAndLimit[
'ORDER BY'] =
'rc_timestamp DESC, rc_id DESC';
455 $orderByAndLimit[
'GROUP BY'] =
'rc_timestamp, rc_id';
459 $query_options = array_merge( $orderByAndLimit, $query_options );
474 return parent::runMainQueryHook(
$tables, $fields, $conds, $query_options, $join_conds, $opts )
476 'SpecialWatchlistQuery',
477 [ &$conds, &
$tables, &$join_conds, &$fields, $opts ],
496 $wlToken = $user->getTokenFromOption(
'watchlisttoken' );
499 'action' =>
'feedwatchlist',
501 'wlowner' => $user->getName(),
502 'wltoken' => $wlToken,
518 # Show a message about replica DB lag, if applicable
521 $output->showLagWarning( $lag );
524 # If no rows to display, show message before try to render the list
525 if (
$rows->numRows() == 0 ) {
527 "<div class='mw-changeslist-empty'>\n$1\n</div>",
'recentchanges-noresult'
535 $list->setWatchlistDivs();
536 $list->initChangesListRows(
$rows );
537 if ( $user->getOption(
'watchlistunwatchlinks' ) ) {
545 return $this->getLinkRenderer()
546 ->makeKnownLink( $rc->getTitle(),
547 $this->msg(
'watchlist-unwatch' )->text(), [
548 'class' =>
'mw-unwatch-link',
549 'title' => $this->msg(
'tooltip-ca-unwatch' )->text()
550 ], [
'action' =>
'unwatch' ] ) .
' ';
556 if ( $this->
getConfig()->
get(
'RCShowWatchingUsers' )
557 && $user->getOption(
'shownumberswatching' )
559 $watchedItemStore = MediaWikiServices::getInstance()->getWatchedItemStore();
562 $s = $list->beginRecentChangesList();
568 $userShowHiddenCats = $this->
getUser()->getBoolOption(
'showhiddencats' );
570 foreach (
$rows as $obj ) {
574 # Skip CatWatch entries for hidden cats based on user preference
577 !$userShowHiddenCats &&
578 $rc->getParam(
'hidden-cat' )
583 $rc->counter = $counter++;
585 if ( $this->
getConfig()->
get(
'ShowUpdatedMarker' ) ) {
586 $updated = $obj->wl_notificationtimestamp;
591 if ( isset( $watchedItemStore ) ) {
592 $rcTitleValue =
new TitleValue( (
int)$obj->rc_namespace, $obj->rc_title );
593 $rc->numberofWatchingusers = $watchedItemStore->countWatchers( $rcTitleValue );
595 $rc->numberofWatchingusers = 0;
598 $changeLine = $list->recentChangesLine( $rc, $updated, $counter );
599 if ( $changeLine !==
false ) {
603 $s .= $list->endRecentChangesList();
619 $this->
msg(
'watchlistfor2', $user->getName() )
621 $this->getLanguage(),
622 $this->getLinkRenderer()
630 $form .= Xml::openElement(
'form', [
633 'id' =>
'mw-watchlist-form'
635 $form .= Html::hidden(
'title', $this->
getPageTitle()->getPrefixedText() );
636 $form .= Xml::openElement(
638 [
'id' =>
'mw-watchlist-options',
'class' =>
'cloptions' ]
640 $form .= Xml::element(
641 'legend',
null, $this->
msg(
'watchlist-options' )->
text()
649 if ( $opts[
'days'] > 0 ) {
650 $days = $opts[
'days'];
655 $wlInfo = Html::rawElement(
657 [
'class' =>
'wlinfo' ],
658 $this->
msg(
'wlnote' )->numParams( $numRows, round( $days * 24 ) )->params(
659 $lang->userDate( $timestamp, $user ),
$lang->userTime( $timestamp, $user )
663 $nondefaults = $opts->getChangedValues();
664 $cutofflinks = Html::rawElement(
666 [
'class' =>
'cldays cloption' ],
670 # Spit out some control panel links
672 $namesOfDisplayedFilters = [];
674 if ( !$group->isPerGroupRequestParameter() ) {
675 foreach ( $group->getFilters() as $filterName => $filter ) {
676 if ( $filter->displaysOnUnstructuredUi( $this ) ) {
677 $namesOfDisplayedFilters[] = $filterName;
680 $filter->getShowHide(),
683 $filter->isFeatureAvailableOnStructuredUi( $this )
690 $hiddenFields = $nondefaults;
691 $hiddenFields[
'action'] =
'submit';
692 unset( $hiddenFields[
'namespace'] );
693 unset( $hiddenFields[
'invert'] );
694 unset( $hiddenFields[
'associated'] );
695 unset( $hiddenFields[
'days'] );
696 foreach ( $namesOfDisplayedFilters as $filterName ) {
697 unset( $hiddenFields[$filterName] );
700 # Namespace filter and put the whole form together.
702 $form .= $cutofflinks;
703 $form .= Html::rawElement(
705 [
'class' =>
'clshowhide' ],
706 $this->
msg(
'watchlist-hide' ) .
707 $this->
msg(
'colon-separator' )->escaped() .
708 implode(
' ', $links )
710 $form .=
"\n<br />\n";
712 $namespaceForm = Html::namespaceSelector(
714 'selected' => $opts[
'namespace'],
716 'label' => $this->
msg(
'namespace' )->
text()
718 'name' =>
'namespace',
720 'class' =>
'namespaceselector',
723 $namespaceForm .=
'<span class="mw-input-with-label">' . Xml::checkLabel(
724 $this->
msg(
'invert' )->
text(),
728 [
'title' => $this->
msg(
'tooltip-invert' )->
text() ]
730 $namespaceForm .=
'<span class="mw-input-with-label">' . Xml::checkLabel(
731 $this->
msg(
'namespace_association' )->
text(),
735 [
'title' => $this->
msg(
'tooltip-namespace_association' )->
text() ]
737 $form .= Html::rawElement(
739 [
'class' =>
'namespaceForm cloption' ],
743 $form .= Xml::submitButton(
744 $this->
msg(
'watchlist-submit' )->
text(),
745 [
'class' =>
'cloption-submit' ]
747 foreach ( $hiddenFields as $key =>
$value ) {
748 $form .= Html::hidden( $key,
$value ) .
"\n";
750 $form .= Xml::closeElement(
'fieldset' ) .
"\n";
751 $form .= Xml::closeElement(
'form' ) .
"\n";
755 $rcfilterContainer = Html::element(
757 [
'class' =>
'rcfilters-container' ]
760 $loadingContainer = Html::rawElement(
762 [
'class' =>
'rcfilters-spinner' ],
765 [
'class' =>
'rcfilters-spinner-bounce' ]
773 [
'class' =>
'rcfilters-head' ],
774 $rcfilterContainer . $form
779 $this->
getOutput()->addHTML( $loadingContainer );
793 $days = array_map(
'strval', [ 1 / 24, 2 / 24, 6 / 24, 12 / 24, 1, 3, 7 ] );
795 $userWatchlistOption = (
string)$this->
getUser()->getOption(
'watchlistdays' );
797 if ( !in_array( $userWatchlistOption, $days ) && $userWatchlistOption !==
'0' ) {
798 $days[] = $userWatchlistOption;
803 if ( !in_array(
$maxDays, $days ) ) {
808 if ( $selected <= 0 ) {
813 if ( !in_array( $selected, $days ) ) {
817 $select =
new XmlSelect(
'days',
'days', $selected );
820 foreach ( $days as
$value ) {
822 $name = $this->
msg(
'hours' )->numParams( $value * 24 )->text();
824 $name = $this->
msg(
'days' )->numParams( $value )->text();
826 $select->addOption( $name,
$value );
829 return $select->getHTML() .
"\n<br />\n";
838 $showUpdatedMarker = $this->
getConfig()->get(
'ShowUpdatedMarker' );
841 $watchlistHeader =
'';
842 if ( $numItems == 0 ) {
843 $watchlistHeader = $this->
msg(
'nowatchlist' )->parse();
845 $watchlistHeader .= $this->
msg(
'watchlist-details' )->numParams( $numItems )->parse() .
"\n";
846 if ( $this->
getConfig()->
get(
'EnotifWatchlist' )
847 && $user->getOption(
'enotifwatchlistpages' )
849 $watchlistHeader .= $this->
msg(
'wlheader-enotif' )->parse() .
"\n";
851 if ( $showUpdatedMarker ) {
852 $watchlistHeader .= $this->
msg(
854 'rcfilters-watchlist-showupdated' :
855 'wlheader-showupdated'
859 $form .= Html::rawElement(
861 [
'class' =>
'watchlistDetails' ],
865 if ( $numItems > 0 && $showUpdatedMarker ) {
866 $form .= Xml::openElement(
'form', [
'method' =>
'post',
868 'id' =>
'mw-watchlist-resetbutton' ] ) .
"\n" .
869 Xml::submitButton( $this->
msg(
'enotif_reset' )->
text(),
870 [
'name' =>
'mw-watchlist-reset-submit' ] ) .
"\n" .
871 Html::hidden(
'token', $user->getEditToken() ) .
"\n" .
872 Html::hidden(
'reset',
'all' ) .
"\n";
873 foreach ( $nondefaults as $key =>
$value ) {
874 $form .= Html::hidden( $key,
$value ) .
"\n";
876 $form .= Xml::closeElement(
'form' ) .
"\n";
885 $attribs = [
'class' =>
'mw-input-with-label clshowhideoption cloption' ];
886 if ( $inStructuredUi ) {
887 $attribs[
'data-feature-in-structured-ui' ] =
true;
890 return Html::rawElement(
894 $this->
msg( $message,
'' )->
text(),
910 $store = MediaWikiServices::getInstance()->getWatchedItemStore();
911 $count = $store->countWatchedItems( $this->
getUser() );
912 return floor( $count / 2 );
916 return $this->
getUser()->getIntOption(
'wllimit' );
920 return floatval( $this->
getUser()->getOption(
'watchlistdays' ) );
wfTimestampNow()
Convenience function; returns MediaWiki timestamp for the present time.
wfGetLB( $wiki=false)
Get a load balancer object.
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
wfScript( $script='index')
Get the path to a specified script file, respecting file extensions; this is a wrapper around $wgScri...
If the group is active, any unchecked filters will translate to hide parameters in the URL.
Special page which uses a ChangesList to show query results.
getFilterGroup( $groupName)
Gets a specified ChangesListFilterGroup by name.
areFiltersInConflict()
Check if filters are in conflict and guaranteed to return no results.
getFilterGroups()
Gets the currently registered filters groups.
registerFilterGroup(ChangesListFilterGroup $group)
Register a structured changes list filter group.
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.
Represents a filter group with multiple string options.
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...
Similar to FauxRequest, but only fakes URL parameters and method (POST or GET) and use the base reque...
Utility class for creating new RC entries.
static selectFields()
Return the list of recentchanges fields that should be selected to create a new recentchanges object.
static buildTools( $lang, LinkRenderer $linkRenderer=null)
Build a set of links for convenient navigation between watchlist viewing and editing modes.
const EDIT_CLEAR
Editing modes.
static getMode( $request, $par)
Determine whether we are editing the watchlist, and if so, what kind of editing operation.
getOutput()
Get the OutputPage being used for this instance.
requireLogin( $reasonMsg='exception-nologin-text', $titleMsg='exception-nologin')
If the user is not logged in, throws UserNotLoggedIn error.
getUser()
Shortcut to get the User executing this instance.
checkPermissions()
Checks if userCanExecute, and if not throws a PermissionsError.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name If you don't need a full Title object,...
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, limited to user-defined list of titles.
__construct( $page='Watchlist', $restriction='viewmywatchlist')
getCustomFilters()
Get all custom filters.
outputFeedLinks()
Output feed links.
doHeader( $opts, $numRows)
Set the text to be displayed above the changes.
showHideCheck( $options, $message, $name, $value, $inStructuredUi)
getDefaultOptions()
Get a FormOptions object containing the default options.
getSubpagesForPrefixSearch()
Return an array of subpages that this special page will accept.
runMainQueryHook(&$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts)
getDefaultDays()
Get the default value of the number of days to display when loading the result set.
fetchOptionsFromRequest( $opts)
Fetch values for a FormOptions object from the WebRequest associated with this instance.
doMainQuery( $tables, $fields, $conds, $query_options, $join_conds, FormOptions $opts)
@inheritDoc
static $savedQueriesPreferenceName
isStructuredFilterUiEnabledByDefault()
Check whether the structured filter UI is enabled by default (regardless of this particular user's se...
getDB()
Return a IDatabase object for reading.
transformFilterDefinition(array $filterDefinition)
@inheritDoc
countItems()
Count the number of paired items on a user's watchlist.
cutoffselector( $options)
setTopText(FormOptions $opts)
Send the text to be displayed before the options.
execute( $subpage)
Main execution point.
registerFilters()
@inheritDoc
validateOptions(FormOptions $opts)
Validate a FormOptions object generated by getDefaultOptions() with values already populated.
outputChangesList( $rows, $opts)
Build and output the actual changes list.
isStructuredFilterUiEnabled()
Check whether the structured filter UI is enabled.
buildQuery(&$tables, &$fields, &$conds, &$query_options, &$join_conds, FormOptions $opts)
@inheritDoc
doesWrites()
Indicates whether this special page may perform database writes.
Represents a page (or page fragment) title within MediaWiki.
Class for generating HTML <select> or <datalist> elements.
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
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
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 $request
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place $output
this hook is for auditing only RecentChangesLinked and Watchlist 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 code would result in ircNotify being run twice when an article is and once for brion Hooks can return three possible true was required This is the default since MediaWiki *some string
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 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
Allows to change the fields on the form that will be generated $name
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
if(!isset( $args[0])) $lang