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 );
62 class LegacyTemplate
extends BaseTemplate
{
64 // How many search boxes have we made? Avoid duplicate id's.
65 protected $searchboxes = '';
68 $this->html( 'headelement' );
69 echo $this->beforeContent();
70 $this->html( 'bodytext' );
72 echo $this->afterContent();
73 $this->html( 'dataAfterContent' );
75 echo "\n</body></html>";
79 * This will be called immediately after the <body> tag. Split into
80 * two functions to make it easier to subclass.
82 function beforeContent() {
83 return $this->doBeforeContent();
86 function doBeforeContent() {
88 wfProfileIn( __METHOD__
);
91 $qb = $this->getSkin()->qbSetting();
93 $langlinks = $this->otherLanguages();
100 $borderhack = 'class="top"';
103 $s .= "\n<div id='content'>\n<div id='topbar'>\n" .
104 "<table border='0' cellspacing='0' width='98%'>\n<tr>\n";
106 $shove = ( $qb != 0 );
107 $left = ( $qb == 1 ||
$qb == 3 );
110 $s .= "<td class='top' align='left' valign='top' rowspan='{$rows}'>\n" .
111 $this->getSkin()->logoText() . '</td>';
113 $s .= $this->getQuickbarCompensator( $rows );
116 $l = $wgContLang->alignStart();
117 $s .= "<td {$borderhack} align='$l' valign='top'>\n";
119 $s .= $this->topLinks();
120 $s .= '<p class="subtitle">' . $this->pageTitleLinks() . "</p>\n";
122 $r = $wgContLang->alignEnd();
123 $s .= "</td>\n<td {$borderhack} valign='top' align='$r' nowrap='nowrap'>";
124 $s .= $this->nameAndLogin();
125 $s .= "\n<br />" . $this->searchForm() . '</td>';
128 $s .= "</tr>\n<tr>\n<td class='top' colspan=\"2\">$langlinks</td>\n";
131 if ( $shove && !$left ) { # Right
132 $s .= $this->getQuickbarCompensator( $rows );
135 $s .= "</tr>\n</table>\n</div>\n";
136 $s .= "\n<div id='article'>\n";
138 $notice = $this->getSkin()->getSiteNotice();
141 $s .= "\n<div id='siteNotice'>$notice</div>\n";
143 $s .= $this->pageTitle();
144 $s .= $this->pageSubtitle();
145 $s .= $this->getSkin()->getCategories();
147 wfProfileOut( __METHOD__
);
152 * This gets called shortly before the </body> tag.
153 * @return String HTML to be put before </body>
155 function afterContent() {
156 return $this->doAfterContent();
159 /** overloaded by derived classes */
160 function doAfterContent() {
161 return '</div></div>';
164 function searchForm() {
165 global $wgRequest, $wgUseTwoButtonsSearchForm;
167 $search = $wgRequest->getText( 'search' );
169 $s = '<form id="searchform' . $this->searchboxes
. '" name="search" class="inline" method="post" action="'
170 . $this->getSkin()->escapeSearchLink() . "\">\n"
171 . '<input type="text" id="searchInput' . $this->searchboxes
. '" name="search" size="19" value="'
172 . htmlspecialchars( substr( $search, 0, 256 ) ) . "\" />\n"
173 . '<input type="submit" name="go" value="' . wfMsg( 'searcharticle' ) . '" />';
175 if ( $wgUseTwoButtonsSearchForm ) {
176 $s .= ' <input type="submit" name="fulltext" value="' . wfMsg( 'searchbutton' ) . "\" />\n";
178 $s .= ' <a href="' . $this->getSkin()->escapeSearchLink() . '" rel="search">' . wfMsg( 'powersearch-legend' ) . "</a>\n";
183 // Ensure unique id's for search boxes made after the first
184 $this->searchboxes
= $this->searchboxes
== '' ?
2 : $this->searchboxes +
1;
189 function pageStats() {
190 global $wgOut, $wgLang, $wgRequest, $wgUser;
191 global $wgDisableCounters, $wgMaxCredits, $wgShowCreditsIfMax, $wgPageShowWatchingUsers;
193 if ( !is_null( $wgRequest->getVal( 'oldid' ) ) ||
!is_null( $wgRequest->getVal( 'diff' ) ) ) {
197 if ( !$wgOut->isArticle() ||
!$this->getSkin()->getTitle()->exists() ) {
201 $article = new Article( $this->getSkin()->getTitle(), 0 );
205 if ( !$wgDisableCounters ) {
206 $count = $wgLang->formatNum( $article->getCount() );
209 $s = wfMsgExt( 'viewcount', array( 'parseinline' ), $count );
213 if ( $wgMaxCredits != 0 ) {
214 $s .= ' ' . Action
::factory( 'credits', $article )->getCredits( $wgMaxCredits, $wgShowCreditsIfMax );
216 $s .= $this->data
['lastmod'];
219 if ( $wgPageShowWatchingUsers && $wgUser->getOption( 'shownumberswatching' ) ) {
220 $dbr = wfGetDB( DB_SLAVE
);
223 array( 'COUNT(*) AS n' ),
225 'wl_title' => $dbr->strencode( $this->getSkin()->getTitle()->getDBkey() ),
226 'wl_namespace' => $this->getSkin()->getTitle()->getNamespace()
230 $x = $dbr->fetchObject( $res );
232 $s .= ' ' . wfMsgExt( 'number_of_watching_users_pageview',
233 array( 'parseinline' ), $wgLang->formatNum( $x->n
)
237 return $s . ' ' . $this->getSkin()->getCopyright();
240 function topLinks() {
244 $this->getSkin()->mainPageLink(),
245 $this->getSkin()->specialLink( 'Recentchanges' )
248 if ( $wgOut->isArticleRelated() ) {
249 $s[] = $this->editThisPage();
250 $s[] = $this->historyLink();
253 # Many people don't like this dropdown box
254 # $s[] = $this->specialPagesList();
256 if ( $this->variantLinks() ) {
257 $s[] = $this->variantLinks();
260 if ( $this->extensionTabLinks() ) {
261 $s[] = $this->extensionTabLinks();
264 // @todo FIXME: Is using Language::pipeList impossible here? Do not quite understand the use of the newline
265 return implode( $s, wfMsgExt( 'pipe-separator', 'escapenoentities' ) . "\n" );
269 * Language/charset variant links for classic-style skins
272 function variantLinks() {
275 /* show links to different language variants */
276 global $wgDisableLangConversion, $wgLang, $wgContLang;
278 $variants = $wgContLang->getVariants();
280 if ( !$wgDisableLangConversion && sizeof( $variants ) > 1 ) {
281 foreach ( $variants as $code ) {
282 $varname = $wgContLang->getVariantname( $code );
284 if ( $varname == 'disable' ) {
287 $s = $wgLang->pipeList( array(
289 '<a href="' . $this->getSkin()->getTitle()->escapeLocalURL( 'variant=' . $code ) . '">' . htmlspecialchars( $varname ) . '</a>'
298 * Compatibility for extensions adding functionality through tabs.
299 * Eventually these old skins should be replaced with SkinTemplate-based
302 * @todo Exterminate! ...that, and replace it with normal SkinTemplate stuff
304 function extensionTabLinks() {
308 wfRunHooks( 'SkinTemplateTabs', array( $this->getSkin(), &$tabs ) );
309 foreach ( $tabs as $tab ) {
310 $s[] = Xml
::element( 'a',
311 array( 'href' => $tab['href'] ),
318 $out = wfMsgExt( 'pipe-separator' , 'escapenoentities' );
319 $out .= $wgLang->pipeList( $s );
325 function bottomLinks() {
326 global $wgOut, $wgUser, $wgUseTrackbacks;
327 $sep = wfMsgExt( 'pipe-separator', 'escapenoentities' ) . "\n";
330 if ( $wgOut->isArticleRelated() ) {
331 $element[] = '<strong>' . $this->editThisPage() . '</strong>';
333 if ( $wgUser->isLoggedIn() ) {
334 $element[] = $this->watchThisPage();
337 $element[] = $this->talkLink();
338 $element[] = $this->historyLink();
339 $element[] = $this->whatLinksHere();
340 $element[] = $this->watchPageLinksLink();
342 if ( $wgUseTrackbacks ) {
343 $element[] = $this->trackbackLink();
347 $this->getSkin()->getTitle()->getNamespace() == NS_USER ||
348 $this->getSkin()->getTitle()->getNamespace() == NS_USER_TALK
350 $id = User
::idFromName( $this->getSkin()->getTitle()->getText() );
351 $ip = User
::isIP( $this->getSkin()->getTitle()->getText() );
353 # Both anons and non-anons have contributions list
355 $element[] = $this->userContribsLink();
358 if ( $this->getSkin()->showEmailUser( $id ) ) {
359 $element[] = $this->emailUserLink();
363 $s = implode( $element, $sep );
365 if ( $this->getSkin()->getTitle()->getArticleId() ) {
368 // Delete/protect/move links for privileged users
369 if ( $wgUser->isAllowed( 'delete' ) ) {
370 $s .= $this->deleteThisPage();
373 if ( $wgUser->isAllowed( 'protect' ) ) {
374 $s .= $sep . $this->protectThisPage();
377 if ( $wgUser->isAllowed( 'move' ) ) {
378 $s .= $sep . $this->moveThisPage();
382 $s .= "<br />\n" . $this->otherLanguages();
388 function otherLanguages() {
389 global $wgOut, $wgContLang, $wgHideInterlanguageLinks;
391 if ( $wgHideInterlanguageLinks ) {
395 $a = $wgOut->getLanguageLinks();
397 if ( 0 == count( $a ) ) {
401 $s = wfMsg( 'otherlanguages' ) . wfMsg( 'colon-separator' );
404 if ( $wgContLang->isRTL() ) {
405 $s .= '<span dir="LTR">';
408 foreach ( $a as $l ) {
410 $s .= wfMsgExt( 'pipe-separator', 'escapenoentities' );
415 $nt = Title
::newFromText( $l );
416 $text = $wgContLang->getLanguageName( $nt->getInterwiki() );
418 $s .= Html
::element( 'a',
419 array( 'href' => $nt->getFullURL(), 'title' => $nt->getText(), 'class' => "external" ),
420 $text == '' ?
$l : $text );
423 if ( $wgContLang->isRTL() ) {
431 * Show a drop-down box of special pages
433 function specialPagesList() {
434 global $wgContLang, $wgServer, $wgRedirectScript;
436 $pages = SpecialPageFactory
::getUsablePages();
438 foreach ( $pages as $name => $page ) {
439 $pages[$name] = $page->getDescription();
443 $sp = wfMsg( 'specialpages' );
444 $spp = $wgContLang->specialPage( 'Specialpages' );
446 $s = '<form id="specialpages" method="get" ' .
447 'action="' . htmlspecialchars( "{$wgServer}{$wgRedirectScript}" ) . "\">\n";
448 $s .= "<select name=\"wpDropdown\">\n";
449 $s .= "<option value=\"{$spp}\">{$sp}</option>\n";
452 foreach ( $pages as $name => $desc ) {
453 $p = $wgContLang->specialPage( $name );
454 $s .= "<option value=\"{$p}\">{$desc}</option>\n";
458 $s .= "<input type='submit' value=\"{$go}\" name='redirect' />\n";
464 function pageTitleLinks() {
465 global $wgOut, $wgUser, $wgRequest, $wgLang;
467 $oldid = $wgRequest->getVal( 'oldid' );
468 $diff = $wgRequest->getVal( 'diff' );
469 $action = $wgRequest->getText( 'action' );
471 $s[] = $this->printableLink();
472 $disclaimer = $this->getSkin()->disclaimerLink(); # may be empty
478 $privacy = $this->getSkin()->privacyLink(); # may be empty too
484 if ( $wgOut->isArticleRelated() ) {
485 if ( $this->getSkin()->getTitle()->getNamespace() == NS_FILE
) {
486 $name = $this->getSkin()->getTitle()->getDBkey();
487 $image = wfFindFile( $this->getSkin()->getTitle() );
490 $link = htmlspecialchars( $image->getURL() );
491 $style = $this->getInternalLinkAttributes( $link, $name );
492 $s[] = "<a href=\"{$link}\"{$style}>{$name}</a>";
497 if ( 'history' == $action ||
isset( $diff ) ||
isset( $oldid ) ) {
498 $s[] .= $this->getSkin()->link(
499 $this->getSkin()->getTitle(),
500 wfMsg( 'currentrev' ),
503 array( 'known', 'noclasses' )
507 if ( $wgUser->getNewtalk() ) {
508 # do not show "You have new messages" text when we are viewing our
510 if ( !$this->getSkin()->getTitle()->equals( $wgUser->getTalkPage() ) ) {
511 $tl = $this->getSkin()->link(
512 $wgUser->getTalkPage(),
513 wfMsgHtml( 'newmessageslink' ),
515 array( 'redirect' => 'no' ),
516 array( 'known', 'noclasses' )
519 $dl = $this->getSkin()->link(
520 $wgUser->getTalkPage(),
521 wfMsgHtml( 'newmessagesdifflink' ),
523 array( 'diff' => 'cur' ),
524 array( 'known', 'noclasses' )
526 $s[] = '<strong>' . wfMsg( 'youhavenewmessages', $tl, $dl ) . '</strong>';
528 $wgOut->setSquidMaxage( 0 );
529 $wgOut->enableClientCache( false );
533 $undelete = $this->getSkin()->getUndeleteLink();
535 if ( !empty( $undelete ) ) {
539 return $wgLang->pipeList( $s );
543 * Gets the h1 element with the page title.
546 function pageTitle() {
548 $s = '<h1 class="pagetitle">' . $wgOut->getPageTitle() . '</h1>';
552 function pageSubtitle() {
555 $sub = $wgOut->getSubtitle();
558 global $wgExtraSubtitle;
559 $sub = wfMsgExt( 'tagline', 'parsemag' ) . $wgExtraSubtitle;
562 $subpages = $this->getSkin()->subPageSubtitle();
563 $sub .= !empty( $subpages ) ?
"</p><p class='subpages'>$subpages" : '';
564 $s = "<p class='subtitle'>{$sub}</p>\n";
569 function printableLink() {
570 global $wgOut, $wgRequest, $wgLang;
574 if ( !$wgOut->isPrintable() ) {
575 $printurl = htmlspecialchars( $this->getSkin()->getTitle()->getLocalUrl(
576 $wgRequest->appendQueryValue( 'printable', 'yes', true ) ) );
577 $s[] = "<a href=\"$printurl\" rel=\"alternate\">" . wfMsg( 'printableversion' ) . '</a>';
580 if ( $wgOut->isSyndicated() ) {
581 foreach ( $wgOut->getSyndicationLinks() as $format => $link ) {
582 $feedurl = htmlspecialchars( $link );
583 $s[] = "<a href=\"$feedurl\" rel=\"alternate\" type=\"application/{$format}+xml\""
584 . " class=\"feedlink\">" . wfMsgHtml( "feed-$format" ) . "</a>";
587 return $wgLang->pipeList( $s );
590 function getQuickbarCompensator( $rows = 1 ) {
591 return "<td width='152' rowspan='{$rows}'> </td>";
594 function editThisPage() {
597 if ( !$wgOut->isArticleRelated() ) {
598 $s = wfMsg( 'protectedpage' );
600 if ( $this->getSkin()->getTitle()->quickUserCan( 'edit' ) && $this->getSkin()->getTitle()->exists() ) {
601 $t = wfMsg( 'editthispage' );
602 } elseif ( $this->getSkin()->getTitle()->quickUserCan( 'create' ) && !$this->getSkin()->getTitle()->exists() ) {
603 $t = wfMsg( 'create-this-page' );
605 $t = wfMsg( 'viewsource' );
608 $s = $this->getSkin()->link(
609 $this->getSkin()->getTitle(),
612 $this->getSkin()->editUrlOptions(),
613 array( 'known', 'noclasses' )
620 function deleteThisPage() {
621 global $wgUser, $wgRequest;
623 $diff = $wgRequest->getVal( 'diff' );
625 if ( $this->getSkin()->getTitle()->getArticleId() && ( !$diff ) && $wgUser->isAllowed( 'delete' ) ) {
626 $t = wfMsg( 'deletethispage' );
628 $s = $this->getSkin()->link(
629 $this->getSkin()->getTitle(),
632 array( 'action' => 'delete' ),
633 array( 'known', 'noclasses' )
642 function protectThisPage() {
643 global $wgUser, $wgRequest;
645 $diff = $wgRequest->getVal( 'diff' );
647 if ( $this->getSkin()->getTitle()->getArticleId() && ( ! $diff ) && $wgUser->isAllowed( 'protect' ) ) {
648 if ( $this->getSkin()->getTitle()->isProtected() ) {
649 $text = wfMsg( 'unprotectthispage' );
650 $query = array( 'action' => 'unprotect' );
652 $text = wfMsg( 'protectthispage' );
653 $query = array( 'action' => 'protect' );
656 $s = $this->getSkin()->link(
657 $this->getSkin()->getTitle(),
661 array( 'known', 'noclasses' )
670 function watchThisPage() {
672 ++
$this->mWatchLinkNum
;
674 if ( $wgOut->isArticleRelated() ) {
675 if ( $this->getSkin()->getTitle()->userIsWatching() ) {
676 $text = wfMsg( 'unwatchthispage' );
677 $query = array( 'action' => 'unwatch' );
678 $id = 'mw-unwatch-link' . $this->mWatchLinkNum
;
680 $text = wfMsg( 'watchthispage' );
681 $query = array( 'action' => 'watch' );
682 $id = 'mw-watch-link' . $this->mWatchLinkNum
;
685 $s = $this->getSkin()->link(
686 $this->getSkin()->getTitle(),
688 array( 'id' => $id ),
690 array( 'known', 'noclasses' )
693 $s = wfMsg( 'notanarticle' );
699 function moveThisPage() {
700 if ( $this->getSkin()->getTitle()->quickUserCan( 'move' ) ) {
701 return $this->getSkin()->link(
702 SpecialPage
::getTitleFor( 'Movepage' ),
703 wfMsg( 'movethispage' ),
705 array( 'target' => $this->getSkin()->getTitle()->getPrefixedDBkey() ),
706 array( 'known', 'noclasses' )
709 // no message if page is protected - would be redundant
714 function historyLink() {
715 return $this->getSkin()->link(
716 $this->getSkin()->getTitle(),
717 wfMsgHtml( 'history' ),
718 array( 'rel' => 'archives' ),
719 array( 'action' => 'history' )
723 function whatLinksHere() {
724 return $this->getSkin()->link(
725 SpecialPage
::getTitleFor( 'Whatlinkshere', $this->getSkin()->getTitle()->getPrefixedDBkey() ),
726 wfMsgHtml( 'whatlinkshere' ),
729 array( 'known', 'noclasses' )
733 function userContribsLink() {
734 return $this->getSkin()->link(
735 SpecialPage
::getTitleFor( 'Contributions', $this->getSkin()->getTitle()->getDBkey() ),
736 wfMsgHtml( 'contributions' ),
739 array( 'known', 'noclasses' )
743 function emailUserLink() {
744 return $this->getSkin()->link(
745 SpecialPage
::getTitleFor( 'Emailuser', $this->getSkin()->getTitle()->getDBkey() ),
746 wfMsg( 'emailuser' ),
749 array( 'known', 'noclasses' )
753 function watchPageLinksLink() {
756 if ( !$wgOut->isArticleRelated() ) {
757 return '(' . wfMsg( 'notanarticle' ) . ')';
759 return $this->getSkin()->link(
760 SpecialPage
::getTitleFor( 'Recentchangeslinked', $this->getSkin()->getTitle()->getPrefixedDBkey() ),
761 wfMsg( 'recentchangeslinked-toolbox' ),
764 array( 'known', 'noclasses' )
769 function trackbackLink() {
770 return '<a href="' . $this->getSkin()->getTitle()->trackbackURL() . '">'
771 . wfMsg( 'trackbacklink' ) . '</a>';
774 function talkLink() {
775 if ( NS_SPECIAL
== $this->getSkin()->getTitle()->getNamespace() ) {
776 # No discussion links for special pages
780 $linkOptions = array();
782 if ( $this->getSkin()->getTitle()->isTalkPage() ) {
783 $link = $this->getSkin()->getTitle()->getSubjectPage();
784 switch( $link->getNamespace() ) {
786 $text = wfMsg( 'articlepage' );
789 $text = wfMsg( 'userpage' );
792 $text = wfMsg( 'projectpage' );
795 $text = wfMsg( 'imagepage' );
796 # Make link known if image exists, even if the desc. page doesn't.
797 if ( wfFindFile( $link ) )
798 $linkOptions[] = 'known';
801 $text = wfMsg( 'mediawikipage' );
804 $text = wfMsg( 'templatepage' );
807 $text = wfMsg( 'viewhelppage' );
810 $text = wfMsg( 'categorypage' );
813 $text = wfMsg( 'articlepage' );
816 $link = $this->getSkin()->getTitle()->getTalkPage();
817 $text = wfMsg( 'talkpage' );
820 $s = $this->getSkin()->link( $link, $text, array(), array(), $linkOptions );
825 function commentLink() {
828 if ( $this->getSkin()->getTitle()->getNamespace() == NS_SPECIAL
) {
832 # __NEWSECTIONLINK___ changes behaviour here
833 # If it is present, the link points to this page, otherwise
834 # it points to the talk page
835 if ( $this->getSkin()->getTitle()->isTalkPage() ) {
836 $title = $this->getSkin()->getTitle();
837 } elseif ( $wgOut->showNewSectionLink() ) {
838 $title = $this->getSkin()->getTitle();
840 $title = $this->getSkin()->getTitle()->getTalkPage();
843 return $this->getSkin()->link(
845 wfMsg( 'postcomment' ),
851 array( 'known', 'noclasses' )
855 function getUploadLink() {
856 global $wgUploadNavigationUrl;
858 if ( $wgUploadNavigationUrl ) {
859 # Using an empty class attribute to avoid automatic setting of "external" class
860 return $this->makeExternalLink( $wgUploadNavigationUrl, wfMsgHtml( 'upload' ), false, null, array( 'class' => '' ) );
862 return $this->getSkin()->link(
863 SpecialPage
::getTitleFor( 'Upload' ),
864 wfMsgHtml( 'upload' ),
867 array( 'known', 'noclasses' )
872 function nameAndLogin() {
873 global $wgUser, $wgLang, $wgContLang;
875 $logoutPage = $wgContLang->specialPage( 'Userlogout' );
879 if ( $wgUser->isAnon() ) {
880 if ( $this->getSkin()->showIPinHeader() ) {
883 $talkLink = $this->getSkin()->link( $wgUser->getTalkPage(),
884 $wgLang->getNsText( NS_TALK
) );
886 $ret .= "$name ($talkLink)";
888 $ret .= wfMsg( 'notloggedin' );
891 $returnTo = $this->getSkin()->getTitle()->getPrefixedDBkey();
894 if ( $logoutPage != $returnTo ) {
895 $query['returnto'] = $returnTo;
898 $loginlink = $wgUser->isAllowed( 'createaccount' )
899 ?
'nav-login-createaccount'
901 $ret .= "\n<br />" . $this->getSkin()->link(
902 SpecialPage
::getTitleFor( 'Userlogin' ),
903 wfMsg( $loginlink ), array(), $query
906 $returnTo = $this->getSkin()->getTitle()->getPrefixedDBkey();
907 $talkLink = $this->getSkin()->link( $wgUser->getTalkPage(),
908 $wgLang->getNsText( NS_TALK
) );
910 $ret .= $this->getSkin()->link( $wgUser->getUserPage(),
911 htmlspecialchars( $wgUser->getName() ) );
912 $ret .= " ($talkLink)<br />";
913 $ret .= $wgLang->pipeList( array(
914 $this->getSkin()->link(
915 SpecialPage
::getTitleFor( 'Userlogout' ), wfMsg( 'logout' ),
916 array(), array( 'returnto' => $returnTo )
918 $this->getSkin()->specialLink( 'Preferences' ),
922 $ret = $wgLang->pipeList( array(
924 $this->getSkin()->link(
925 Title
::newFromText( wfMsgForContent( 'helppage' ) ),