3 * @defgroup Skins Skins
6 if ( !defined( 'MEDIAWIKI' ) ) {
10 class SkinLegacy
extends SkinTemplate
{
11 var $useHeadElement = true;
12 protected $mWatchLinkNum = 0; // Appended to end of watch link id's
15 * Add skin specific stylesheets
16 * @param $out OutputPage
18 function setupSkinUserCss( OutputPage
$out ) {
19 $out->addModuleStyles( 'mediawiki.legacy.shared' );
20 $out->addModuleStyles( 'mediawiki.legacy.oldshared' );
23 public function commonPrintStylesheet() {
28 * This was for the old skins and for users with 640x480 screen.
29 * Please note old skins are still used and might prove useful for
30 * users having old computers or visually impaired.
32 var $mSuppressQuickbar = false;
35 * Suppress the quickbar from the output, only for skin supporting
38 public function suppressQuickbar() {
39 $this->mSuppressQuickbar
= true;
43 * Return whether the quickbar should be suppressed from the output
47 public function isQuickbarSuppressed() {
48 return $this->mSuppressQuickbar
;
51 function qbSetting() {
53 if ( $this->isQuickbarSuppressed() ) {
56 $q = $wgUser->getOption( 'quickbar', 0 );
58 # 5 is the default, which chooses the setting
59 # depending on the directionality of your interface language
61 return $wgLang->isRTL() ?
2 : 1;
68 class LegacyTemplate
extends BaseTemplate
{
70 // How many search boxes have we made? Avoid duplicate id's.
71 protected $searchboxes = '';
74 $this->html( 'headelement' );
75 echo $this->beforeContent();
76 $this->html( 'bodytext' );
77 echo '<div class="printfooter">';
78 $this->html( 'printfooter' );
80 $this->html( 'debughtml' );
82 echo $this->afterContent();
83 $this->html( 'dataAfterContent' );
85 echo "\n</body></html>";
89 * This will be called immediately after the <body> tag. Split into
90 * two functions to make it easier to subclass.
92 function beforeContent() {
93 return $this->doBeforeContent();
96 function doBeforeContent() {
98 wfProfileIn( __METHOD__
);
101 $qb = $this->getSkin()->qbSetting();
103 $langlinks = $this->otherLanguages();
110 $borderhack = 'class="top"';
113 $s .= "\n<div id='content'>\n<div id='topbar'>\n" .
114 "<table border='0' cellspacing='0' width='98%'>\n<tr>\n";
116 $shove = ( $qb != 0 );
117 $left = ( $qb == 1 ||
$qb == 3 );
120 $s .= "<td class='top' align='left' valign='top' rowspan='{$rows}'>\n" .
121 $this->getSkin()->logoText() . '</td>';
123 $s .= $this->getQuickbarCompensator( $rows );
126 $l = $wgContLang->alignStart();
127 $s .= "<td {$borderhack} align='$l' valign='top'>\n";
129 $s .= $this->topLinks();
130 $s .= '<p class="subtitle">' . $this->pageTitleLinks() . "</p>\n";
132 $r = $wgContLang->alignEnd();
133 $s .= "</td>\n<td {$borderhack} valign='top' align='$r' nowrap='nowrap'>";
134 $s .= $this->nameAndLogin();
135 $s .= "\n<br />" . $this->searchForm() . '</td>';
138 $s .= "</tr>\n<tr>\n<td class='top' colspan=\"2\">$langlinks</td>\n";
141 if ( $shove && !$left ) { # Right
142 $s .= $this->getQuickbarCompensator( $rows );
145 $s .= "</tr>\n</table>\n</div>\n";
146 $s .= "\n<div id='article'>\n";
148 $notice = $this->getSkin()->getSiteNotice();
151 $s .= "\n<div id='siteNotice'>$notice</div>\n";
153 $s .= $this->pageTitle();
154 $s .= $this->pageSubtitle();
155 $s .= $this->getSkin()->getCategories();
157 wfProfileOut( __METHOD__
);
162 * This gets called shortly before the </body> tag.
163 * @return String HTML to be put before </body>
165 function afterContent() {
166 return $this->doAfterContent();
169 /** overloaded by derived classes */
170 function doAfterContent() {
171 return '</div></div>';
174 function searchForm() {
175 global $wgRequest, $wgUseTwoButtonsSearchForm;
177 $search = $wgRequest->getText( 'search' );
179 $s = '<form id="searchform' . $this->searchboxes
. '" name="search" class="inline" method="post" action="'
180 . $this->getSkin()->escapeSearchLink() . "\">\n"
181 . '<input type="text" id="searchInput' . $this->searchboxes
. '" name="search" size="19" value="'
182 . htmlspecialchars( substr( $search, 0, 256 ) ) . "\" />\n"
183 . '<input type="submit" name="go" value="' . wfMsg( 'searcharticle' ) . '" />';
185 if ( $wgUseTwoButtonsSearchForm ) {
186 $s .= ' <input type="submit" name="fulltext" value="' . wfMsg( 'searchbutton' ) . "\" />\n";
188 $s .= ' <a href="' . $this->getSkin()->escapeSearchLink() . '" rel="search">' . wfMsg( 'powersearch-legend' ) . "</a>\n";
193 // Ensure unique id's for search boxes made after the first
194 $this->searchboxes
= $this->searchboxes
== '' ?
2 : $this->searchboxes +
1;
199 function pageStats() {
200 global $wgOut, $wgLang, $wgRequest, $wgUser;
201 global $wgDisableCounters, $wgMaxCredits, $wgShowCreditsIfMax, $wgPageShowWatchingUsers;
203 if ( !is_null( $wgRequest->getVal( 'oldid' ) ) ||
!is_null( $wgRequest->getVal( 'diff' ) ) ) {
207 if ( !$wgOut->isArticle() ||
!$this->getSkin()->getTitle()->exists() ) {
211 $article = new Article( $this->getSkin()->getTitle(), 0 );
215 if ( !$wgDisableCounters ) {
216 $count = $wgLang->formatNum( $article->getCount() );
219 $s = wfMsgExt( 'viewcount', array( 'parseinline' ), $count );
223 if ( $wgMaxCredits != 0 ) {
224 $s .= ' ' . Action
::factory( 'credits', $article )->getCredits( $wgMaxCredits, $wgShowCreditsIfMax );
226 $s .= $this->data
['lastmod'];
229 if ( $wgPageShowWatchingUsers && $wgUser->getOption( 'shownumberswatching' ) ) {
230 $dbr = wfGetDB( DB_SLAVE
);
233 array( 'COUNT(*) AS n' ),
235 'wl_title' => $dbr->strencode( $this->getSkin()->getTitle()->getDBkey() ),
236 'wl_namespace' => $this->getSkin()->getTitle()->getNamespace()
240 $x = $dbr->fetchObject( $res );
242 $s .= ' ' . wfMsgExt( 'number_of_watching_users_pageview',
243 array( 'parseinline' ), $wgLang->formatNum( $x->n
)
247 return $s . ' ' . $this->getSkin()->getCopyright();
250 function topLinks() {
254 $this->getSkin()->mainPageLink(),
255 Linker
::specialLink( 'Recentchanges' )
258 if ( $wgOut->isArticleRelated() ) {
259 $s[] = $this->editThisPage();
260 $s[] = $this->historyLink();
263 # Many people don't like this dropdown box
264 # $s[] = $this->specialPagesList();
266 if ( $this->variantLinks() ) {
267 $s[] = $this->variantLinks();
270 if ( $this->extensionTabLinks() ) {
271 $s[] = $this->extensionTabLinks();
274 // @todo FIXME: Is using Language::pipeList impossible here? Do not quite understand the use of the newline
275 return implode( $s, wfMsgExt( 'pipe-separator', 'escapenoentities' ) . "\n" );
279 * Language/charset variant links for classic-style skins
282 function variantLinks() {
285 /* show links to different language variants */
286 global $wgDisableLangConversion, $wgLang, $wgContLang;
288 $variants = $wgContLang->getVariants();
290 if ( !$wgDisableLangConversion && sizeof( $variants ) > 1 ) {
291 foreach ( $variants as $code ) {
292 $varname = $wgContLang->getVariantname( $code );
294 if ( $varname == 'disable' ) {
297 $s = $wgLang->pipeList( array(
299 '<a href="' . $this->getSkin()->getTitle()->escapeLocalURL( 'variant=' . $code ) . '">' . htmlspecialchars( $varname ) . '</a>'
308 * Compatibility for extensions adding functionality through tabs.
309 * Eventually these old skins should be replaced with SkinTemplate-based
312 * @todo Exterminate! ...that, and replace it with normal SkinTemplate stuff
314 function extensionTabLinks() {
318 wfRunHooks( 'SkinTemplateTabs', array( $this->getSkin(), &$tabs ) );
319 foreach ( $tabs as $tab ) {
320 $s[] = Xml
::element( 'a',
321 array( 'href' => $tab['href'] ),
328 $out = wfMsgExt( 'pipe-separator' , 'escapenoentities' );
329 $out .= $wgLang->pipeList( $s );
335 function bottomLinks() {
336 global $wgOut, $wgUser, $wgUseTrackbacks;
337 $sep = wfMsgExt( 'pipe-separator', 'escapenoentities' ) . "\n";
340 if ( $wgOut->isArticleRelated() ) {
341 $element[] = '<strong>' . $this->editThisPage() . '</strong>';
343 if ( $wgUser->isLoggedIn() ) {
344 $element[] = $this->watchThisPage();
347 $element[] = $this->talkLink();
348 $element[] = $this->historyLink();
349 $element[] = $this->whatLinksHere();
350 $element[] = $this->watchPageLinksLink();
352 if ( $wgUseTrackbacks ) {
353 $element[] = $this->trackbackLink();
357 $this->getSkin()->getTitle()->getNamespace() == NS_USER ||
358 $this->getSkin()->getTitle()->getNamespace() == NS_USER_TALK
360 $id = User
::idFromName( $this->getSkin()->getTitle()->getText() );
361 $ip = User
::isIP( $this->getSkin()->getTitle()->getText() );
363 # Both anons and non-anons have contributions list
365 $element[] = $this->userContribsLink();
368 if ( $this->getSkin()->showEmailUser( $id ) ) {
369 $element[] = $this->emailUserLink();
373 $s = implode( $element, $sep );
375 if ( $this->getSkin()->getTitle()->getArticleId() ) {
378 // Delete/protect/move links for privileged users
379 if ( $wgUser->isAllowed( 'delete' ) ) {
380 $s .= $this->deleteThisPage();
383 if ( $wgUser->isAllowed( 'protect' ) ) {
384 $s .= $sep . $this->protectThisPage();
387 if ( $wgUser->isAllowed( 'move' ) ) {
388 $s .= $sep . $this->moveThisPage();
392 $s .= "<br />\n" . $this->otherLanguages();
398 function otherLanguages() {
399 global $wgOut, $wgContLang, $wgHideInterlanguageLinks;
401 if ( $wgHideInterlanguageLinks ) {
405 $a = $wgOut->getLanguageLinks();
407 if ( 0 == count( $a ) ) {
411 $s = wfMsg( 'otherlanguages' ) . wfMsg( 'colon-separator' );
414 if ( $wgContLang->isRTL() ) {
415 $s .= '<span dir="LTR">';
418 foreach ( $a as $l ) {
420 $s .= wfMsgExt( 'pipe-separator', 'escapenoentities' );
425 $nt = Title
::newFromText( $l );
426 $text = $wgContLang->getLanguageName( $nt->getInterwiki() );
428 $s .= Html
::element( 'a',
429 array( 'href' => $nt->getFullURL(), 'title' => $nt->getText(), 'class' => "external" ),
430 $text == '' ?
$l : $text );
433 if ( $wgContLang->isRTL() ) {
441 * Show a drop-down box of special pages
443 function specialPagesList() {
444 global $wgContLang, $wgServer, $wgRedirectScript;
446 $pages = SpecialPageFactory
::getUsablePages();
448 foreach ( $pages as $name => $page ) {
449 $pages[$name] = $page->getDescription();
453 $sp = wfMsg( 'specialpages' );
454 $spp = $wgContLang->specialPage( 'Specialpages' );
456 $s = '<form id="specialpages" method="get" ' .
457 'action="' . htmlspecialchars( "{$wgServer}{$wgRedirectScript}" ) . "\">\n";
458 $s .= "<select name=\"wpDropdown\">\n";
459 $s .= "<option value=\"{$spp}\">{$sp}</option>\n";
462 foreach ( $pages as $name => $desc ) {
463 $p = $wgContLang->specialPage( $name );
464 $s .= "<option value=\"{$p}\">{$desc}</option>\n";
468 $s .= "<input type='submit' value=\"{$go}\" name='redirect' />\n";
474 function pageTitleLinks() {
475 global $wgOut, $wgUser, $wgRequest, $wgLang;
477 $oldid = $wgRequest->getVal( 'oldid' );
478 $diff = $wgRequest->getVal( 'diff' );
479 $action = $wgRequest->getText( 'action' );
481 $s[] = $this->printableLink();
482 $disclaimer = $this->getSkin()->disclaimerLink(); # may be empty
488 $privacy = $this->getSkin()->privacyLink(); # may be empty too
494 if ( $wgOut->isArticleRelated() ) {
495 if ( $this->getSkin()->getTitle()->getNamespace() == NS_FILE
) {
496 $name = $this->getSkin()->getTitle()->getDBkey();
497 $image = wfFindFile( $this->getSkin()->getTitle() );
500 $link = htmlspecialchars( $image->getURL() );
501 $style = $this->getInternalLinkAttributes( $link, $name );
502 $s[] = "<a href=\"{$link}\"{$style}>{$name}</a>";
507 if ( 'history' == $action ||
isset( $diff ) ||
isset( $oldid ) ) {
508 $s[] .= Linker
::link(
509 $this->getSkin()->getTitle(),
510 wfMsg( 'currentrev' ),
513 array( 'known', 'noclasses' )
517 if ( $wgUser->getNewtalk() ) {
518 # do not show "You have new messages" text when we are viewing our
520 if ( !$this->getSkin()->getTitle()->equals( $wgUser->getTalkPage() ) ) {
522 $wgUser->getTalkPage(),
523 wfMsgHtml( 'newmessageslink' ),
525 array( 'redirect' => 'no' ),
526 array( 'known', 'noclasses' )
530 $wgUser->getTalkPage(),
531 wfMsgHtml( 'newmessagesdifflink' ),
533 array( 'diff' => 'cur' ),
534 array( 'known', 'noclasses' )
536 $s[] = '<strong>' . wfMsg( 'youhavenewmessages', $tl, $dl ) . '</strong>';
538 $wgOut->setSquidMaxage( 0 );
539 $wgOut->enableClientCache( false );
543 $undelete = $this->getSkin()->getUndeleteLink();
545 if ( !empty( $undelete ) ) {
549 return $wgLang->pipeList( $s );
553 * Gets the h1 element with the page title.
556 function pageTitle() {
558 $s = '<h1 class="pagetitle">' . $wgOut->getPageTitle() . '</h1>';
562 function pageSubtitle() {
565 $sub = $wgOut->getSubtitle();
568 global $wgExtraSubtitle;
569 $sub = wfMsgExt( 'tagline', 'parsemag' ) . $wgExtraSubtitle;
572 $subpages = $this->getSkin()->subPageSubtitle();
573 $sub .= !empty( $subpages ) ?
"</p><p class='subpages'>$subpages" : '';
574 $s = "<p class='subtitle'>{$sub}</p>\n";
579 function printableLink() {
580 global $wgOut, $wgRequest, $wgLang;
584 if ( !$wgOut->isPrintable() ) {
585 $printurl = htmlspecialchars( $this->getSkin()->getTitle()->getLocalUrl(
586 $wgRequest->appendQueryValue( 'printable', 'yes', true ) ) );
587 $s[] = "<a href=\"$printurl\" rel=\"alternate\">" . wfMsg( 'printableversion' ) . '</a>';
590 if ( $wgOut->isSyndicated() ) {
591 foreach ( $wgOut->getSyndicationLinks() as $format => $link ) {
592 $feedurl = htmlspecialchars( $link );
593 $s[] = "<a href=\"$feedurl\" rel=\"alternate\" type=\"application/{$format}+xml\""
594 . " class=\"feedlink\">" . wfMsgHtml( "feed-$format" ) . "</a>";
597 return $wgLang->pipeList( $s );
600 function getQuickbarCompensator( $rows = 1 ) {
601 return "<td width='152' rowspan='{$rows}'> </td>";
604 function editThisPage() {
607 if ( !$wgOut->isArticleRelated() ) {
608 $s = wfMsg( 'protectedpage' );
610 if ( $this->getSkin()->getTitle()->quickUserCan( 'edit' ) && $this->getSkin()->getTitle()->exists() ) {
611 $t = wfMsg( 'editthispage' );
612 } elseif ( $this->getSkin()->getTitle()->quickUserCan( 'create' ) && !$this->getSkin()->getTitle()->exists() ) {
613 $t = wfMsg( 'create-this-page' );
615 $t = wfMsg( 'viewsource' );
619 $this->getSkin()->getTitle(),
622 $this->getSkin()->editUrlOptions(),
623 array( 'known', 'noclasses' )
630 function deleteThisPage() {
631 global $wgUser, $wgRequest;
633 $diff = $wgRequest->getVal( 'diff' );
635 if ( $this->getSkin()->getTitle()->getArticleId() && ( !$diff ) && $wgUser->isAllowed( 'delete' ) ) {
636 $t = wfMsg( 'deletethispage' );
639 $this->getSkin()->getTitle(),
642 array( 'action' => 'delete' ),
643 array( 'known', 'noclasses' )
652 function protectThisPage() {
653 global $wgUser, $wgRequest;
655 $diff = $wgRequest->getVal( 'diff' );
657 if ( $this->getSkin()->getTitle()->getArticleId() && ( ! $diff ) && $wgUser->isAllowed( 'protect' ) ) {
658 if ( $this->getSkin()->getTitle()->isProtected() ) {
659 $text = wfMsg( 'unprotectthispage' );
660 $query = array( 'action' => 'unprotect' );
662 $text = wfMsg( 'protectthispage' );
663 $query = array( 'action' => 'protect' );
667 $this->getSkin()->getTitle(),
671 array( 'known', 'noclasses' )
680 function watchThisPage() {
681 global $wgOut, $wgUser;
682 ++
$this->mWatchLinkNum
;
685 $title = $this->getSkin()->getTitle();
687 if ( $wgOut->isArticleRelated() ) {
688 if ( $title->userIsWatching() ) {
689 $text = wfMsg( 'unwatchthispage' );
691 'action' => 'unwatch',
692 'token' => UnwatchAction
::getUnwatchToken( $title, $wgUser ),
694 $id = 'mw-unwatch-link' . $this->mWatchLinkNum
;
696 $text = wfMsg( 'watchthispage' );
699 'token' => WatchAction
::getWatchToken( $title, $wgUser ),
701 $id = 'mw-watch-link' . $this->mWatchLinkNum
;
707 array( 'id' => $id ),
709 array( 'known', 'noclasses' )
712 $s = wfMsg( 'notanarticle' );
718 function moveThisPage() {
719 if ( $this->getSkin()->getTitle()->quickUserCan( 'move' ) ) {
721 SpecialPage
::getTitleFor( 'Movepage' ),
722 wfMsg( 'movethispage' ),
724 array( 'target' => $this->getSkin()->getTitle()->getPrefixedDBkey() ),
725 array( 'known', 'noclasses' )
728 // no message if page is protected - would be redundant
733 function historyLink() {
735 $this->getSkin()->getTitle(),
736 wfMsgHtml( 'history' ),
737 array( 'rel' => 'archives' ),
738 array( 'action' => 'history' )
742 function whatLinksHere() {
744 SpecialPage
::getTitleFor( 'Whatlinkshere', $this->getSkin()->getTitle()->getPrefixedDBkey() ),
745 wfMsgHtml( 'whatlinkshere' ),
748 array( 'known', 'noclasses' )
752 function userContribsLink() {
754 SpecialPage
::getTitleFor( 'Contributions', $this->getSkin()->getTitle()->getDBkey() ),
755 wfMsgHtml( 'contributions' ),
758 array( 'known', 'noclasses' )
762 function emailUserLink() {
764 SpecialPage
::getTitleFor( 'Emailuser', $this->getSkin()->getTitle()->getDBkey() ),
765 wfMsg( 'emailuser' ),
768 array( 'known', 'noclasses' )
772 function watchPageLinksLink() {
775 if ( !$wgOut->isArticleRelated() ) {
776 return '(' . wfMsg( 'notanarticle' ) . ')';
779 SpecialPage
::getTitleFor( 'Recentchangeslinked', $this->getSkin()->getTitle()->getPrefixedDBkey() ),
780 wfMsg( 'recentchangeslinked-toolbox' ),
783 array( 'known', 'noclasses' )
788 function trackbackLink() {
789 return '<a href="' . $this->getSkin()->getTitle()->trackbackURL() . '">'
790 . wfMsg( 'trackbacklink' ) . '</a>';
793 function talkLink() {
794 if ( NS_SPECIAL
== $this->getSkin()->getTitle()->getNamespace() ) {
795 # No discussion links for special pages
799 $linkOptions = array();
801 if ( $this->getSkin()->getTitle()->isTalkPage() ) {
802 $link = $this->getSkin()->getTitle()->getSubjectPage();
803 switch( $link->getNamespace() ) {
805 $text = wfMsg( 'articlepage' );
808 $text = wfMsg( 'userpage' );
811 $text = wfMsg( 'projectpage' );
814 $text = wfMsg( 'imagepage' );
815 # Make link known if image exists, even if the desc. page doesn't.
816 if ( wfFindFile( $link ) )
817 $linkOptions[] = 'known';
820 $text = wfMsg( 'mediawikipage' );
823 $text = wfMsg( 'templatepage' );
826 $text = wfMsg( 'viewhelppage' );
829 $text = wfMsg( 'categorypage' );
832 $text = wfMsg( 'articlepage' );
835 $link = $this->getSkin()->getTitle()->getTalkPage();
836 $text = wfMsg( 'talkpage' );
839 $s = Linker
::link( $link, $text, array(), array(), $linkOptions );
844 function commentLink() {
847 if ( $this->getSkin()->getTitle()->getNamespace() == NS_SPECIAL
) {
851 # __NEWSECTIONLINK___ changes behaviour here
852 # If it is present, the link points to this page, otherwise
853 # it points to the talk page
854 if ( $this->getSkin()->getTitle()->isTalkPage() ) {
855 $title = $this->getSkin()->getTitle();
856 } elseif ( $wgOut->showNewSectionLink() ) {
857 $title = $this->getSkin()->getTitle();
859 $title = $this->getSkin()->getTitle()->getTalkPage();
864 wfMsg( 'postcomment' ),
870 array( 'known', 'noclasses' )
874 function getUploadLink() {
875 global $wgUploadNavigationUrl;
877 if ( $wgUploadNavigationUrl ) {
878 # Using an empty class attribute to avoid automatic setting of "external" class
879 return Linker
::makeExternalLink( $wgUploadNavigationUrl, wfMsgHtml( 'upload' ), false, null, array( 'class' => '' ) );
882 SpecialPage
::getTitleFor( 'Upload' ),
883 wfMsgHtml( 'upload' ),
886 array( 'known', 'noclasses' )
891 function nameAndLogin() {
892 global $wgUser, $wgLang, $wgContLang;
894 $logoutPage = $wgContLang->specialPage( 'Userlogout' );
898 if ( $wgUser->isAnon() ) {
899 if ( $this->getSkin()->showIPinHeader() ) {
902 $talkLink = Linker
::link( $wgUser->getTalkPage(),
903 $wgLang->getNsText( NS_TALK
) );
905 $ret .= "$name ($talkLink)";
907 $ret .= wfMsg( 'notloggedin' );
910 $returnTo = $this->getSkin()->getTitle()->getPrefixedDBkey();
913 if ( $logoutPage != $returnTo ) {
914 $query['returnto'] = $returnTo;
917 $loginlink = $wgUser->isAllowed( 'createaccount' )
918 ?
'nav-login-createaccount'
920 $ret .= "\n<br />" . Linker
::link(
921 SpecialPage
::getTitleFor( 'Userlogin' ),
922 wfMsg( $loginlink ), array(), $query
925 $returnTo = $this->getSkin()->getTitle()->getPrefixedDBkey();
926 $talkLink = Linker
::link( $wgUser->getTalkPage(),
927 $wgLang->getNsText( NS_TALK
) );
929 $ret .= Linker
::link( $wgUser->getUserPage(),
930 htmlspecialchars( $wgUser->getName() ) );
931 $ret .= " ($talkLink)<br />";
932 $ret .= $wgLang->pipeList( array(
934 SpecialPage
::getTitleFor( 'Userlogout' ), wfMsg( 'logout' ),
935 array(), array( 'returnto' => $returnTo )
937 Linker
::specialLink( 'Preferences' ),
941 $ret = $wgLang->pipeList( array(
944 Title
::newFromText( wfMsgForContent( 'helppage' ) ),