62 parent::__construct(
'Movepage' );
78 $target = !is_null( $par ) ? $par :
$request->getVal(
'target' );
82 $oldTitleText =
$request->getVal(
'wpOldTitle', $target );
85 if ( !$this->oldTitle ) {
89 if ( !$this->oldTitle->exists() ) {
93 $newTitleTextMain =
$request->getText(
'wpNewTitleMain' );
94 $newTitleTextNs =
$request->getInt(
'wpNewTitleNs', $this->oldTitle->getNamespace() );
97 $newTitleText_bc =
$request->getText(
'wpNewTitle' );
98 $this->newTitle = strlen( $newTitleText_bc ) > 0
105 $permErrors = $this->oldTitle->getUserPermissionsErrors(
'move',
$user );
106 if ( count( $permErrors ) ) {
109 $user->spreadAnyEditBlock();
116 $this->reason =
$request->getText(
'wpReason' );
117 $this->moveTalk =
$request->getBool(
'wpMovetalk', $def );
118 $this->fixRedirects =
$request->getBool(
'wpFixRedirects', $def );
119 $this->leaveRedirect =
$request->getBool(
'wpLeaveRedirect', $def );
120 $this->moveSubpages =
$request->getBool(
'wpMovesubpages' );
121 $this->deleteAndMove =
$request->getBool(
'wpDeleteAndMove' );
122 $this->moveOverShared =
$request->getBool(
'wpMoveOverSharedFile' );
123 $this->watch =
$request->getCheck(
'wpWatch' ) &&
$user->isLoggedIn();
126 &&
$user->matchEditToken(
$request->getVal(
'wpEditToken' ) )
142 $this->
getSkin()->setRelevantTitle( $this->oldTitle );
145 $out->setPageTitle( $this->
msg(
'move-page', $this->oldTitle->getPrefixedText() ) );
146 $out->addModules(
'mediawiki.special.movePage' );
147 $out->addModuleStyles(
'mediawiki.special.movePage.styles' );
150 $out->addWikiMsg( $this->
getConfig()->
get(
'FixDoubleRedirects' ) ?
152 'movepagetext-noredirectfixer'
155 if ( $this->oldTitle->getNamespace() ==
NS_USER && !$this->oldTitle->isSubpage() ) {
157 "<div class=\"warningbox mw-moveuserpage-warning\">\n$1\n</div>",
158 'moveuserpage-warning'
160 } elseif ( $this->oldTitle->getNamespace() ==
NS_CATEGORY ) {
162 "<div class=\"warningbox mw-movecategorypage-warning\">\n$1\n</div>",
163 'movecategorypage-warning'
173 # Show the current title as a default
174 # when the form is first opened.
176 } elseif ( !count( $err ) ) {
177 # If a title was supplied, probably from the move log revert
178 # link, check for validity. We can then show some diagnostic
179 # information and save a click.
181 if ( is_array( $newerr ) ) {
188 if ( count( $err ) == 1 && isset( $err[0][0] ) && $err[0][0] ==
'articleexists'
192 "<div class='warningbox'>\n$1\n</div>\n",
199 if ( count( $err ) == 1 && isset( $err[0][0] ) && $err[0][0] ==
'file-exists-sharedrepo'
200 &&
$user->isAllowed(
'reupload-shared' )
203 "<div class='warningbox'>\n$1\n</div>\n",
205 'move-over-sharedrepo',
213 $oldTalk = $this->oldTitle->getTalkPage();
214 $oldTitleSubpages = $this->oldTitle->hasSubpages();
215 $oldTitleTalkSubpages = $this->oldTitle->getTalkPage()->hasSubpages();
217 $canMoveSubpage = ( $oldTitleSubpages || $oldTitleTalkSubpages ) &&
218 !count( $this->oldTitle->getUserPermissionsErrors(
'move-subpages',
$user ) );
220 # We also want to be able to move assoc. subpage talk-pages even if base page
221 # has no associated talk page, so || with $oldTitleTalkSubpages.
222 $considerTalk = !$this->oldTitle->isTalkPage() &&
224 || ( $oldTitleTalkSubpages && $canMoveSubpage ) );
227 if ( $this->
getConfig()->
get(
'FixDoubleRedirects' ) ) {
228 $hasRedirects =
$dbr->selectField(
'redirect',
'1',
230 'rd_namespace' => $this->oldTitle->getNamespace(),
231 'rd_title' => $this->oldTitle->getDBkey(),
234 $hasRedirects =
false;
237 if ( count( $err ) ) {
238 $out->addHTML(
"<div class='errorbox'>\n" );
239 $action_desc = $this->
msg(
'action-move' )->plain();
240 $out->addWikiMsg(
'permissionserrorstext-withaction', count( $err ), $action_desc );
242 if ( count( $err ) == 1 ) {
244 $errMsgName = array_shift( $errMsg );
246 if ( $errMsgName ==
'hookaborted' ) {
247 $out->addHTML(
"<p>{$errMsg[0]}</p>\n" );
249 $out->addWikiMsgArray( $errMsgName, $errMsg );
254 foreach ( $err
as $errMsg ) {
255 if ( $errMsg[0] ==
'hookaborted' ) {
256 $errStr[] = $errMsg[1];
258 $errMsgName = array_shift( $errMsg );
259 $errStr[] = $this->
msg( $errMsgName, $errMsg )->parse();
263 $out->addHTML(
'<ul><li>' . implode(
"</li>\n<li>", $errStr ) .
"</li></ul>\n" );
265 $out->addHTML(
"</div>\n" );
268 if ( $this->oldTitle->isProtected(
'move' ) ) {
269 # Is the title semi-protected?
270 if ( $this->oldTitle->isSemiProtected(
'move' ) ) {
271 $noticeMsg =
'semiprotectedpagemovewarning';
272 $classes[] =
'mw-textarea-sprotected';
274 # Then it must be protected based on static groups (regular)
275 $noticeMsg =
'protectedpagemovewarning';
276 $classes[] =
'mw-textarea-protected';
278 $out->addHTML(
"<div class='mw-warning-with-logexcerpt'>\n" );
279 $out->addWikiMsg( $noticeMsg );
287 $out->addHTML(
"</div>\n" );
293 $immovableNamespaces = [];
294 foreach ( array_keys( $this->
getLanguage()->getNamespaces() )
as $nsId ) {
296 $immovableNamespaces[] = $nsId;
305 $fields[] =
new OOUI\FieldLayout(
306 new MediaWiki\Widget\ComplexTitleInputWidget( [
307 'id' =>
'wpNewTitle',
309 'id' =>
'wpNewTitleNs',
310 'name' =>
'wpNewTitleNs',
312 'exclude' => $immovableNamespaces,
315 'id' =>
'wpNewTitleMain',
316 'name' =>
'wpNewTitleMain',
319 'suggestions' =>
false,
324 'label' => $this->
msg(
'newtitle' )->text(),
329 $fields[] =
new OOUI\FieldLayout(
330 new OOUI\TextInputWidget( [
331 'name' =>
'wpReason',
335 'value' => $this->reason,
338 'label' => $this->
msg(
'movereason' )->
text(),
343 if ( $considerTalk ) {
344 $fields[] =
new OOUI\FieldLayout(
345 new OOUI\CheckboxInputWidget( [
346 'name' =>
'wpMovetalk',
347 'id' =>
'wpMovetalk',
349 'selected' => $this->moveTalk,
352 'label' => $this->
msg(
'movetalk' )->
text(),
353 'help' =>
new OOUI\HtmlSnippet( $this->
msg(
'movepagetalktext' )->parseAsBlock() ),
356 'id' =>
'wpMovetalk-field',
361 if (
$user->isAllowed(
'suppressredirect' ) ) {
362 if (
$handler->supportsRedirects() ) {
369 $fields[] =
new OOUI\FieldLayout(
370 new OOUI\CheckboxInputWidget( [
371 'name' =>
'wpLeaveRedirect',
372 'id' =>
'wpLeaveRedirect',
374 'selected' => $isChecked,
375 'disabled' => $isDisabled,
378 'label' => $this->
msg(
'move-leave-redirect' )->
text(),
384 if ( $hasRedirects ) {
385 $fields[] =
new OOUI\FieldLayout(
386 new OOUI\CheckboxInputWidget( [
387 'name' =>
'wpFixRedirects',
388 'id' =>
'wpFixRedirects',
390 'selected' => $this->fixRedirects,
393 'label' => $this->
msg(
'fix-double-redirects' )->
text(),
399 if ( $canMoveSubpage ) {
400 $maximumMovedPages = $this->
getConfig()->get(
'MaximumMovedPages' );
401 $fields[] =
new OOUI\FieldLayout(
402 new OOUI\CheckboxInputWidget( [
403 'name' =>
'wpMovesubpages',
404 'id' =>
'wpMovesubpages',
406 # Don
't check the box if we only have talk subpages to
407 # move and we aren't moving
the talk
page.
408 'selected' => $this->moveSubpages && ( $this->oldTitle->hasSubpages() ||
$this->moveTalk ),
411 'label' =>
new OOUI\HtmlSnippet(
413 ( $this->oldTitle->hasSubpages()
415 :
'move-talk-subpages' )
416 )->numParams( $maximumMovedPages )->params( $maximumMovedPages )->parse()
423 # Don't allow watching if user is not logged in
424 if (
$user->isLoggedIn() ) {
425 $watchChecked =
$user->isLoggedIn() && ( $this->watch ||
$user->getBoolOption(
'watchmoves' )
426 ||
$user->isWatched( $this->oldTitle ) );
427 $fields[] =
new OOUI\FieldLayout(
428 new OOUI\CheckboxInputWidget( [
430 'id' =>
'watch', # ew
432 'selected' => $watchChecked,
435 'label' => $this->
msg(
'move-watch' )->
text(),
443 $hiddenFields .=
Html::hidden(
'wpMoveOverSharedFile',
'1' );
447 $fields[] =
new OOUI\FieldLayout(
448 new OOUI\CheckboxInputWidget( [
449 'name' =>
'wpDeleteAndMove',
450 'id' =>
'wpDeleteAndMove',
454 'label' => $this->
msg(
'delete_and_move_confirm' )->
text(),
460 $fields[] =
new OOUI\FieldLayout(
461 new OOUI\ButtonInputWidget( [
463 'value' => $this->
msg(
'movepagebtn' )->
text(),
464 'label' => $this->
msg(
'movepagebtn' )->
text(),
465 'flags' => [
'primary',
'progressive' ],
473 $fieldset =
new OOUI\FieldsetLayout( [
474 'label' => $this->
msg(
'move-page-legend' )->
text(),
475 'id' =>
'mw-movepage-table',
479 $form =
new OOUI\FormLayout( [
481 'action' => $this->
getPageTitle()->getLocalURL(
'action=submit' ),
484 $form->appendContent(
486 new OOUI\HtmlSnippet(
488 Html::hidden(
'wpOldTitle', $this->oldTitle->getPrefixedText() ) .
494 new OOUI\PanelLayout( [
495 'classes' => [
'movepage-wrapper' ],
510 if (
$user->pingLimiter(
'move' ) ) {
517 # don't allow moving to pages with # in
518 if ( !$nt || $nt->hasFragment() ) {
519 $this->
showForm( [ [
'badtitletext' ] ] );
524 # Show a warning if the target file exists on a shared repo
525 if ( $nt->getNamespace() ==
NS_FILE
526 && !( $this->moveOverShared &&
$user->isAllowed(
'reupload-shared' ) )
530 $this->
showForm( [ [
'file-exists-sharedrepo' ] ] );
535 # Delete to make way if requested
536 if ( $this->deleteAndMove ) {
537 $permErrors = $nt->getUserPermissionsErrors(
'delete',
$user );
538 if ( count( $permErrors ) ) {
539 # Only show the first error
545 $reason = $this->
msg(
'delete_and_move_reason', $ot )->inContentLanguage()->text();
548 if ( $nt->getNamespace() ==
NS_FILE ) {
550 $file->load( File::READ_LATEST );
551 if ( $file->exists() ) {
558 $deleteStatus =
$page->doDeleteArticleReal(
$reason,
false, 0,
true, $error,
$user );
559 if ( !$deleteStatus->isGood() ) {
560 $this->
showForm( $deleteStatus->getErrorsArray() );
568 if ( !
$handler->supportsRedirects() ) {
569 $createRedirect =
false;
570 } elseif (
$user->isAllowed(
'suppressredirect' ) ) {
573 $createRedirect =
true;
576 # Do the actual move.
578 $valid = $mp->isValidMove();
579 if ( !$valid->isOK() ) {
580 $this->
showForm( $valid->getErrorsArray() );
584 $permStatus = $mp->checkPermissions(
$user, $this->reason );
585 if ( !$permStatus->isOK() ) {
586 $this->
showForm( $permStatus->getErrorsArray() );
590 $status = $mp->move(
$user, $this->reason, $createRedirect );
601 $out->setPageTitle( $this->
msg(
'pagemovedsub' ) );
607 [
'id' =>
'movepage-oldlink' ],
608 [
'redirect' =>
'no' ]
613 [
'id' =>
'movepage-newlink' ]
615 $oldText = $ot->getPrefixedText();
616 $newText = $nt->getPrefixedText();
618 if ( $ot->exists() ) {
624 $msgName =
'movepage-moved-redirect';
626 $msgName =
'movepage-moved-noredirect';
629 $out->addHTML( $this->
msg(
'movepage-moved' )->rawParams( $oldLink,
630 $newLink )->params( $oldText, $newText )->parseAsBlock() );
631 $out->addWikiMsg( $msgName );
633 Hooks::run(
'SpecialMovepageAfterMove', [ &$this, &$ot, &$nt ] );
635 # Now we move extra pages we've been asked to move: subpages and talk
636 # pages. First, if the old page or the new page is a talk page, we
637 # can't move any talk pages: cancel that.
638 if ( $ot->isTalkPage() || $nt->isTalkPage() ) {
639 $this->moveTalk =
false;
642 if ( count( $ot->getUserPermissionsErrors(
'move-subpages',
$user ) ) ) {
643 $this->moveSubpages =
false;
659 if ( $this->moveSubpages && (
666 'page_title' .
$dbr->buildLike( $ot->getDBkey() .
'/',
$dbr->anyString() )
667 .
' OR page_title = ' .
$dbr->addQuotes( $ot->getDBkey() )
669 $conds[
'page_namespace'] = [];
671 $conds[
'page_namespace'][] = $ot->getNamespace();
673 if ( $this->moveTalk &&
676 $conds[
'page_namespace'][] = $ot->getTalkPage()->getNamespace();
678 } elseif ( $this->moveTalk ) {
680 'page_namespace' => $ot->getTalkPage()->getNamespace(),
681 'page_title' => $ot->getDBkey()
689 if ( !is_null( $conds ) ) {
691 $dbr->select(
'page',
692 [
'page_id',
'page_namespace',
'page_title' ],
701 foreach ( $extraPages
as $oldSubpage ) {
702 if ( $ot->equals( $oldSubpage ) || $nt->equals( $oldSubpage ) ) {
703 # Already did this one.
707 $newPageName = preg_replace(
708 '#^' . preg_quote( $ot->getDBkey(),
'#' ) .
'#',
710 $oldSubpage->getDBkey()
713 if ( $oldSubpage->isSubpage() && ( $ot->isTalkPage() xor $nt->isTalkPage() ) ) {
715 $newNs = $nt->getNamespace();
716 } elseif ( $oldSubpage->isTalkPage() ) {
717 $newNs = $nt->getTalkPage()->getNamespace();
719 $newNs = $nt->getSubjectPage()->getNamespace();
722 # Bug 14385: we need makeTitleSafe because the new page names may
723 # be longer than 255 characters.
725 if ( !$newSubpage ) {
727 $extraOutput[] = $this->
msg(
'movepage-page-unmoved' )->rawParams( $oldLink )
732 # This was copy-pasted from Renameuser, bleh.
733 if ( $newSubpage->exists() && !$oldSubpage->isValidMoveTarget( $newSubpage ) ) {
735 $extraOutput[] = $this->
msg(
'movepage-page-exists' )->rawParams(
$link )->escaped();
737 $success = $oldSubpage->moveTo( $newSubpage,
true, $this->reason, $createRedirect );
740 if ( $this->fixRedirects ) {
747 [
'redirect' =>
'no' ]
751 $extraOutput[] = $this->
msg(
'movepage-page-moved' )
752 ->rawParams( $oldLink, $newLink )->escaped();
755 $maximumMovedPages = $this->
getConfig()->get(
'MaximumMovedPages' );
756 if (
$count >= $maximumMovedPages ) {
757 $extraOutput[] = $this->
msg(
'movepage-max-pages' )
758 ->numParams( $maximumMovedPages )->escaped();
764 $extraOutput[] = $this->
msg(
'movepage-page-unmoved' )
765 ->rawParams( $oldLink, $newLink )->escaped();
770 if ( $extraOutput !== [] ) {
771 $out->addHTML(
"<ul>\n<li>" . implode(
"</li>\n<li>", $extraOutput ) .
"</li>\n</ul>" );
774 # Deal with watches (we don't watch subpages)
780 $moveLogPage =
new LogPage(
'move' );
782 $out->addHTML(
Xml::element(
'h2', null, $moveLogPage->getName()->text() ) );
794 $subpages =
$title->getSubpages();
797 $titleIsTalk =
$title->isTalkPage();
798 $subpagesTalk =
$title->getTalkPage()->getSubpages();
799 $countTalk = $subpagesTalk instanceof
TitleArray ? $subpagesTalk->count() : 0;
800 $totalCount =
$count + $countTalk;
802 if ( !$nsHasSubpages && $countTalk == 0 ) {
808 [
'movesubpage', ( $titleIsTalk ?
$count : $totalCount ) ]
811 if ( $nsHasSubpages ) {
815 if ( !$titleIsTalk && $countTalk > 0 ) {
816 $this->
showSubpagesList( $subpagesTalk, $countTalk,
'movesubpagetalktext' );
824 if ( $pagecount == 0 && $noSubpageMsg ) {
825 $out->addWikiMsg(
'movenosubpage' );
829 $out->addWikiMsg( $wikiMsg, $this->
getLanguage()->formatNum( $pagecount ) );
830 $out->addHTML(
"<ul>\n" );
833 $linkBatch->setCaller( __METHOD__ );
834 $linkBatch->execute();
837 foreach ( $subpages
as $subpage ) {
839 $out->addHTML(
"<li>$link</li>\n" );
841 $out->addHTML(
"</ul>\n" );
static factory(Title $title)
Create a WikiPage object of the appropriate class for the given title.
static fixRedirects($reason, $redirTitle, $destTitle=false)
Insert jobs into the job queue to fix redirects to the given title.
#define the
table suitable for use with IDatabase::select()
static isMovable($index)
Can pages in the given namespace be moved?
wfGetDB($db, $groups=[], $wiki=false)
Get a Database object.
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
Shortcut to construct a special page which is unlisted by default.
Handles the backend logic of moving a page from one title to another.
string $reason
Text input.
static element($element, $attribs=null, $contents= '', $allowShortTag=true)
Format an XML element with given attributes and, optionally, text content.
getText()
Get the text form (spaces not underscores) of the main part.
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
showSubpages($title)
Show subpages of the page being moved.
static hidden($name, $value, array $attribs=[])
Convenience function to produce an input element with type=hidden.
msg()
Wrapper around wfMessage that sets the current context.
static escapeRegexReplacement($string)
Escape a string to make it suitable for inclusion in a preg_replace() replacement parameter...
getOutput()
Get the OutputPage being used for this instance.
getPrefixedText()
Get the prefixed title with spaces.
static newFromText($text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
wfLocalFile($title)
Get an object referring to a locally registered file.
The TitleArray class only exists to provide the newFromResult method at pre- sent.
addHelpLink($to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
static showLogExtract(&$out, $types=[], $page= '', $user= '', $param=[])
Show log extract.
outputHeader($summaryMessageKey= '')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...
Class to simplify the use of log pages.
usually copyright or history_copyright This message must be in HTML not wikitext & $link
Class representing a list of titles The execute() method checks them all for existence and adds them ...
showForm($err)
Show the form.
isValidMoveOperation(&$nt, $auth=true, $reason= '')
Check whether a given move operation would be valid.
An error page which can definitely be safely rendered using the OutputPage.
static singleton()
Get a RepoGroup instance.
getSkin()
Shortcut to get the skin being used for this instance.
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes! ...
static makeTitleSafe($ns, $title, $fragment= '', $interwiki= '')
Create a new Title from a namespace index and a DB key.
namespace and then decline to actually register it file or subcat img or subcat $title
static hasSubpages($index)
Does the namespace allow subpages?
static run($event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
getNamespace()
Get the namespace index, i.e.
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
static newFromResult($res)
static getForTitle(Title $title)
Returns the appropriate ContentHandler singleton for the given title.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a local account $user
quickUserCan($action, $user=null)
Can $user perform $action on this page? This skips potentially expensive cascading permission checks ...
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
error also a ContextSource you ll probably need to make sure the header is varied on $request
useTransactionalTimeLimit()
Call wfTransactionalTimeLimit() if this request was POSTed.
getUser()
Shortcut to get the User executing this instance.
static makeName($ns, $title, $fragment= '', $interwiki= '', $canonicalNamespace=false)
Make a prefixed DB key from a DB key and a namespace index.
A special page that allows users to change page titles.
getConfig()
Shortcut to get main config object.
Show an error when a user tries to do something they do not have the necessary permissions for...
getLanguage()
Shortcut to get user's language.
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers if desired whether it is OK to use $contentModel on $title Handler functions that modify $ok should generally return false to prevent further hooks from further modifying $ok inclusive $limit
prefixSearchSubpages($search, $limit, $offset)
Return an array of subpages beginning with $search that this special page will accept.
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set $status
static addCallableUpdate($callable, $stage=self::POSTSEND, IDatabase $dbw=null)
Add a callable update.
showSubpagesList($subpages, $pagecount, $wikiMsg, $noSubpageMsg=false)
getRequest()
Get the WebRequest being used for this instance.
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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves $handler
static doWatchOrUnwatch($watch, Title $title, User $user)
Watch or unwatch a page.
prefixSearchString($search, $limit, $offset)
Perform a regular substring search for prefixSearchSubpages.
checkReadOnly()
If the wiki is currently in readonly mode, throws a ReadOnlyError.
wfFindFile($title, $options=[])
Find a file.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values before the output is cached one of or reset my talk page
Show an error when the user hits a rate limit.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values before the output is cached $page
getPageTitle($subpage=false)
Get a self-referential title object.
MediaWiki Linker LinkRenderer null $linkRenderer