Go to the documentation of this file.
70 if ( $revision !==
null ) {
71 $key =
wfMemcKey(
'infoaction', sha1(
$title->getPrefixedText() ), $revision->getId() );
85 $oldid = $this->
page->getOldID();
87 $revision = $this->
page->getRevisionFetched();
90 if ( $revision ===
null ) {
91 return $this->
msg(
'missing-revision', $oldid )->parse();
95 if ( !$revision->isCurrent() ) {
96 return $this->
msg(
'pageinfo-not-current' )->plain();
101 if ( !$this->
msg(
'pageinfo-header' )->isDisabled() ) {
102 $content .= $this->
msg(
'pageinfo-header' )->parse();
107 '.mw-hiddenCategoriesExplanation { display: none; }' ) .
"\n";
111 '.mw-templatesUsedExplanation { display: none; }' ) .
"\n";
120 foreach ( $pageInfo
as $header => $infoTable ) {
124 $content .= $this->
makeHeader( $this->
msg(
"pageinfo-${header}" )->escaped() ) .
"\n";
126 foreach ( $infoTable
as $infoRow ) {
127 $name = ( $infoRow[0] instanceof Message ) ? $infoRow[0]->escaped() : $infoRow[0];
128 $value = ( $infoRow[1] instanceof Message ) ? $infoRow[1]->escaped() : $infoRow[1];
129 $id = ( $infoRow[0] instanceof Message ) ? $infoRow[0]->getKey() :
null;
132 $content = $this->
addTable( $content, $table ) .
"\n";
136 if ( !$this->
msg(
'pageinfo-footer' )->isDisabled() ) {
137 $content .= $this->
msg(
'pageinfo-footer' )->parse();
197 $wgUnwatchedPageThreshold, $wgPageInfoTransclusionLimit;
202 $id =
$title->getArticleID();
205 sha1(
$title->getPrefixedText() ), $this->
page->getLatest() );
206 $pageCounts =
$wgMemc->get( $memcKey );
207 $version = isset( $pageCounts[
'cacheversion'] ) ? $pageCounts[
'cacheversion'] :
false;
208 if ( $pageCounts ===
false ||
$version !== self::CACHE_VERSION ) {
213 $wgMemc->set( $memcKey, $pageCounts );
220 array(
'pp_propname',
'pp_value' ),
221 array(
'pp_page' => $id ),
225 $pageProperties =
array();
227 $pageProperties[$row->pp_propname] = $row->pp_value;
232 $pageInfo[
'header-basic'] =
array();
235 $displayTitle =
$title->getPrefixedText();
236 if ( !empty( $pageProperties[
'displaytitle'] ) ) {
237 $displayTitle = $pageProperties[
'displaytitle'];
240 $pageInfo[
'header-basic'][] =
array(
241 $this->
msg(
'pageinfo-display-title' ), $displayTitle
245 if (
$title->isRedirect() ) {
246 $pageInfo[
'header-basic'][] =
array(
247 $this->
msg(
'pageinfo-redirectsto' ),
249 $this->
msg(
'word-separator' )->text() .
251 $this->
page->getRedirectTarget(),
252 $this->
msg(
'pageinfo-redirectsto-info' )->escaped(),
254 array(
'action' =>
'info' )
260 $sortKey =
$title->getCategorySortkey();
261 if ( !empty( $pageProperties[
'defaultsort'] ) ) {
262 $sortKey = $pageProperties[
'defaultsort'];
265 $sortKey = htmlspecialchars( $sortKey );
266 $pageInfo[
'header-basic'][] =
array( $this->
msg(
'pageinfo-default-sort' ), $sortKey );
269 $pageInfo[
'header-basic'][] =
array(
270 $this->
msg(
'pageinfo-length' ), $lang->formatNum(
$title->getLength() )
274 $pageInfo[
'header-basic'][] =
array( $this->
msg(
'pageinfo-article-id' ), $id );
277 $pageLang =
$title->getPageLanguage()->getCode();
278 $pageInfo[
'header-basic'][] =
array( $this->
msg(
'pageinfo-language' ),
280 .
' ' . $this->
msg(
'parentheses', $pageLang ) );
283 $pageInfo[
'header-basic'][] =
array(
284 $this->
msg(
'pageinfo-content-model' ),
290 if ( isset( $pageProperties[
'noindex'] ) ) {
291 $pOutput->setIndexPolicy(
'noindex' );
293 if ( isset( $pageProperties[
'index'] ) ) {
294 $pOutput->setIndexPolicy(
'index' );
298 $policy = $this->
page->getRobotPolicy(
'view', $pOutput );
299 $pageInfo[
'header-basic'][] =
array(
301 $this->
msg(
'pageinfo-robot-policy' ), $this->
msg(
"pageinfo-robot-${policy['index']}" )
304 if ( isset( $pageCounts[
'views'] ) ) {
306 $pageInfo[
'header-basic'][] =
array(
307 $this->
msg(
'pageinfo-views' ), $lang->formatNum( $pageCounts[
'views'] )
312 $user->isAllowed(
'unwatchedpages' ) ||
313 ( $wgUnwatchedPageThreshold !==
false &&
314 $pageCounts[
'watchers'] >= $wgUnwatchedPageThreshold )
317 $pageInfo[
'header-basic'][] =
array(
318 $this->
msg(
'pageinfo-watchers' ), $lang->formatNum( $pageCounts[
'watchers'] )
320 } elseif ( $wgUnwatchedPageThreshold !==
false ) {
321 $pageInfo[
'header-basic'][] =
array(
322 $this->
msg(
'pageinfo-watchers' ),
323 $this->
msg(
'pageinfo-few-watchers' )->numParams( $wgUnwatchedPageThreshold )
329 $pageInfo[
'header-basic'][] =
array(
332 $this->
msg(
'pageinfo-redirects-name' )->escaped(),
334 array(
'hidelinks' => 1,
'hidetrans' => 1 )
336 $this->
msg(
'pageinfo-redirects-value' )
337 ->numParams( count(
$title->getRedirectsHere() ) )
341 if ( $this->
page->isCountable() ) {
342 $pageInfo[
'header-basic'][] =
array(
343 $this->
msg(
'pageinfo-contentpage' ),
344 $this->
msg(
'pageinfo-contentpage-yes' )
351 $pageInfo[
'header-basic'][] =
array(
352 Linker::link( $prefixIndex, $this->
msg(
'pageinfo-subpages-name' )->escaped() ),
353 $this->
msg(
'pageinfo-subpages-value' )
355 $pageCounts[
'subpages'][
'total'],
356 $pageCounts[
'subpages'][
'redirects'],
357 $pageCounts[
'subpages'][
'nonredirects'] )
363 $pageInfo[
'category-info'] =
array(
365 $this->
msg(
'pageinfo-category-pages' ),
366 $lang->formatNum( $category->getPageCount() )
369 $this->
msg(
'pageinfo-category-subcats' ),
370 $lang->formatNum( $category->getSubcatCount() )
373 $this->
msg(
'pageinfo-category-files' ),
374 $lang->formatNum( $category->getFileCount() )
380 $pageInfo[
'header-restrictions'] =
array();
383 if (
$title->isCascadeProtected() ) {
385 $sources =
$title->getCascadeProtectionSources();
387 foreach ( $sources[0]
as $sourceTitle ) {
392 $pageInfo[
'header-restrictions'][] =
array(
393 $this->
msg(
'pageinfo-protect-cascading-from' ),
399 if (
$title->areRestrictionsCascading() ) {
400 $pageInfo[
'header-restrictions'][] =
array(
401 $this->
msg(
'pageinfo-protect-cascading' ),
402 $this->
msg(
'pageinfo-protect-cascading-yes' )
407 foreach (
$title->getRestrictionTypes()
as $restrictionType ) {
408 $protectionLevel = implode(
', ',
$title->getRestrictions( $restrictionType ) );
410 if ( $protectionLevel ==
'' ) {
412 $message = $this->
msg(
'protect-default' )->escaped();
416 $message = $this->
msg(
"protect-level-$protectionLevel" );
417 if ( $message->isDisabled() ) {
419 $message = $this->
msg(
"protect-fallback", $protectionLevel )->parse();
421 $message = $message->escaped();
427 $pageInfo[
'header-restrictions'][] =
array(
428 $this->
msg(
"restriction-$restrictionType" ), $message
432 if ( !$this->
page->exists() ) {
437 $pageInfo[
'header-edits'] =
array();
439 $firstRev = $this->
page->getOldestRevision();
440 $lastRev = $this->
page->getRevision();
445 if ( $firstRevUser !==
'' ) {
453 if ( $lastRevUser !==
'' ) {
463 $pageInfo[
'header-edits'][] =
array(
464 $this->
msg(
'pageinfo-firstuser' ),
469 $pageInfo[
'header-edits'][] =
array(
470 $this->
msg(
'pageinfo-firsttime' ),
473 $lang->userTimeAndDate( $firstRev->getTimestamp(),
$user ),
475 array(
'oldid' => $firstRev->getId() )
482 $pageInfo[
'header-edits'][] =
array(
483 $this->
msg(
'pageinfo-lastuser' ),
488 $pageInfo[
'header-edits'][] =
array(
489 $this->
msg(
'pageinfo-lasttime' ),
492 $lang->userTimeAndDate( $this->page->getTimestamp(),
$user ),
494 array(
'oldid' => $this->
page->getLatest() )
500 $pageInfo[
'header-edits'][] =
array(
501 $this->
msg(
'pageinfo-edits' ), $lang->formatNum( $pageCounts[
'edits'] )
505 $pageInfo[
'header-edits'][] =
array(
506 $this->
msg(
'pageinfo-authors' ), $lang->formatNum( $pageCounts[
'authors'] )
510 $pageInfo[
'header-edits'][] =
array(
511 $this->
msg(
'pageinfo-recent-edits', $lang->formatDuration( $wgRCMaxAge ) ),
512 $lang->formatNum( $pageCounts[
'recent_edits'] )
516 $pageInfo[
'header-edits'][] =
array(
517 $this->
msg(
'pageinfo-recent-authors' ), $lang->formatNum( $pageCounts[
'recent_authors'] )
529 $listItems =
array();
537 $hiddenCategories = $this->
page->getHiddenCategories();
540 count( $listItems ) > 0 ||
541 count( $hiddenCategories ) > 0 ||
542 $pageCounts[
'transclusion'][
'from'] > 0 ||
543 $pageCounts[
'transclusion'][
'to'] > 0
547 if ( $wgMiserMode ) {
548 $transcludedTargets =
array();
554 $pageInfo[
'header-properties'] =
array();
557 if ( count( $listItems ) > 0 ) {
558 $pageInfo[
'header-properties'][] =
array(
559 $this->
msg(
'pageinfo-magic-words' )->numParams( count( $listItems ) ),
565 if ( count( $hiddenCategories ) > 0 ) {
566 $pageInfo[
'header-properties'][] =
array(
567 $this->
msg(
'pageinfo-hidden-categories' )
568 ->numParams( count( $hiddenCategories ) ),
574 if ( $pageCounts[
'transclusion'][
'from'] > 0 ) {
575 if ( $pageCounts[
'transclusion'][
'from'] > count( $transcludedTemplates ) ) {
576 $more = $this->
msg(
'morenotlisted' )->escaped();
581 $pageInfo[
'header-properties'][] =
array(
582 $this->
msg(
'pageinfo-templates' )
583 ->numParams( $pageCounts[
'transclusion'][
'from'] ),
585 $transcludedTemplates,
592 if ( !$wgMiserMode && $pageCounts[
'transclusion'][
'to'] > 0 ) {
593 if ( $pageCounts[
'transclusion'][
'to'] > count( $transcludedTargets ) ) {
596 $this->
msg(
'moredotdotdot' )->escaped(),
598 array(
'hidelinks' => 1,
'hideredirs' => 1 )
604 $pageInfo[
'header-properties'][] =
array(
605 $this->
msg(
'pageinfo-transclusions' )
606 ->numParams( $pageCounts[
'transclusion'][
'to'] ),
626 global $wgRCMaxAge, $wgDisableCounters, $wgMiserMode;
629 $id =
$title->getArticleID();
634 if ( !$wgDisableCounters ) {
636 $views = (int)
$dbr->selectField(
639 array(
'page_id' => $id ),
646 $watchers = (int)
$dbr->selectField(
650 'wl_namespace' =>
$title->getNamespace(),
651 'wl_title' =>
$title->getDBkey(),
655 $result[
'watchers'] = $watchers;
658 $edits = (int)
$dbr->selectField(
661 array(
'rev_page' => $id ),
667 $authors = (int)
$dbr->selectField(
669 'COUNT(DISTINCT rev_user_text)',
670 array(
'rev_page' => $id ),
676 $threshold =
$dbr->timestamp( time() - $wgRCMaxAge );
679 $edits = (int)
$dbr->selectField(
684 "rev_timestamp >= " .
$dbr->addQuotes( $threshold )
688 $result[
'recent_edits'] = $edits;
691 $authors = (int)
$dbr->selectField(
693 'COUNT(DISTINCT rev_user_text)',
696 "rev_timestamp >= " .
$dbr->addQuotes( $threshold )
700 $result[
'recent_authors'] = $authors;
704 $conds =
array(
'page_namespace' =>
$title->getNamespace() );
705 $conds[] =
'page_title ' .
$dbr->buildLike(
$title->getDBkey() .
'/',
$dbr->anyString() );
708 $conds[
'page_is_redirect'] = 1;
709 $result[
'subpages'][
'redirects'] = (int)
$dbr->selectField(
716 $conds[
'page_is_redirect'] = 0;
717 $result[
'subpages'][
'nonredirects'] = (int)
$dbr->selectField(
726 +
$result[
'subpages'][
'nonredirects'];
730 if ( $wgMiserMode ) {
731 $result[
'transclusion'][
'to'] = 0;
733 $result[
'transclusion'][
'to'] = (int)
$dbr->selectField(
737 'tl_namespace' =>
$title->getNamespace(),
738 'tl_title' =>
$title->getDBkey()
744 $result[
'transclusion'][
'from'] = (int)
$dbr->selectField(
762 return $this->
msg(
'pageinfo-title', $this->
getTitle()->getPrefixedText() )->text();
772 $contributors = $this->
page->getContributors();
773 $real_names =
array();
774 $user_names =
array();
777 # Sift for real versus user names
779 foreach ( $contributors
as $user ) {
782 :
$user->getUserPage();
784 if (
$user->getID() == 0 ) {
786 } elseif ( !in_array(
'realname', $wgHiddenPrefs ) &&
$user->getRealName() ) {
795 $real = $lang->listToText( $real_names );
797 # "ThisSite user(s) A, B and C"
798 if ( count( $user_names ) ) {
799 $user = $this->
msg(
'siteusers' )->rawParams( $lang->listToText( $user_names ) )->params(
800 count( $user_names ) )->escaped();
805 if ( count( $anon_ips ) ) {
806 $anon = $this->
msg(
'anonusers' )->rawParams( $lang->listToText( $anon_ips ) )->params(
807 count( $anon_ips ) )->escaped();
812 # This is the big list, all mooshed together. We sift for blank strings
816 array_push( $fulllist,
$s );
820 $count = count( $fulllist );
822 # "Based on work by ..."
824 ? $this->
msg(
'othercontribs' )->rawParams(
825 $lang->listToText( $fulllist ) )->params(
$count )->escaped()
The index of the header message $result[1]=The index of the body text message $result[2 through n]=Parameters passed to body text message. Please note the header message cannot receive/use parameters. 'ImportHandleLogItemXMLTag':When parsing a XML tag in a log item. $reader:XMLReader object $logInfo:Array of information Return false to stop further processing of the tag 'ImportHandlePageXMLTag':When parsing a XML tag in a page. $reader:XMLReader object $pageInfo:Array of information Return false to stop further processing of the tag 'ImportHandleRevisionXMLTag':When parsing a XML tag in a page revision. $reader:XMLReader object $pageInfo:Array of page information $revisionInfo:Array of revision information Return false to stop further processing of the tag 'ImportHandleToplevelXMLTag':When parsing a top level XML tag. $reader:XMLReader object Return false to stop further processing of the tag 'ImportHandleUploadXMLTag':When parsing a XML tag in a file upload. $reader:XMLReader object $revisionInfo:Array of information Return false to stop further processing of the tag 'InfoAction':When building information to display on the action=info page. $context:IContextSource object & $pageInfo:Array of information 'InitializeArticleMaybeRedirect':MediaWiki check to see if title is a redirect. $title:Title object for the current page $request:WebRequest $ignoreRedirect:boolean to skip redirect check $target:Title/string of redirect target $article:Article object 'InterwikiLoadPrefix':When resolving if a given prefix is an interwiki or not. Return true without providing an interwiki to continue interwiki search. $prefix:interwiki prefix we are looking for. & $iwData:output array describing the interwiki with keys iw_url, iw_local, iw_trans and optionally iw_api and iw_wikiid. 'InternalParseBeforeSanitize':during Parser 's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/includeonly/onlyinclude and other processings. Ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InternalParseBeforeLinks':during Parser 's internalParse method before links but after nowiki/noinclude/includeonly/onlyinclude and other processings. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InvalidateEmailComplete':Called after a user 's email has been invalidated successfully. $user:user(object) whose email is being invalidated 'IRCLineURL':When constructing the URL to use in an IRC notification. Callee may modify $url and $query, URL will be constructed as $url . $query & $url:URL to index.php & $query:Query string $rc:RecentChange object that triggered url generation 'IsFileCacheable':Override the result of Article::isFileCacheable()(if true) $article:article(object) being checked 'IsTrustedProxy':Override the result of wfIsTrustedProxy() $ip:IP being check $result:Change this value to override the result of wfIsTrustedProxy() 'IsUploadAllowedFromUrl':Override the result of UploadFromUrl::isAllowedUrl() $url:URL used to upload from & $allowed:Boolean indicating if uploading is allowed for given URL 'isValidEmailAddr':Override the result of User::isValidEmailAddr(), for instance to return false if the domain name doesn 't match your organization. $addr:The e-mail address entered by the user & $result:Set this and return false to override the internal checks 'isValidPassword':Override the result of User::isValidPassword() $password:The password entered by the user & $result:Set this and return false to override the internal checks $user:User the password is being validated for 'Language::getMessagesFileName':$code:The language code or the language we 're looking for a messages file for & $file:The messages file path, you can override this to change the location. 'LanguageGetNamespaces':Provide custom ordering for namespaces or remove namespaces. Do not use this hook to add namespaces. Use CanonicalNamespaces for that. & $namespaces:Array of namespaces indexed by their numbers 'LanguageGetMagic':DEPRECATED, use $magicWords in a file listed in $wgExtensionMessagesFiles instead. Use this to define synonyms of magic words depending of the language $magicExtensions:associative array of magic words synonyms $lang:language code(string) 'LanguageGetSpecialPageAliases':DEPRECATED, use $specialPageAliases in a file listed in $wgExtensionMessagesFiles instead. Use to define aliases of special pages names depending of the language $specialPageAliases:associative array of magic words synonyms $lang:language code(string) 'LanguageGetTranslatedLanguageNames':Provide translated language names. & $names:array of language code=> language name $code language of the preferred translations 'LanguageLinks':Manipulate a page 's language links. This is called in various places to allow extensions to define the effective language links for a page. $title:The page 's Title. & $links:Associative array mapping language codes to prefixed links of the form "language:title". & $linkFlags:Associative array mapping prefixed links to arrays of flags. Currently unused, but planned to provide support for marking individual language links in the UI, e.g. for featured articles. 'LinkBegin':Used when generating internal and interwiki links in Linker::link(), before processing starts. Return false to skip default processing and return $ret. See documentation for Linker::link() for details on the expected meanings of parameters. $skin:the Skin object $target:the Title that the link is pointing to & $html:the contents that the< a > tag should have(raw HTML) $result
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Class representing a list of titles The execute() method checks them all for existence and adds them ...
globals will be eliminated from MediaWiki replaced by an application object which would be passed to constructors Whether that would be an convenient solution remains to be but certainly PHP makes such object oriented programming models easier than they were in previous versions For the time being MediaWiki programmers will have to work in an environment with some global context At the time of globals were initialised on startup by MediaWiki of these were configuration which are documented in DefaultSettings php There is no comprehensive documentation for the remaining however some of the most important ones are listed below They are typically initialised either in index php or in Setup php For a description of the see design txt $wgTitle Title object created from the request URL $wgOut OutputPage object for HTTP response $wgUser User object for the user associated with the current request $wgLang Language object selected by user preferences $wgContLang Language object associated with the wiki being viewed $wgParser Parser object Parser extensions register their hooks here $wgRequest WebRequest to get request data $wgMemc
& wfGetDB( $db, $groups=array(), $wiki=false)
Get a Database object.
getDescription()
Returns the description that goes below the "<h1>" tag.
wfProfileIn( $functionname)
Begin profiling of a function.
requiresWrite()
Whether this action requires the wiki not to be locked.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name.
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 and the content language as $wgContLang
makeHeader( $header)
Creates a header that can be added to the output.
getName()
Returns the name of the action this object responds to.
static linkKnown( $target, $html=null, $customAttribs=array(), $query=array(), $options=array( 'known', 'noclasses'))
Identical to link(), except $options defaults to 'known'.
getContributors()
Get a list of contributors of $article.
static formatHiddenCategories( $hiddencats)
Returns HTML for the "hidden categories on this page" list.
static link( $target, $html=null, $customAttribs=array(), $query=array(), $options=array())
This function returns an HTML link to the given target.
static getLocalizedName( $name)
Returns the localized name for a given content model.
getContext()
Get the IContextSource in use here.
Displays information about a page.
wfMemcKey()
Get a cache key.
static factory(Title $title)
Create a WikiPage object of the appropriate class for the given title.
getPageTitle()
Returns the name that goes in the "<h1>" page title.
static element( $element, $attribs=array(), $contents='')
Identical to rawElement(), but HTML-escapes $contents (like Xml::element()).
static invalidateCache(Title $title)
Clear the info cache for a given Title.
static revUserTools( $rev, $isPublic=false)
Generate a user tool link cluster if the current user is allowed to view it.
wfProfileOut( $functionname='missing')
Stop profiling of a function.
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
static hasSubpages( $index)
Does the namespace allow subpages?
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
magicword txt Magic Words are some phrases used in the wikitext They are used for two that looks like templates but that don t accept any parameter *Parser functions(like {{fullurl:...}}, {{#special:...}}) $magicWords['en']
addRow( $table, $name, $value, $id)
Adds a row to a table that will be added to the content.
static escapeId( $id, $options=array())
Given a value, escape it so that it can be used in an id attribute and return it.
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
static newFromTitle( $title)
Factory function.
getUser()
Shortcut to get the User being used for this instance.
presenting them properly to the user as errors is done by the caller $title
pageInfo()
Returns page information in an easily-manipulated format.
Allows to change the fields on the form that will be generated $name
addTable( $content, $table)
Adds a table to the content that will be added to the output.
getTitle()
Shortcut to get the Title object from the page.
static formatTemplates( $templates, $preview=false, $section=false, $more=null)
Returns HTML for the "templates used on this page" list.
static fetchLanguageName( $code, $inLanguage=null, $include='all')
requiresUnblock()
Whether this action can still be executed by a blocked user.
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 account $user
msg()
Get a Message object with context set Parameters are the same as wfMessage()
onView()
Shows page information on GET request.
static pageCounts(Title $title)
Returns page counts that would be too "expensive" to retrieve by normal means.
Represents a title within MediaWiki.
WikiPage Article ImagePage CategoryPage Page $page
Page on which we're performing the action $page.
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
getLanguage()
Shortcut to get the user Language being used for this instance.
static getDoubleUnderscoreArray()
Get a MagicWordArray of double-underscore entities.
static rawElement( $element, $attribs=array(), $contents='')
Returns an HTML element in a string.
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 my talk page