3 * Displays information about a page.
5 * Copyright © 2011 Alexandre Emsenhuber
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
26 * Displays information about a page.
30 class InfoAction
extends FormlessAction
{
31 const CACHE_VERSION
= '2013-03-17';
34 * Returns the name of the action this object responds to.
36 * @return string Lowercase name
38 public function getName() {
43 * Whether this action can still be executed by a blocked user.
47 public function requiresUnblock() {
52 * Whether this action requires the wiki not to be locked.
56 public function requiresWrite() {
61 * Clear the info cache for a given Title.
64 * @param Title $title Title to clear cache for
66 public static function invalidateCache( Title
$title ) {
67 $cache = ObjectCache
::getMainWANInstance();
69 $revision = Revision
::newFromTitle( $title, 0, Revision
::READ_LATEST
);
70 if ( $revision !== null ) {
71 $key = wfMemcKey( 'infoaction', sha1( $title->getPrefixedText() ), $revision->getId() );
72 $cache->delete( $key );
77 * Shows page information on GET request.
79 * @return string Page information that will be added to the output
81 public function onView() {
85 $oldid = $this->page
->getOldID();
87 $revision = $this->page
->getRevisionFetched();
89 // Revision is missing
90 if ( $revision === null ) {
91 return $this->msg( 'missing-revision', $oldid )->parse();
94 // Revision is not current
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();
105 // Hide "This page is a member of # hidden categories" explanation
106 $content .= Html
::element( 'style', array(),
107 '.mw-hiddenCategoriesExplanation { display: none; }' ) . "\n";
109 // Hide "Templates used on this page" explanation
110 $content .= Html
::element( 'style', array(),
111 '.mw-templatesUsedExplanation { display: none; }' ) . "\n";
113 // Get page information
114 $pageInfo = $this->pageInfo();
116 // Allow extensions to add additional information
117 Hooks
::run( 'InfoAction', array( $this->getContext(), &$pageInfo ) );
119 // Render page information
120 foreach ( $pageInfo as $header => $infoTable ) {
122 // pageinfo-header-basic, pageinfo-header-edits, pageinfo-header-restrictions,
123 // pageinfo-header-properties, pageinfo-category-info
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;
130 $table = $this->addRow( $table, $name, $value, $id ) . "\n";
132 $content = $this->addTable( $content, $table ) . "\n";
136 if ( !$this->msg( 'pageinfo-footer' )->isDisabled() ) {
137 $content .= $this->msg( 'pageinfo-footer' )->parse();
141 /*if ( $this->page->exists() ) {
142 $content .= Html::rawElement( 'div', array( 'id' => 'mw-credits' ), $this->getContributors() );
149 * Creates a header that can be added to the output.
151 * @param string $header The header text.
152 * @return string The HTML.
154 protected function makeHeader( $header ) {
155 $spanAttribs = array( 'class' => 'mw-headline', 'id' => Sanitizer
::escapeId( $header ) );
157 return Html
::rawElement( 'h2', array(), Html
::element( 'span', $spanAttribs, $header ) );
161 * Adds a row to a table that will be added to the content.
163 * @param string $table The table that will be added to the content
164 * @param string $name The name of the row
165 * @param string $value The value of the row
166 * @param string $id The ID to use for the 'tr' element
167 * @return string The table with the row added
169 protected function addRow( $table, $name, $value, $id ) {
170 return $table . Html
::rawElement( 'tr', $id === null ?
array() : array( 'id' => 'mw-' . $id ),
171 Html
::rawElement( 'td', array( 'style' => 'vertical-align: top;' ), $name ) .
172 Html
::rawElement( 'td', array(), $value )
177 * Adds a table to the content that will be added to the output.
179 * @param string $content The content that will be added to the output
180 * @param string $table The table
181 * @return string The content with the table added
183 protected function addTable( $content, $table ) {
184 return $content . Html
::rawElement( 'table', array( 'class' => 'wikitable mw-page-info' ),
189 * Returns page information in an easily-manipulated format. Array keys are used so extensions
190 * may add additional information in arbitrary positions. Array values are arrays with one
191 * element to be rendered as a header, arrays with two elements to be rendered as a table row.
195 protected function pageInfo() {
198 $user = $this->getUser();
199 $lang = $this->getLanguage();
200 $title = $this->getTitle();
201 $id = $title->getArticleID();
202 $config = $this->context
->getConfig();
204 $cache = ObjectCache
::getMainWANInstance();
205 $memcKey = wfMemcKey( 'infoaction',
206 sha1( $title->getPrefixedText() ), $this->page
->getLatest() );
207 $pageCounts = $cache->get( $memcKey );
208 $version = isset( $pageCounts['cacheversion'] ) ?
$pageCounts['cacheversion'] : false;
209 if ( $pageCounts === false ||
$version !== self
::CACHE_VERSION
) {
210 // Get page information that would be too "expensive" to retrieve by normal means
211 $pageCounts = $this->pageCounts( $title );
212 $pageCounts['cacheversion'] = self
::CACHE_VERSION
;
214 $cache->set( $memcKey, $pageCounts );
217 // Get page properties
218 $dbr = wfGetDB( DB_SLAVE
);
219 $result = $dbr->select(
221 array( 'pp_propname', 'pp_value' ),
222 array( 'pp_page' => $id ),
226 $pageProperties = array();
227 foreach ( $result as $row ) {
228 $pageProperties[$row->pp_propname
] = $row->pp_value
;
233 $pageInfo['header-basic'] = array();
236 $displayTitle = $title->getPrefixedText();
237 if ( !empty( $pageProperties['displaytitle'] ) ) {
238 $displayTitle = $pageProperties['displaytitle'];
241 $pageInfo['header-basic'][] = array(
242 $this->msg( 'pageinfo-display-title' ), $displayTitle
245 // Is it a redirect? If so, where to?
246 if ( $title->isRedirect() ) {
247 $pageInfo['header-basic'][] = array(
248 $this->msg( 'pageinfo-redirectsto' ),
249 Linker
::link( $this->page
->getRedirectTarget() ) .
250 $this->msg( 'word-separator' )->escaped() .
251 $this->msg( 'parentheses' )->rawParams( Linker
::link(
252 $this->page
->getRedirectTarget(),
253 $this->msg( 'pageinfo-redirectsto-info' )->escaped(),
255 array( 'action' => 'info' )
261 $sortKey = $title->getCategorySortkey();
262 if ( !empty( $pageProperties['defaultsort'] ) ) {
263 $sortKey = $pageProperties['defaultsort'];
266 $sortKey = htmlspecialchars( $sortKey );
267 $pageInfo['header-basic'][] = array( $this->msg( 'pageinfo-default-sort' ), $sortKey );
269 // Page length (in bytes)
270 $pageInfo['header-basic'][] = array(
271 $this->msg( 'pageinfo-length' ), $lang->formatNum( $title->getLength() )
274 // Page ID (number not localised, as it's a database ID)
275 $pageInfo['header-basic'][] = array( $this->msg( 'pageinfo-article-id' ), $id );
277 // Language in which the page content is (supposed to be) written
278 $pageLang = $title->getPageLanguage()->getCode();
280 if ( $config->get( 'PageLanguageUseDB' )
281 && $this->getTitle()->userCan( 'pagelang', $this->getUser() )
283 // Link to Special:PageLanguage with pre-filled page title if user has permissions
284 $titleObj = SpecialPage
::getTitleFor( 'PageLanguage', $title->getPrefixedText() );
285 $langDisp = Linker
::link(
287 $this->msg( 'pageinfo-language' )->escaped()
290 // Display just the message
291 $langDisp = $this->msg( 'pageinfo-language' )->escaped();
294 $pageInfo['header-basic'][] = array( $langDisp,
295 Language
::fetchLanguageName( $pageLang, $lang->getCode() )
296 . ' ' . $this->msg( 'parentheses', $pageLang )->escaped() );
298 // Content model of the page
299 $pageInfo['header-basic'][] = array(
300 $this->msg( 'pageinfo-content-model' ),
301 htmlspecialchars( ContentHandler
::getLocalizedName( $title->getContentModel() ) )
304 // Search engine status
305 $pOutput = new ParserOutput();
306 if ( isset( $pageProperties['noindex'] ) ) {
307 $pOutput->setIndexPolicy( 'noindex' );
309 if ( isset( $pageProperties['index'] ) ) {
310 $pOutput->setIndexPolicy( 'index' );
313 // Use robot policy logic
314 $policy = $this->page
->getRobotPolicy( 'view', $pOutput );
315 $pageInfo['header-basic'][] = array(
316 // Messages: pageinfo-robot-index, pageinfo-robot-noindex
317 $this->msg( 'pageinfo-robot-policy' ), $this->msg( "pageinfo-robot-${policy['index']}" )
320 $unwatchedPageThreshold = $config->get( 'UnwatchedPageThreshold' );
322 $user->isAllowed( 'unwatchedpages' ) ||
323 ( $unwatchedPageThreshold !== false &&
324 $pageCounts['watchers'] >= $unwatchedPageThreshold )
326 // Number of page watchers
327 $pageInfo['header-basic'][] = array(
328 $this->msg( 'pageinfo-watchers' ), $lang->formatNum( $pageCounts['watchers'] )
330 } elseif ( $unwatchedPageThreshold !== false ) {
331 $pageInfo['header-basic'][] = array(
332 $this->msg( 'pageinfo-watchers' ),
333 $this->msg( 'pageinfo-few-watchers' )->numParams( $unwatchedPageThreshold )
337 // Redirects to this page
338 $whatLinksHere = SpecialPage
::getTitleFor( 'Whatlinkshere', $title->getPrefixedText() );
339 $pageInfo['header-basic'][] = array(
342 $this->msg( 'pageinfo-redirects-name' )->escaped(),
347 'hideimages' => $title->getNamespace() == NS_FILE
350 $this->msg( 'pageinfo-redirects-value' )
351 ->numParams( count( $title->getRedirectsHere() ) )
354 // Is it counted as a content page?
355 if ( $this->page
->isCountable() ) {
356 $pageInfo['header-basic'][] = array(
357 $this->msg( 'pageinfo-contentpage' ),
358 $this->msg( 'pageinfo-contentpage-yes' )
362 // Subpages of this page, if subpages are enabled for the current NS
363 if ( MWNamespace
::hasSubpages( $title->getNamespace() ) ) {
364 $prefixIndex = SpecialPage
::getTitleFor( 'Prefixindex', $title->getPrefixedText() . '/' );
365 $pageInfo['header-basic'][] = array(
366 Linker
::link( $prefixIndex, $this->msg( 'pageinfo-subpages-name' )->escaped() ),
367 $this->msg( 'pageinfo-subpages-value' )
369 $pageCounts['subpages']['total'],
370 $pageCounts['subpages']['redirects'],
371 $pageCounts['subpages']['nonredirects'] )
375 if ( $title->inNamespace( NS_CATEGORY
) ) {
376 $category = Category
::newFromTitle( $title );
378 // $allCount is the total number of cat members,
379 // not the count of how many members are normal pages.
380 $allCount = (int)$category->getPageCount();
381 $subcatCount = (int)$category->getSubcatCount();
382 $fileCount = (int)$category->getFileCount();
383 $pagesCount = $allCount - $subcatCount - $fileCount;
385 $pageInfo['category-info'] = array(
387 $this->msg( 'pageinfo-category-total' ),
388 $lang->formatNum( $allCount )
391 $this->msg( 'pageinfo-category-pages' ),
392 $lang->formatNum( $pagesCount )
395 $this->msg( 'pageinfo-category-subcats' ),
396 $lang->formatNum( $subcatCount )
399 $this->msg( 'pageinfo-category-files' ),
400 $lang->formatNum( $fileCount )
406 $pageInfo['header-restrictions'] = array();
408 // Is this page affected by the cascading protection of something which includes it?
409 if ( $title->isCascadeProtected() ) {
411 $sources = $title->getCascadeProtectionSources(); // Array deferencing is in PHP 5.4 :(
413 foreach ( $sources[0] as $sourceTitle ) {
414 $cascadingFrom .= Html
::rawElement( 'li', array(), Linker
::linkKnown( $sourceTitle ) );
417 $cascadingFrom = Html
::rawElement( 'ul', array(), $cascadingFrom );
418 $pageInfo['header-restrictions'][] = array(
419 $this->msg( 'pageinfo-protect-cascading-from' ),
424 // Is out protection set to cascade to other pages?
425 if ( $title->areRestrictionsCascading() ) {
426 $pageInfo['header-restrictions'][] = array(
427 $this->msg( 'pageinfo-protect-cascading' ),
428 $this->msg( 'pageinfo-protect-cascading-yes' )
433 foreach ( $title->getRestrictionTypes() as $restrictionType ) {
434 $protectionLevel = implode( ', ', $title->getRestrictions( $restrictionType ) );
436 if ( $protectionLevel == '' ) {
438 $message = $this->msg( 'protect-default' )->escaped();
440 // Administrators only
441 // Messages: protect-level-autoconfirmed, protect-level-sysop
442 $message = $this->msg( "protect-level-$protectionLevel" );
443 if ( $message->isDisabled() ) {
444 // Require "$1" permission
445 $message = $this->msg( "protect-fallback", $protectionLevel )->parse();
447 $message = $message->escaped();
450 $expiry = $title->getRestrictionExpiry( $restrictionType );
451 $formattedexpiry = $this->msg( 'parentheses', $this->getLanguage()->formatExpiry( $expiry ) )->escaped();
452 $message .= $this->msg( 'word-separator' )->escaped() . $formattedexpiry;
454 // Messages: restriction-edit, restriction-move, restriction-create,
455 // restriction-upload
456 $pageInfo['header-restrictions'][] = array(
457 $this->msg( "restriction-$restrictionType" ), $message
461 if ( !$this->page
->exists() ) {
466 $pageInfo['header-edits'] = array();
468 $firstRev = $this->page
->getOldestRevision();
469 $lastRev = $this->page
->getRevision();
470 $batch = new LinkBatch
;
473 $firstRevUser = $firstRev->getUserText( Revision
::FOR_THIS_USER
);
474 if ( $firstRevUser !== '' ) {
475 $batch->add( NS_USER
, $firstRevUser );
476 $batch->add( NS_USER_TALK
, $firstRevUser );
481 $lastRevUser = $lastRev->getUserText( Revision
::FOR_THIS_USER
);
482 if ( $lastRevUser !== '' ) {
483 $batch->add( NS_USER
, $lastRevUser );
484 $batch->add( NS_USER_TALK
, $lastRevUser );
492 $pageInfo['header-edits'][] = array(
493 $this->msg( 'pageinfo-firstuser' ),
494 Linker
::revUserTools( $firstRev )
497 // Date of page creation
498 $pageInfo['header-edits'][] = array(
499 $this->msg( 'pageinfo-firsttime' ),
502 htmlspecialchars( $lang->userTimeAndDate( $firstRev->getTimestamp(), $user ) ),
504 array( 'oldid' => $firstRev->getId() )
511 $pageInfo['header-edits'][] = array(
512 $this->msg( 'pageinfo-lastuser' ),
513 Linker
::revUserTools( $lastRev )
516 // Date of latest edit
517 $pageInfo['header-edits'][] = array(
518 $this->msg( 'pageinfo-lasttime' ),
521 htmlspecialchars( $lang->userTimeAndDate( $this->page
->getTimestamp(), $user ) ),
523 array( 'oldid' => $this->page
->getLatest() )
528 // Total number of edits
529 $pageInfo['header-edits'][] = array(
530 $this->msg( 'pageinfo-edits' ), $lang->formatNum( $pageCounts['edits'] )
533 // Total number of distinct authors
534 $pageInfo['header-edits'][] = array(
535 $this->msg( 'pageinfo-authors' ), $lang->formatNum( $pageCounts['authors'] )
538 // Recent number of edits (within past 30 days)
539 $pageInfo['header-edits'][] = array(
540 $this->msg( 'pageinfo-recent-edits', $lang->formatDuration( $config->get( 'RCMaxAge' ) ) ),
541 $lang->formatNum( $pageCounts['recent_edits'] )
544 // Recent number of distinct authors
545 $pageInfo['header-edits'][] = array(
546 $this->msg( 'pageinfo-recent-authors' ), $lang->formatNum( $pageCounts['recent_authors'] )
549 // Array of MagicWord objects
550 $magicWords = MagicWord
::getDoubleUnderscoreArray();
552 // Array of magic word IDs
553 $wordIDs = $magicWords->names
;
555 // Array of IDs => localized magic words
556 $localizedWords = $wgContLang->getMagicWords();
558 $listItems = array();
559 foreach ( $pageProperties as $property => $value ) {
560 if ( in_array( $property, $wordIDs ) ) {
561 $listItems[] = Html
::element( 'li', array(), $localizedWords[$property][1] );
565 $localizedList = Html
::rawElement( 'ul', array(), implode( '', $listItems ) );
566 $hiddenCategories = $this->page
->getHiddenCategories();
569 count( $listItems ) > 0 ||
570 count( $hiddenCategories ) > 0 ||
571 $pageCounts['transclusion']['from'] > 0 ||
572 $pageCounts['transclusion']['to'] > 0
574 $options = array( 'LIMIT' => $config->get( 'PageInfoTransclusionLimit' ) );
575 $transcludedTemplates = $title->getTemplateLinksFrom( $options );
576 if ( $config->get( 'MiserMode' ) ) {
577 $transcludedTargets = array();
579 $transcludedTargets = $title->getTemplateLinksTo( $options );
583 $pageInfo['header-properties'] = array();
586 if ( count( $listItems ) > 0 ) {
587 $pageInfo['header-properties'][] = array(
588 $this->msg( 'pageinfo-magic-words' )->numParams( count( $listItems ) ),
594 if ( count( $hiddenCategories ) > 0 ) {
595 $pageInfo['header-properties'][] = array(
596 $this->msg( 'pageinfo-hidden-categories' )
597 ->numParams( count( $hiddenCategories ) ),
598 Linker
::formatHiddenCategories( $hiddenCategories )
602 // Transcluded templates
603 if ( $pageCounts['transclusion']['from'] > 0 ) {
604 if ( $pageCounts['transclusion']['from'] > count( $transcludedTemplates ) ) {
605 $more = $this->msg( 'morenotlisted' )->escaped();
610 $pageInfo['header-properties'][] = array(
611 $this->msg( 'pageinfo-templates' )
612 ->numParams( $pageCounts['transclusion']['from'] ),
613 Linker
::formatTemplates(
614 $transcludedTemplates,
621 if ( !$config->get( 'MiserMode' ) && $pageCounts['transclusion']['to'] > 0 ) {
622 if ( $pageCounts['transclusion']['to'] > count( $transcludedTargets ) ) {
623 $more = Linker
::link(
625 $this->msg( 'moredotdotdot' )->escaped(),
627 array( 'hidelinks' => 1, 'hideredirs' => 1 )
633 $pageInfo['header-properties'][] = array(
634 $this->msg( 'pageinfo-transclusions' )
635 ->numParams( $pageCounts['transclusion']['to'] ),
636 Linker
::formatTemplates(
649 * Returns page counts that would be too "expensive" to retrieve by normal means.
651 * @param Title $title Title to get counts for
654 protected function pageCounts( Title
$title ) {
655 $id = $title->getArticleID();
656 $config = $this->context
->getConfig();
658 $dbr = wfGetDB( DB_SLAVE
);
661 // Number of page watchers
662 $watchers = (int)$dbr->selectField(
666 'wl_namespace' => $title->getNamespace(),
667 'wl_title' => $title->getDBkey(),
671 $result['watchers'] = $watchers;
673 // Total number of edits
674 $edits = (int)$dbr->selectField(
677 array( 'rev_page' => $id ),
680 $result['edits'] = $edits;
682 // Total number of distinct authors
683 $authors = (int)$dbr->selectField(
685 'COUNT(DISTINCT rev_user_text)',
686 array( 'rev_page' => $id ),
689 $result['authors'] = $authors;
691 // "Recent" threshold defined by RCMaxAge setting
692 $threshold = $dbr->timestamp( time() - $config->get( 'RCMaxAge' ) );
694 // Recent number of edits
695 $edits = (int)$dbr->selectField(
700 "rev_timestamp >= " . $dbr->addQuotes( $threshold )
704 $result['recent_edits'] = $edits;
706 // Recent number of distinct authors
707 $authors = (int)$dbr->selectField(
709 'COUNT(DISTINCT rev_user_text)',
712 "rev_timestamp >= " . $dbr->addQuotes( $threshold )
716 $result['recent_authors'] = $authors;
718 // Subpages (if enabled)
719 if ( MWNamespace
::hasSubpages( $title->getNamespace() ) ) {
720 $conds = array( 'page_namespace' => $title->getNamespace() );
721 $conds[] = 'page_title ' . $dbr->buildLike( $title->getDBkey() . '/', $dbr->anyString() );
723 // Subpages of this page (redirects)
724 $conds['page_is_redirect'] = 1;
725 $result['subpages']['redirects'] = (int)$dbr->selectField(
731 // Subpages of this page (non-redirects)
732 $conds['page_is_redirect'] = 0;
733 $result['subpages']['nonredirects'] = (int)$dbr->selectField(
740 // Subpages of this page (total)
741 $result['subpages']['total'] = $result['subpages']['redirects']
742 +
$result['subpages']['nonredirects'];
745 // Counts for the number of transclusion links (to/from)
746 if ( $config->get( 'MiserMode' ) ) {
747 $result['transclusion']['to'] = 0;
749 $result['transclusion']['to'] = (int)$dbr->selectField(
753 'tl_namespace' => $title->getNamespace(),
754 'tl_title' => $title->getDBkey()
760 $result['transclusion']['from'] = (int)$dbr->selectField(
763 array( 'tl_from' => $title->getArticleID() ),
771 * Returns the name that goes in the "<h1>" page title.
775 protected function getPageTitle() {
776 return $this->msg( 'pageinfo-title', $this->getTitle()->getPrefixedText() )->text();
780 * Get a list of contributors of $article
781 * @return string Html
783 protected function getContributors() {
784 $contributors = $this->page
->getContributors();
785 $real_names = array();
786 $user_names = array();
789 # Sift for real versus user names
790 /** @var $user User */
791 foreach ( $contributors as $user ) {
792 $page = $user->isAnon()
793 ? SpecialPage
::getTitleFor( 'Contributions', $user->getName() )
794 : $user->getUserPage();
796 $hiddenPrefs = $this->context
->getConfig()->get( 'HiddenPrefs' );
797 if ( $user->getID() == 0 ) {
798 $anon_ips[] = Linker
::link( $page, htmlspecialchars( $user->getName() ) );
799 } elseif ( !in_array( 'realname', $hiddenPrefs ) && $user->getRealName() ) {
800 $real_names[] = Linker
::link( $page, htmlspecialchars( $user->getRealName() ) );
802 $user_names[] = Linker
::link( $page, htmlspecialchars( $user->getName() ) );
806 $lang = $this->getLanguage();
808 $real = $lang->listToText( $real_names );
810 # "ThisSite user(s) A, B and C"
811 if ( count( $user_names ) ) {
812 $user = $this->msg( 'siteusers' )->rawParams( $lang->listToText( $user_names ) )->params(
813 count( $user_names ) )->escaped();
818 if ( count( $anon_ips ) ) {
819 $anon = $this->msg( 'anonusers' )->rawParams( $lang->listToText( $anon_ips ) )->params(
820 count( $anon_ips ) )->escaped();
825 # This is the big list, all mooshed together. We sift for blank strings
827 foreach ( array( $real, $user, $anon ) as $s ) {
829 array_push( $fulllist, $s );
833 $count = count( $fulllist );
835 # "Based on work by ..."
837 ?
$this->msg( 'othercontribs' )->rawParams(
838 $lang->listToText( $fulllist ) )->params( $count )->escaped()
843 * Returns the description that goes below the "<h1>" tag.
847 protected function getDescription() {