35 parent::__construct( $name );
51 return $this->
msg(
'brokenredirectstext' )->parseAsBlock();
64 'namespace' =>
'p1.page_namespace',
65 'title' =>
'p1.page_title',
66 'value' =>
'p1.page_title',
76 'rd_interwiki IS NULL OR rd_interwiki = ' .
$dbr->addQuotes(
'' ),
77 'p2.page_namespace IS NULL',
83 'p2' => [
'LEFT JOIN', [
84 'rd_namespace=p2.page_namespace',
85 'rd_title=p2.page_title'
95 return [
'rd_namespace',
'rd_title',
'rd_from' ];
104 $fromObj = Title::makeTitle( $result->namespace, $result->title );
105 if ( isset( $result->rd_title ) ) {
106 $toObj = Title::makeTitle( $result->rd_namespace, $result->rd_title, $result->rd_fragment );
118 if ( !is_object( $toObj ) ) {
119 return '<del>' .
$linkRenderer->makeLink( $fromObj ) .
'</del>';
126 [
'redirect' =>
'no' ]
132 $this->
getUser()->isAllowed(
'edit' ) &&
138 $this->
msg(
'brokenredirects-edit' )->
text(),
140 [
'action' =>
'edit' ]
143 $to =
$linkRenderer->makeBrokenLink( $toObj, $toObj->getFullText() );
146 $out = $from . $this->
msg(
'word-separator' )->escaped();
148 if ( $this->
getUser()->isAllowed(
'delete' ) ) {
151 $this->
msg(
'brokenredirects-delete' )->
text(),
153 [
'action' =>
'delete' ]
159 ->pipeList( $links ) )->escaped();
161 $out .=
" {$arr} {$to}";
177 return 'maintenance';
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 redirect
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
A special page listing redirects to non existent page.
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
isSyndicated()
Sometime we don't want to build rss / atom feeds.
__construct( $name='BrokenRedirects')
getPageHeader()
The content returned by this function will be output before any result.
preprocessResults( $db, $res)
Cache page content model for performance.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
sortDescending()
Override to sort by increasing values.
formatResult( $skin, $result)
isExpensive()
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
static getForTitle(Title $title)
Returns the appropriate ContentHandler singleton for the given title.
This is a class for doing query pages; since they're almost all the same, we factor out some of the f...
executeLBFromResultWrapper(ResultWrapper $res, $ns=null)
Creates a new LinkBatch object, adds all pages from the passed ResultWrapper (MUST include title and ...
getUser()
Shortcut to get the User executing this instance.
msg( $key)
Wrapper around wfMessage that sets the current context.
getLanguage()
Shortcut to get user's language.
MediaWiki Linker LinkRenderer null $linkRenderer
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
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
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff or overridable Default is either copyrightwarning or copyrightwarning2 overridable Default is editpage tos summary such as anonymity and the real check
This document describes the XML format used to represent information about external sites known to a MediaWiki installation This information about external sites is used to allow inter wiki links
in the order they appear.