Go to the documentation of this file.
42 parent::__construct(
'Version' );
55 $out->allowClickjacking();
58 $parts = explode(
'/', (
string)$par );
60 if ( isset( $parts[1] ) ) {
61 $extName = str_replace(
'_',
' ', $parts[1] );
63 foreach ( $wgExtensionCredits
as $group => $extensions ) {
64 foreach ( $extensions
as $ext ) {
65 if ( isset(
$ext[
'name'] ) && (
$ext[
'name'] === $extName ) ) {
72 $out->setStatusCode( 404 );
75 $extName =
'MediaWiki';
79 switch ( strtolower( $parts[0] ) ) {
81 $out->addModuleStyles(
'mediawiki.special.version' );
83 $wikiText =
'{{int:version-credits-not-found}}';
84 if ( $extName ===
'MediaWiki' ) {
85 $wikiText = file_get_contents(
$IP .
'/CREDITS' );
87 $wikiText = str_replace(
88 [
'<!-- BEGIN CONTRIBUTOR LIST -->',
'<!-- END CONTRIBUTOR LIST -->' ],
89 [
'<div class="mw-version-credits">',
'</div>' ],
91 } elseif ( ( $extNode !==
null ) && isset( $extNode[
'path'] ) ) {
94 $wikiText = file_get_contents( $file );
95 if ( substr( $file, -4 ) ===
'.txt' ) {
108 $out->setPageTitle( $this->
msg(
'version-credits-title', $extName ) );
109 $out->addWikiText( $wikiText );
113 $wikiText =
'{{int:version-license-not-found}}';
114 if ( $extName ===
'MediaWiki' ) {
115 $wikiText = file_get_contents(
$IP .
'/COPYING' );
116 } elseif ( ( $extNode !==
null ) && isset( $extNode[
'path'] ) ) {
119 $wikiText = file_get_contents( $file );
131 $out->setPageTitle( $this->
msg(
'version-license-title', $extName ) );
132 $out->addWikiText( $wikiText );
136 $out->addModuleStyles(
'mediawiki.special.version' );
164 [
'id' =>
'mw-version-license' ],
169 $ret .=
'<div class="plainlinks">';
172 " .
wfMessage(
'version-license-info' )->text();
175 return str_replace(
"\t\t",
'',
$ret ) .
"\n";
186 if ( defined(
'MEDIAWIKI_INSTALL' ) ) {
187 $othersLink =
'[https://www.mediawiki.org/wiki/Special:Version/Credits ' .
188 wfMessage(
'version-poweredby-others' )->text() .
']';
190 $othersLink =
'[[Special:Version/Credits|' .
191 wfMessage(
'version-poweredby-others' )->text() .
']]';
194 $translatorsLink =
'[https://translatewiki.net/wiki/Translating:MediaWiki/Credits ' .
195 wfMessage(
'version-poweredby-translators' )->text() .
']';
198 'Magnus Manske',
'Brion Vibber',
'Lee Daniel Crocker',
199 'Tim Starling',
'Erik Möller',
'Gabriel Wicke',
'Ævar Arnfjörð Bjarmason',
200 'Niklas Laxström',
'Domas Mituzas',
'Rob Church',
'Yuri Astrakhan',
201 'Aryeh Gregor',
'Aaron Schulz',
'Andrew Garrett',
'Raimond Spekking',
202 'Alexandre Emsenhuber',
'Siebrand Mazeland',
'Chad Horohoe',
203 'Roan Kattouw',
'Trevor Parscal',
'Bryan Tong Minh',
'Sam Reed',
204 'Victor Vasiliev',
'Rotem Liss',
'Platonides',
'Antoine Musso',
205 'Timo Tijhof',
'Daniel Kinzler',
'Jeroen De Dauw',
'Brad Jorsch',
206 $othersLink, $translatorsLink
227 $software[
'[http://hhvm.com/ HHVM]'] = HHVM_VERSION .
" (" . PHP_SAPI .
")";
229 $software[
'[https://php.net/ PHP]'] = PHP_VERSION .
" (" . PHP_SAPI .
")";
231 $software[
$dbr->getSoftwareLink()] =
$dbr->getServerInfo();
242 [
'id' =>
'mw-version-software' ],
245 Xml::openElement(
'table', [
'class' =>
'wikitable plainlinks',
'id' =>
'sv-software' ] ) .
247 <th>" .
wfMessage(
'version-software-product' )->text() .
"</th>
248 <th>" .
wfMessage(
'version-software-version' )->text() .
"</th>
251 foreach ( $software
as $name => $version ) {
253 <td>" .
$name .
"</td>
254 <td dir=\"ltr\">" . $version .
"</td>
274 } elseif (
$flags ===
'nodb' ) {
275 $shortSha1 = substr( $gitInfo, 0, 7 );
276 $version =
"$wgVersion ($shortSha1)";
278 $shortSha1 = substr( $gitInfo, 0, 7 );
280 if (
$lang !==
null ) {
281 $msg->inLanguage(
$lang );
283 $shortSha1 = $msg->params( $shortSha1 )->escaped();
284 $version =
"$wgVersion $shortSha1";
318 preg_match(
"/^(\d+\.\d+)/",
$wgVersion, $versionParts );
319 $versionUrl =
"https://www.mediawiki.org/wiki/MediaWiki_{$versionParts[1]}";
322 return "[$versionUrl $wgVersion]";
334 $headSHA1 = $gitInfo->getHeadSHA1();
339 $shortSHA1 =
'(' . substr( $headSHA1, 0, 7 ) .
')';
341 $gitHeadUrl = $gitInfo->getHeadViewUrl();
342 if ( $gitHeadUrl !==
false ) {
343 $shortSHA1 =
"[$gitHeadUrl $shortSHA1]";
346 $gitHeadCommitDate = $gitInfo->getHeadCommitDate();
347 if ( $gitHeadCommitDate ) {
365 if ( self::$extensionTypes ===
false ) {
366 self::$extensionTypes = [
367 'specialpage' =>
wfMessage(
'version-specialpages' )->text(),
368 'parserhook' =>
wfMessage(
'version-parserhooks' )->text(),
369 'variable' =>
wfMessage(
'version-variables' )->text(),
370 'media' =>
wfMessage(
'version-mediahandlers' )->text(),
371 'antispam' =>
wfMessage(
'version-antispam' )->text(),
372 'skin' =>
wfMessage(
'version-skins' )->text(),
373 'api' =>
wfMessage(
'version-api' )->text(),
374 'other' =>
wfMessage(
'version-other' )->text(),
377 Hooks::run(
'ExtensionTypes', [ &self::$extensionTypes ] );
395 return isset( $types[
$type] ) ? $types[
$type] : $types[
'other'];
404 global $wgExtensionCredits;
407 count( $wgExtensionCredits ) === 0 ||
409 (
count( $wgExtensionCredits ) === 1 && isset( $wgExtensionCredits[
'skin'] ) )
418 [
'id' =>
'mw-version-ext' ],
419 $this->
msg(
'version-extensions' )->
text()
421 Xml::openElement(
'table', [
'class' =>
'wikitable plainlinks',
'id' =>
'sv-ext' ] );
424 if ( !array_key_exists(
'other', $wgExtensionCredits ) ) {
425 $wgExtensionCredits[
'other'] = [];
429 foreach ( $wgExtensionCredits
as $type => $extensions ) {
431 $wgExtensionCredits[
'other'] = array_merge( $wgExtensionCredits[
'other'], $extensions );
435 $this->firstExtOpened =
false;
439 if (
$type !==
'other' &&
$type !==
'skin' ) {
458 global $wgExtensionCredits;
459 if ( !isset( $wgExtensionCredits[
'skin'] ) ||
count( $wgExtensionCredits[
'skin'] ) === 0 ) {
465 [
'id' =>
'mw-version-skin' ],
466 $this->
msg(
'version-skins' )->
text()
468 Xml::openElement(
'table', [
'class' =>
'wikitable plainlinks',
'id' =>
'sv-skin' ] );
470 $this->firstExtOpened =
false;
485 $path =
"$IP/vendor/composer/installed.json";
486 if ( !file_exists(
$path ) ) {
493 [
'id' =>
'mw-version-libraries' ],
494 $this->
msg(
'version-libraries' )->
text()
498 [
'class' =>
'wikitable plainlinks',
'id' =>
'sv-libraries' ]
508 foreach ( $installed->getInstalledDependencies()
as $name => $info ) {
509 if ( strpos( $info[
'type'],
'mediawiki-' ) === 0 ) {
514 $authors = array_map(
function( $arr ) {
516 if ( isset( $arr[
'homepage'] ) ) {
517 return "[{$arr['homepage']} {$arr['name']}]";
520 }, $info[
'authors'] );
521 $authors = $this->
listAuthors( $authors,
false,
"$IP/vendor/$name" );
531 "https://packagist.org/packages/$name",
$name,
533 [
'class' =>
'mw-version-library-name' ]
536 .
Html::element(
'td', [
'dir' =>
'auto' ], $info[
'version'] )
538 .
Html::element(
'td', [
'lang' =>
'en',
'dir' =>
'ltr' ], $info[
'description'] )
557 if (
count( $tags ) ) {
561 'class' =>
'mw-headline plainlinks',
562 'id' =>
'mw-version-parser-extensiontags',
565 'https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Tag_extensions',
566 $this->
msg(
'version-parser-extensiontags' )->parse(),
571 array_walk( $tags,
function ( &
$value ) {
577 'style' =>
'white-space: nowrap;',
600 if (
count( $fhooks ) ) {
604 'class' =>
'mw-headline plainlinks',
605 'id' =>
'mw-version-parser-function-hooks',
608 'https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Parser_functions',
609 $this->
msg(
'version-parser-function-hooks' )->parse(),
633 global $wgExtensionCredits;
637 if ( array_key_exists(
$type, $wgExtensionCredits ) &&
count( $wgExtensionCredits[
$type] ) > 0 ) {
640 usort( $wgExtensionCredits[
$type], [ $this,
'compare' ] );
642 foreach ( $wgExtensionCredits[
$type]
as $extension ) {
657 if ( $a[
'name'] === $b[
'name'] ) {
689 if ( isset( $extension[
'namemsg'] ) ) {
691 $extensionName = $this->
msg( $extension[
'namemsg'] )->text();
692 } elseif ( isset( $extension[
'name'] ) ) {
694 $extensionName = $extension[
'name'];
696 $extensionName = $this->
msg(
'version-no-ext-name' )->text();
699 if ( isset( $extension[
'url'] ) ) {
705 [
'class' =>
'mw-version-ext-name' ]
708 $extensionNameLink = $extensionName;
714 $canonicalVersion =
'–';
715 $extensionPath =
null;
720 if ( isset( $extension[
'version'] ) ) {
721 $canonicalVersion =
$out->parseInline( $extension[
'version'] );
724 if ( isset( $extension[
'path'] ) ) {
726 $extensionPath = dirname( $extension[
'path'] );
727 if ( $this->coreId ==
'' ) {
728 wfDebug(
'Looking up core head id' );
730 if ( $coreHeadSHA1 ) {
731 $this->coreId = $coreHeadSHA1;
735 $memcKey =
wfMemcKey(
'specialversion-ext-version-text', $extension[
'path'], $this->coreId );
736 list( $vcsVersion, $vcsLink, $vcsDate ) =
$cache->get( $memcKey );
738 if ( !$vcsVersion ) {
739 wfDebug(
"Getting VCS info for extension {$extension['name']}" );
740 $gitInfo =
new GitInfo( $extensionPath );
741 $vcsVersion = $gitInfo->getHeadSHA1();
742 if ( $vcsVersion !==
false ) {
743 $vcsVersion = substr( $vcsVersion, 0, 7 );
744 $vcsLink = $gitInfo->getHeadViewUrl();
745 $vcsDate = $gitInfo->getHeadCommitDate();
747 $cache->set( $memcKey, [ $vcsVersion, $vcsLink, $vcsDate ], 60 * 60 * 24 );
749 wfDebug(
"Pulled VCS info for extension {$extension['name']} from cache" );
755 [
'class' =>
'mw-version-ext-version' ],
763 $this->
msg(
'version-version', $vcsVersion ),
766 [
'class' =>
'mw-version-ext-vcs-version' ]
770 [
'class' =>
'mw-version-ext-vcs-version' ],
774 $versionString .=
" {$vcsVerString}";
778 [
'class' =>
'mw-version-ext-vcs-timestamp' ],
779 $this->
getLanguage()->timeanddate( $vcsDate,
true )
781 $versionString .=
" {$vcsTimeString}";
784 [
'class' =>
'mw-version-ext-meta-version' ],
792 if ( isset( $extension[
'name'] ) ) {
794 if ( isset( $extension[
'license-name'] ) ) {
795 $licenseName =
new HtmlArmor(
$out->parseInline( $extension[
'license-name'] ) );
797 $licenseName = $this->
msg(
'version-ext-license' )->text();
799 if ( $licenseName !==
null ) {
804 'class' =>
'mw-version-ext-license',
814 if ( isset( $extension[
'descriptionmsg'] ) ) {
816 $descriptionMsg = $extension[
'descriptionmsg'];
818 if ( is_array( $descriptionMsg ) ) {
819 $descriptionMsgKey = $descriptionMsg[0];
820 array_shift( $descriptionMsg );
821 array_map(
"htmlspecialchars", $descriptionMsg );
822 $description = $this->
msg( $descriptionMsgKey, $descriptionMsg )->text();
824 $description = $this->
msg( $descriptionMsg )->text();
826 } elseif ( isset( $extension[
'description'] ) ) {
828 $description = $extension[
'description'];
832 $description =
$out->parseInline( $description );
835 $authors = isset( $extension[
'author'] ) ? $extension[
'author'] : [];
836 $authors = $this->
listAuthors( $authors, $extension[
'name'], $extensionPath );
840 'class' =>
'mw-version-ext',
841 'id' => Sanitizer::escapeId(
'mw-version-ext-' .
$type .
'-' . $extension[
'name'] )
869 $ret[] =
'== {{int:version-hooks}} ==';
876 foreach ( $myWgHooks
as $hook => $hooks ) {
885 return implode(
"\n",
$ret );
894 $opt = [
'colspan' => 5 ];
895 if ( $this->firstExtOpened ) {
901 $this->firstExtOpened =
true;
904 $opt[
'id'] =
"sv-$name";
907 if ( $text !==
null ) {
913 $firstHeadingMsg = (
$name ===
'credits-skin' )
914 ?
'version-skin-colheader-name'
915 :
'version-ext-colheader-name';
918 $this->
msg( $firstHeadingMsg )->
text() );
920 $this->
msg(
'version-ext-colheader-version' )->
text() );
922 $this->
msg(
'version-ext-colheader-license' )->
text() );
924 $this->
msg(
'version-ext-colheader-description' )->
text() );
926 $this->
msg(
'version-ext-colheader-credits' )->
text() );
938 $ip = str_replace(
'--',
' - ', htmlspecialchars( $this->
getRequest()->getIP() ) );
940 return "<!-- visited from $ip -->\n<span style='display:none'>visited from $ip</span>";
969 foreach ( (
array)$authors
as $item ) {
970 if ( $item ==
'...' ) {
976 $this->
msg(
'version-poweredby-others' )->
text()
979 $text = $this->
msg(
'version-poweredby-others' )->escaped();
982 } elseif ( substr( $item, -5 ) ==
' ...]' ) {
984 $list[] = $this->
getOutput()->parseInline(
985 substr( $item, 0, -4 ) . $this->
msg(
'version-poweredby-others' )->
text() .
"]"
988 $list[] = $this->
getOutput()->parseInline( $item );
995 $this->
msg(
'version-poweredby-others' )->
text()
1018 foreach ( scandir( $extDir )
as $file ) {
1019 $fullPath = $extDir . DIRECTORY_SEPARATOR . $file;
1020 if ( preg_match(
'/^((AUTHORS)|(CREDITS))(\.txt|\.wiki|\.mediawiki)?$/', $file ) &&
1021 is_readable( $fullPath ) &&
1022 is_file( $fullPath )
1047 foreach ( scandir( $extDir )
as $file ) {
1048 $fullPath = $extDir . DIRECTORY_SEPARATOR . $file;
1049 if ( preg_match(
'/^((COPYING)|(LICENSE))(\.txt)?$/', $file ) &&
1050 is_readable( $fullPath ) &&
1051 is_file( $fullPath )
1069 if ( !
count( $list ) ) {
1077 ->listToText( array_map( [ __CLASS__,
'arrayToString' ], $list ) );
1089 if ( is_array( $list ) &&
count( $list ) == 1 ) {
1092 if ( $list instanceof Closure ) {
1095 } elseif ( is_object( $list ) ) {
1096 $class =
wfMessage(
'parentheses' )->params( get_class( $list ) )->escaped();
1099 } elseif ( !is_array( $list ) ) {
1102 if ( is_object( $list[0] ) ) {
1103 $class = get_class( $list[0] );
1108 return wfMessage(
'parentheses' )->params(
"$class, {$list[1]}" )->escaped();
1119 return $repo->getHeadSHA1();
1128 return $repo->getCurrentBranch();
1140 'version-entrypoints-scriptpath' => $scriptPath,
1141 'version-entrypoints-index-php' =>
wfScript(
'index' ),
1142 'version-entrypoints-api-php' =>
wfScript(
'api' ),
1143 'version-entrypoints-load-php' =>
wfScript(
'load' ),
1148 'dir' => $language->getDir(),
1149 'lang' => $language->getHtmlCode()
1153 [
'id' =>
'mw-version-entrypoints' ],
1154 $this->
msg(
'version-entrypoints' )->
text()
1158 'class' =>
'wikitable plainlinks',
1159 'id' =>
'mw-version-entrypoints-table',
1168 $this->
msg(
'version-entrypoints-header-entrypoint' )->
text()
1173 $this->
msg(
'version-entrypoints-header-url' )->
text()
1177 foreach ( $entryPoints
as $message =>
$value ) {
getExtensionCredits()
Generate wikitext showing the name, URL, author and description of each extension.
openExtType( $text=null, $name=null)
getPageTitle( $subpage=false)
Get a self-referential title object.
listAuthors( $authors, $extName, $extDir)
Return a formatted unsorted list of authors.
Marks HTML that shouldn't be escaped.
static getExtAuthorsFileName( $extDir)
Obtains the full path of an extensions authors or credits file if one exists.
getOutput()
Get the OutputPage being used for this instance.
listToText( $list, $sort=true)
Convert an array of items into a list for display.
static getMediaWikiCredits()
Returns wiki text showing the license information.
if(!isset( $args[0])) $lang
getCreditsForExtension( $type, array $extension)
Creates and formats a version line for a single extension.
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
compare( $a, $b)
Callback to sort extensions by type.
static getCopyrightAndAuthorList()
Get the "MediaWiki is copyright 2001-20xx by lots of cool guys" text.
$wgVersion
MediaWiki version number.
$coreId
Stores the current rev id/SHA hash of MediaWiki core.
Allows to change the fields on the form that will be generated $name
getLanguage()
Shortcut to get user's language.
getParserFunctionHooks()
Obtains a list of installed parser function hooks and the associated H2 header.
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 my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled allows for interception of redirect as a string mapping parameter names to values & $type
static openElement( $element, $attribs=null)
This opens an XML element.
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
static getVersionLinked()
Return a wikitext-formatted string of the MediaWiki version with a link to the Git SHA1 of head if av...
static arrayToString( $list)
Convert an array or object to a string for display.
static softwareInformation()
Returns wiki text showing the third party software versions (apache, php, mysql).
static closeElement( $element)
Returns "</$element>".
IPInfo()
Get information about client's IP address.
getExternalLibraries()
Generate an HTML table for external libraries that are installed.
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 & $html
wfMemcKey()
Make a cache key for the local wiki.
getSkinCredits()
Generate wikitext showing the name, URL, author and description of each skin.
wfScript( $script='index')
Get the path to a specified script file, respecting file extensions; this is a wrapper around $wgScri...
static getExtensionTypeName( $type)
Returns the internationalized name for an extension type.
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
static getICUVersion()
Return the version of ICU library used by PHP's intl extension, or false when the extension is not in...
static element( $element, $attribs=null, $contents='', $allowShortTag=true)
Format an XML element with given attributes and, optionally, text content.
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as $wgLang
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
static getExtensionTypes()
Returns an array with the base extension types.
static makeExternalLink( $url, $text, $escape=true, $linktype='', $attribs=[], $title=null)
Make an external link.
wfGetCache( $cacheType)
Get a specific cache object.
when a variable name is used in a it is silently declared as a new masking the global
getWgHooks()
Generate wikitext showing hooks in $wgHooks.
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
static getExtLicenseFileName( $extDir)
Obtains the full path of an extensions copying or license file if one exists.
static getwgVersionLinked()
static getVersion( $flags='', $lang=null)
Return a string of the MediaWiki version with Git revision if available.
static getGitCurrentBranch( $dir)
msg()
Wrapper around wfMessage that sets the current context.
Parent class for all special pages.
getRequest()
Get the WebRequest being used for this instance.
Give information about the version of MediaWiki, PHP, the DB and extensions.
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 & $ret
static getGitHeadSha1( $dir)
if the prop value should be in the metadata multi language array format
getEntryPointInfo()
Get the list of entry points and their URLs.
static getVersionLinkedGit()
static closeElement( $element)
Shortcut to close an XML element.
$wgHooks['ArticleShow'][]
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
static openElement( $element, $attribs=[])
Identical to rawElement(), but has no third parameter and omits the end tag (and the self-closing '/'...
static rawElement( $element, $attribs=[], $contents='')
Returns an HTML element in a string.
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "<
MediaWiki Linker LinkRenderer null $linkRenderer
static element( $element, $attribs=[], $contents='')
Identical to rawElement(), but HTML-escapes $contents (like Xml::element()).
getParserTags()
Obtains a list of installed parser tags and the associated H2 header.
wfIsHHVM()
Check if we are running under HHVM.
$wgScriptPath
The path we should point to.
static run( $event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
static getLocalInstance( $ts=false)
Get a timestamp instance in the server local timezone ($wgLocaltimezone)
Reads an installed.json file and provides accessors to get what is installed.
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...
it s the revision text itself In either if gzip is the revision text is gzipped $flags
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL.
the array() calling protocol came about after MediaWiki 1.4rc1.
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
getExtensionCategory( $type, $message)
Creates and returns the HTML for a single extension category.