3 * @defgroup Skins Skins
6 if ( !defined( 'MEDIAWIKI' ) ) {
10 class SkinLegacy
extends SkinTemplate
{
11 var $useHeadElement = true;
14 * Add skin specific stylesheets
15 * @param $out OutputPage
17 function setupSkinUserCss( OutputPage
$out ) {
18 $out->addModuleStyles( 'mediawiki.legacy.shared' );
19 $out->addModuleStyles( 'mediawiki.legacy.oldshared' );
22 public function commonPrintStylesheet() {
27 * This was for the old skins and for users with 640x480 screen.
28 * Please note old skins are still used and might prove useful for
29 * users having old computers or visually impaired.
31 var $mSuppressQuickbar = false;
34 * Suppress the quickbar from the output, only for skin supporting
37 public function suppressQuickbar() {
38 $this->mSuppressQuickbar
= true;
42 * Return whether the quickbar should be suppressed from the output
46 public function isQuickbarSuppressed() {
47 return $this->mSuppressQuickbar
;
50 function qbSetting() {
52 if ( $this->isQuickbarSuppressed() ) {
55 $q = $wgUser->getOption( 'quickbar', 0 );
61 class LegacyTemplate
extends BaseTemplate
{
63 // How many search boxes have we made? Avoid duplicate id's.
64 protected $searchboxes = '';
67 $this->html( 'headelement' );
68 echo $this->beforeContent();
69 $this->html( 'bodytext' );
71 echo $this->afterContent();
72 $this->html( 'dataAfterContent' );
74 echo "\n</body></html>";
78 * This will be called immediately after the <body> tag. Split into
79 * two functions to make it easier to subclass.
81 function beforeContent() {
82 return $this->doBeforeContent();
85 function doBeforeContent() {
87 wfProfileIn( __METHOD__
);
90 $qb = $this->getSkin()->qbSetting();
92 $langlinks = $this->otherLanguages();
99 $borderhack = 'class="top"';
102 $s .= "\n<div id='content'>\n<div id='topbar'>\n" .
103 "<table border='0' cellspacing='0' width='98%'>\n<tr>\n";
105 $shove = ( $qb != 0 );
106 $left = ( $qb == 1 ||
$qb == 3 );
109 $s .= "<td class='top' align='left' valign='top' rowspan='{$rows}'>\n" .
110 $this->getSkin()->logoText() . '</td>';
112 $s .= $this->getQuickbarCompensator( $rows );
115 $l = $wgContLang->alignStart();
116 $s .= "<td {$borderhack} align='$l' valign='top'>\n";
118 $s .= $this->topLinks();
119 $s .= '<p class="subtitle">' . $this->pageTitleLinks() . "</p>\n";
121 $r = $wgContLang->alignEnd();
122 $s .= "</td>\n<td {$borderhack} valign='top' align='$r' nowrap='nowrap'>";
123 $s .= $this->nameAndLogin();
124 $s .= "\n<br />" . $this->searchForm() . '</td>';
127 $s .= "</tr>\n<tr>\n<td class='top' colspan=\"2\">$langlinks</td>\n";
130 if ( $shove && !$left ) { # Right
131 $s .= $this->getQuickbarCompensator( $rows );
134 $s .= "</tr>\n</table>\n</div>\n";
135 $s .= "\n<div id='article'>\n";
137 $notice = $this->getSkin()->getSiteNotice();
140 $s .= "\n<div id='siteNotice'>$notice</div>\n";
142 $s .= $this->pageTitle();
143 $s .= $this->pageSubtitle();
144 $s .= $this->getSkin()->getCategories();
146 wfProfileOut( __METHOD__
);
151 * This gets called shortly before the </body> tag.
152 * @return String HTML to be put before </body>
154 function afterContent() {
155 return $this->doAfterContent();
158 /** overloaded by derived classes */
159 function doAfterContent() {
160 return '</div></div>';
163 function searchForm() {
164 global $wgRequest, $wgUseTwoButtonsSearchForm;
166 $search = $wgRequest->getText( 'search' );
168 $s = '<form id="searchform' . $this->searchboxes
. '" name="search" class="inline" method="post" action="'
169 . $this->getSkin()->escapeSearchLink() . "\">\n"
170 . '<input type="text" id="searchInput' . $this->searchboxes
. '" name="search" size="19" value="'
171 . htmlspecialchars( substr( $search, 0, 256 ) ) . "\" />\n"
172 . '<input type="submit" name="go" value="' . wfMsg( 'searcharticle' ) . '" />';
174 if ( $wgUseTwoButtonsSearchForm ) {
175 $s .= ' <input type="submit" name="fulltext" value="' . wfMsg( 'searchbutton' ) . "\" />\n";
177 $s .= ' <a href="' . $this->getSkin()->escapeSearchLink() . '" rel="search">' . wfMsg( 'powersearch-legend' ) . "</a>\n";
182 // Ensure unique id's for search boxes made after the first
183 $this->searchboxes
= $this->searchboxes
== '' ?
2 : $this->searchboxes +
1;
188 function pageStats() {
189 global $wgOut, $wgLang, $wgRequest, $wgUser;
190 global $wgDisableCounters, $wgMaxCredits, $wgShowCreditsIfMax, $wgPageShowWatchingUsers;
192 if ( !is_null( $wgRequest->getVal( 'oldid' ) ) ||
!is_null( $wgRequest->getVal( 'diff' ) ) ) {
196 if ( !$wgOut->isArticle() ||
!$this->getSkin()->getTitle()->exists() ) {
200 $article = new Article( $this->getSkin()->getTitle(), 0 );
204 if ( !$wgDisableCounters ) {
205 $count = $wgLang->formatNum( $article->getCount() );
208 $s = wfMsgExt( 'viewcount', array( 'parseinline' ), $count );
212 if ( $wgMaxCredits != 0 ) {
213 $s .= ' ' . Action
::factory( 'credits', $article )->getCredits( $wgMaxCredits, $wgShowCreditsIfMax );
215 $s .= $this->data
['lastmod'];
218 if ( $wgPageShowWatchingUsers && $wgUser->getOption( 'shownumberswatching' ) ) {
219 $dbr = wfGetDB( DB_SLAVE
);
222 array( 'COUNT(*) AS n' ),
224 'wl_title' => $dbr->strencode( $this->getSkin()->getTitle()->getDBkey() ),
225 'wl_namespace' => $this->getSkin()->getTitle()->getNamespace()
229 $x = $dbr->fetchObject( $res );
231 $s .= ' ' . wfMsgExt( 'number_of_watching_users_pageview',
232 array( 'parseinline' ), $wgLang->formatNum( $x->n
)
236 return $s . ' ' . $this->getSkin()->getCopyright();
239 function topLinks() {
243 $this->getSkin()->mainPageLink(),
244 $this->getSkin()->specialLink( 'Recentchanges' )
247 if ( $wgOut->isArticleRelated() ) {
248 $s[] = $this->editThisPage();
249 $s[] = $this->historyLink();
252 # Many people don't like this dropdown box
253 # $s[] = $this->specialPagesList();
255 if ( $this->variantLinks() ) {
256 $s[] = $this->variantLinks();
259 if ( $this->extensionTabLinks() ) {
260 $s[] = $this->extensionTabLinks();
263 // @todo FIXME: Is using Language::pipeList impossible here? Do not quite understand the use of the newline
264 return implode( $s, wfMsgExt( 'pipe-separator', 'escapenoentities' ) . "\n" );
268 * Language/charset variant links for classic-style skins
271 function variantLinks() {
274 /* show links to different language variants */
275 global $wgDisableLangConversion, $wgLang, $wgContLang;
277 $variants = $wgContLang->getVariants();
279 if ( !$wgDisableLangConversion && sizeof( $variants ) > 1 ) {
280 foreach ( $variants as $code ) {
281 $varname = $wgContLang->getVariantname( $code );
283 if ( $varname == 'disable' ) {
286 $s = $wgLang->pipeList( array(
288 '<a href="' . $this->getSkin()->getTitle()->escapeLocalURL( 'variant=' . $code ) . '">' . htmlspecialchars( $varname ) . '</a>'
297 * Compatibility for extensions adding functionality through tabs.
298 * Eventually these old skins should be replaced with SkinTemplate-based
301 * @todo Exterminate! ...that, and replace it with normal SkinTemplate stuff
303 function extensionTabLinks() {
307 wfRunHooks( 'SkinTemplateTabs', array( $this->getSkin(), &$tabs ) );
308 foreach ( $tabs as $tab ) {
309 $s[] = Xml
::element( 'a',
310 array( 'href' => $tab['href'] ),
317 $out = wfMsgExt( 'pipe-separator' , 'escapenoentities' );
318 $out .= $wgLang->pipeList( $s );
324 function bottomLinks() {
325 global $wgOut, $wgUser, $wgUseTrackbacks;
326 $sep = wfMsgExt( 'pipe-separator', 'escapenoentities' ) . "\n";
329 if ( $wgOut->isArticleRelated() ) {
330 $element[] = '<strong>' . $this->editThisPage() . '</strong>';
332 if ( $wgUser->isLoggedIn() ) {
333 $element[] = $this->watchThisPage();
336 $element[] = $this->talkLink();
337 $element[] = $this->historyLink();
338 $element[] = $this->whatLinksHere();
339 $element[] = $this->watchPageLinksLink();
341 if ( $wgUseTrackbacks ) {
342 $element[] = $this->trackbackLink();
346 $this->getSkin()->getTitle()->getNamespace() == NS_USER ||
347 $this->getSkin()->getTitle()->getNamespace() == NS_USER_TALK
349 $id = User
::idFromName( $this->getSkin()->getTitle()->getText() );
350 $ip = User
::isIP( $this->getSkin()->getTitle()->getText() );
352 # Both anons and non-anons have contributions list
354 $element[] = $this->userContribsLink();
357 if ( $this->getSkin()->showEmailUser( $id ) ) {
358 $element[] = $this->emailUserLink();
362 $s = implode( $element, $sep );
364 if ( $this->getSkin()->getTitle()->getArticleId() ) {
367 // Delete/protect/move links for privileged users
368 if ( $wgUser->isAllowed( 'delete' ) ) {
369 $s .= $this->deleteThisPage();
372 if ( $wgUser->isAllowed( 'protect' ) ) {
373 $s .= $sep . $this->protectThisPage();
376 if ( $wgUser->isAllowed( 'move' ) ) {
377 $s .= $sep . $this->moveThisPage();
381 $s .= "<br />\n" . $this->otherLanguages();
387 function otherLanguages() {
388 global $wgOut, $wgContLang, $wgHideInterlanguageLinks;
390 if ( $wgHideInterlanguageLinks ) {
394 $a = $wgOut->getLanguageLinks();
396 if ( 0 == count( $a ) ) {
400 $s = wfMsg( 'otherlanguages' ) . wfMsg( 'colon-separator' );
403 if ( $wgContLang->isRTL() ) {
404 $s .= '<span dir="LTR">';
407 foreach ( $a as $l ) {
409 $s .= wfMsgExt( 'pipe-separator', 'escapenoentities' );
414 $nt = Title
::newFromText( $l );
415 $text = $wgContLang->getLanguageName( $nt->getInterwiki() );
417 $s .= Html
::element( 'a',
418 array( 'href' => $nt->getFullURL(), 'title' => $nt->getText(), 'class' => "external" ),
419 $text == '' ?
$l : $text );
422 if ( $wgContLang->isRTL() ) {
430 * Show a drop-down box of special pages
432 function specialPagesList() {
433 global $wgContLang, $wgServer, $wgRedirectScript;
435 $pages = SpecialPageFactory
::getUsablePages();
437 foreach ( $pages as $name => $page ) {
438 $pages[$name] = $page->getDescription();
442 $sp = wfMsg( 'specialpages' );
443 $spp = $wgContLang->specialPage( 'Specialpages' );
445 $s = '<form id="specialpages" method="get" ' .
446 'action="' . htmlspecialchars( "{$wgServer}{$wgRedirectScript}" ) . "\">\n";
447 $s .= "<select name=\"wpDropdown\">\n";
448 $s .= "<option value=\"{$spp}\">{$sp}</option>\n";
451 foreach ( $pages as $name => $desc ) {
452 $p = $wgContLang->specialPage( $name );
453 $s .= "<option value=\"{$p}\">{$desc}</option>\n";
457 $s .= "<input type='submit' value=\"{$go}\" name='redirect' />\n";
463 function pageTitleLinks() {
464 global $wgOut, $wgUser, $wgRequest, $wgLang;
466 $oldid = $wgRequest->getVal( 'oldid' );
467 $diff = $wgRequest->getVal( 'diff' );
468 $action = $wgRequest->getText( 'action' );
470 $s[] = $this->printableLink();
471 $disclaimer = $this->getSkin()->disclaimerLink(); # may be empty
477 $privacy = $this->getSkin()->privacyLink(); # may be empty too
483 if ( $wgOut->isArticleRelated() ) {
484 if ( $this->getSkin()->getTitle()->getNamespace() == NS_FILE
) {
485 $name = $this->getSkin()->getTitle()->getDBkey();
486 $image = wfFindFile( $this->getSkin()->getTitle() );
489 $link = htmlspecialchars( $image->getURL() );
490 $style = $this->getInternalLinkAttributes( $link, $name );
491 $s[] = "<a href=\"{$link}\"{$style}>{$name}</a>";
496 if ( 'history' == $action ||
isset( $diff ) ||
isset( $oldid ) ) {
497 $s[] .= $this->getSkin()->link(
498 $this->getSkin()->getTitle(),
499 wfMsg( 'currentrev' ),
502 array( 'known', 'noclasses' )
506 if ( $wgUser->getNewtalk() ) {
507 # do not show "You have new messages" text when we are viewing our
509 if ( !$this->getSkin()->getTitle()->equals( $wgUser->getTalkPage() ) ) {
510 $tl = $this->getSkin()->link(
511 $wgUser->getTalkPage(),
512 wfMsgHtml( 'newmessageslink' ),
514 array( 'redirect' => 'no' ),
515 array( 'known', 'noclasses' )
518 $dl = $this->getSkin()->link(
519 $wgUser->getTalkPage(),
520 wfMsgHtml( 'newmessagesdifflink' ),
522 array( 'diff' => 'cur' ),
523 array( 'known', 'noclasses' )
525 $s[] = '<strong>' . wfMsg( 'youhavenewmessages', $tl, $dl ) . '</strong>';
527 $wgOut->setSquidMaxage( 0 );
528 $wgOut->enableClientCache( false );
532 $undelete = $this->getSkin()->getUndeleteLink();
534 if ( !empty( $undelete ) ) {
538 return $wgLang->pipeList( $s );
542 * Gets the h1 element with the page title.
545 function pageTitle() {
547 $s = '<h1 class="pagetitle">' . $wgOut->getPageTitle() . '</h1>';
551 function pageSubtitle() {
554 $sub = $wgOut->getSubtitle();
557 global $wgExtraSubtitle;
558 $sub = wfMsgExt( 'tagline', 'parsemag' ) . $wgExtraSubtitle;
561 $subpages = $this->getSkin()->subPageSubtitle();
562 $sub .= !empty( $subpages ) ?
"</p><p class='subpages'>$subpages" : '';
563 $s = "<p class='subtitle'>{$sub}</p>\n";
568 function printableLink() {
569 global $wgOut, $wgRequest, $wgLang;
573 if ( !$wgOut->isPrintable() ) {
574 $printurl = htmlspecialchars( $this->getSkin()->getTitle()->getLocalUrl(
575 $wgRequest->appendQueryValue( 'printable', 'yes', true ) ) );
576 $s[] = "<a href=\"$printurl\" rel=\"alternate\">" . wfMsg( 'printableversion' ) . '</a>';
579 if ( $wgOut->isSyndicated() ) {
580 foreach ( $wgOut->getSyndicationLinks() as $format => $link ) {
581 $feedurl = htmlspecialchars( $link );
582 $s[] = "<a href=\"$feedurl\" rel=\"alternate\" type=\"application/{$format}+xml\""
583 . " class=\"feedlink\">" . wfMsgHtml( "feed-$format" ) . "</a>";
586 return $wgLang->pipeList( $s );
589 function getQuickbarCompensator( $rows = 1 ) {
590 return "<td width='152' rowspan='{$rows}'> </td>";
593 function editThisPage() {
596 if ( !$wgOut->isArticleRelated() ) {
597 $s = wfMsg( 'protectedpage' );
599 if ( $this->getSkin()->getTitle()->quickUserCan( 'edit' ) && $this->getSkin()->getTitle()->exists() ) {
600 $t = wfMsg( 'editthispage' );
601 } elseif ( $this->getSkin()->getTitle()->quickUserCan( 'create' ) && !$this->getSkin()->getTitle()->exists() ) {
602 $t = wfMsg( 'create-this-page' );
604 $t = wfMsg( 'viewsource' );
607 $s = $this->getSkin()->link(
608 $this->getSkin()->getTitle(),
611 $this->getSkin()->editUrlOptions(),
612 array( 'known', 'noclasses' )
619 function deleteThisPage() {
620 global $wgUser, $wgRequest;
622 $diff = $wgRequest->getVal( 'diff' );
624 if ( $this->getSkin()->getTitle()->getArticleId() && ( !$diff ) && $wgUser->isAllowed( 'delete' ) ) {
625 $t = wfMsg( 'deletethispage' );
627 $s = $this->getSkin()->link(
628 $this->getSkin()->getTitle(),
631 array( 'action' => 'delete' ),
632 array( 'known', 'noclasses' )
641 function protectThisPage() {
642 global $wgUser, $wgRequest;
644 $diff = $wgRequest->getVal( 'diff' );
646 if ( $this->getSkin()->getTitle()->getArticleId() && ( ! $diff ) && $wgUser->isAllowed( 'protect' ) ) {
647 if ( $this->getSkin()->getTitle()->isProtected() ) {
648 $text = wfMsg( 'unprotectthispage' );
649 $query = array( 'action' => 'unprotect' );
651 $text = wfMsg( 'protectthispage' );
652 $query = array( 'action' => 'protect' );
655 $s = $this->getSkin()->link(
656 $this->getSkin()->getTitle(),
660 array( 'known', 'noclasses' )
669 function watchThisPage() {
671 ++
$this->mWatchLinkNum
;
673 if ( $wgOut->isArticleRelated() ) {
674 if ( $this->getSkin()->getTitle()->userIsWatching() ) {
675 $text = wfMsg( 'unwatchthispage' );
676 $query = array( 'action' => 'unwatch' );
677 $id = 'mw-unwatch-link' . $this->mWatchLinkNum
;
679 $text = wfMsg( 'watchthispage' );
680 $query = array( 'action' => 'watch' );
681 $id = 'mw-watch-link' . $this->mWatchLinkNum
;
684 $s = $this->getSkin()->link(
685 $this->getSkin()->getTitle(),
687 array( 'id' => $id ),
689 array( 'known', 'noclasses' )
692 $s = wfMsg( 'notanarticle' );
698 function moveThisPage() {
699 if ( $this->getSkin()->getTitle()->quickUserCan( 'move' ) ) {
700 return $this->getSkin()->link(
701 SpecialPage
::getTitleFor( 'Movepage' ),
702 wfMsg( 'movethispage' ),
704 array( 'target' => $this->getSkin()->getTitle()->getPrefixedDBkey() ),
705 array( 'known', 'noclasses' )
708 // no message if page is protected - would be redundant
713 function historyLink() {
714 return $this->getSkin()->link(
715 $this->getSkin()->getTitle(),
716 wfMsgHtml( 'history' ),
717 array( 'rel' => 'archives' ),
718 array( 'action' => 'history' )
722 function whatLinksHere() {
723 return $this->getSkin()->link(
724 SpecialPage
::getTitleFor( 'Whatlinkshere', $this->getSkin()->getTitle()->getPrefixedDBkey() ),
725 wfMsgHtml( 'whatlinkshere' ),
728 array( 'known', 'noclasses' )
732 function userContribsLink() {
733 return $this->getSkin()->link(
734 SpecialPage
::getTitleFor( 'Contributions', $this->getSkin()->getTitle()->getDBkey() ),
735 wfMsgHtml( 'contributions' ),
738 array( 'known', 'noclasses' )
742 function emailUserLink() {
743 return $this->getSkin()->link(
744 SpecialPage
::getTitleFor( 'Emailuser', $this->getSkin()->getTitle()->getDBkey() ),
745 wfMsg( 'emailuser' ),
748 array( 'known', 'noclasses' )
752 function watchPageLinksLink() {
755 if ( !$wgOut->isArticleRelated() ) {
756 return '(' . wfMsg( 'notanarticle' ) . ')';
758 return $this->getSkin()->link(
759 SpecialPage
::getTitleFor( 'Recentchangeslinked', $this->getSkin()->getTitle()->getPrefixedDBkey() ),
760 wfMsg( 'recentchangeslinked-toolbox' ),
763 array( 'known', 'noclasses' )
768 function trackbackLink() {
769 return '<a href="' . $this->getSkin()->getTitle()->trackbackURL() . '">'
770 . wfMsg( 'trackbacklink' ) . '</a>';
773 function talkLink() {
774 if ( NS_SPECIAL
== $this->getSkin()->getTitle()->getNamespace() ) {
775 # No discussion links for special pages
779 $linkOptions = array();
781 if ( $this->getSkin()->getTitle()->isTalkPage() ) {
782 $link = $this->getSkin()->getTitle()->getSubjectPage();
783 switch( $link->getNamespace() ) {
785 $text = wfMsg( 'articlepage' );
788 $text = wfMsg( 'userpage' );
791 $text = wfMsg( 'projectpage' );
794 $text = wfMsg( 'imagepage' );
795 # Make link known if image exists, even if the desc. page doesn't.
796 if ( wfFindFile( $link ) )
797 $linkOptions[] = 'known';
800 $text = wfMsg( 'mediawikipage' );
803 $text = wfMsg( 'templatepage' );
806 $text = wfMsg( 'viewhelppage' );
809 $text = wfMsg( 'categorypage' );
812 $text = wfMsg( 'articlepage' );
815 $link = $this->getSkin()->getTitle()->getTalkPage();
816 $text = wfMsg( 'talkpage' );
819 $s = $this->getSkin()->link( $link, $text, array(), array(), $linkOptions );
824 function commentLink() {
827 if ( $this->getSkin()->getTitle()->getNamespace() == NS_SPECIAL
) {
831 # __NEWSECTIONLINK___ changes behaviour here
832 # If it is present, the link points to this page, otherwise
833 # it points to the talk page
834 if ( $this->getSkin()->getTitle()->isTalkPage() ) {
835 $title = $this->getSkin()->getTitle();
836 } elseif ( $wgOut->showNewSectionLink() ) {
837 $title = $this->getSkin()->getTitle();
839 $title = $this->getSkin()->getTitle()->getTalkPage();
842 return $this->getSkin()->link(
844 wfMsg( 'postcomment' ),
850 array( 'known', 'noclasses' )
854 function getUploadLink() {
855 global $wgUploadNavigationUrl;
857 if ( $wgUploadNavigationUrl ) {
858 # Using an empty class attribute to avoid automatic setting of "external" class
859 return $this->makeExternalLink( $wgUploadNavigationUrl, wfMsgHtml( 'upload' ), false, null, array( 'class' => '' ) );
861 return $this->getSkin()->link(
862 SpecialPage
::getTitleFor( 'Upload' ),
863 wfMsgHtml( 'upload' ),
866 array( 'known', 'noclasses' )
871 function nameAndLogin() {
872 global $wgUser, $wgLang, $wgContLang;
874 $logoutPage = $wgContLang->specialPage( 'Userlogout' );
878 if ( $wgUser->isAnon() ) {
879 if ( $this->getSkin()->showIPinHeader() ) {
882 $talkLink = $this->getSkin()->link( $wgUser->getTalkPage(),
883 $wgLang->getNsText( NS_TALK
) );
885 $ret .= "$name ($talkLink)";
887 $ret .= wfMsg( 'notloggedin' );
890 $returnTo = $this->getSkin()->getTitle()->getPrefixedDBkey();
893 if ( $logoutPage != $returnTo ) {
894 $query['returnto'] = $returnTo;
897 $loginlink = $wgUser->isAllowed( 'createaccount' )
898 ?
'nav-login-createaccount'
900 $ret .= "\n<br />" . $this->getSkin()->link(
901 SpecialPage
::getTitleFor( 'Userlogin' ),
902 wfMsg( $loginlink ), array(), $query
905 $returnTo = $this->getSkin()->getTitle()->getPrefixedDBkey();
906 $talkLink = $this->getSkin()->link( $wgUser->getTalkPage(),
907 $wgLang->getNsText( NS_TALK
) );
909 $ret .= $this->getSkin()->link( $wgUser->getUserPage(),
910 htmlspecialchars( $wgUser->getName() ) );
911 $ret .= " ($talkLink)<br />";
912 $ret .= $wgLang->pipeList( array(
913 $this->getSkin()->link(
914 SpecialPage
::getTitleFor( 'Userlogout' ), wfMsg( 'logout' ),
915 array(), array( 'returnto' => $returnTo )
917 $this->getSkin()->specialLink( 'Preferences' ),
921 $ret = $wgLang->pipeList( array(
923 $this->getSkin()->link(
924 Title
::newFromText( wfMsgForContent( 'helppage' ) ),