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() {
51 global $wgOut, $wgUser;
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->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 = wfGetSiteNotice();
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 .= ' ' . Credits
::getCredits( $article, $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 $url = $nt->escapeFullURL();
416 $text = $wgContLang->getLanguageName( $nt->getInterwiki() );
417 $title = htmlspecialchars( $nt->getText() );
423 $style = $this->getExternalLinkAttributes();
424 $s .= "<a href=\"{$url}\" title=\"{$title}\"{$style}>{$text}</a>";
427 if ( $wgContLang->isRTL() ) {
435 * Show a drop-down box of special pages
437 function specialPagesList() {
438 global $wgContLang, $wgServer, $wgRedirectScript;
440 $pages = array_merge( SpecialPage
::getRegularPages(), SpecialPage
::getRestrictedPages() );
442 foreach ( $pages as $name => $page ) {
443 $pages[$name] = $page->getDescription();
447 $sp = wfMsg( 'specialpages' );
448 $spp = $wgContLang->specialPage( 'Specialpages' );
450 $s = '<form id="specialpages" method="get" ' .
451 'action="' . htmlspecialchars( "{$wgServer}{$wgRedirectScript}" ) . "\">\n";
452 $s .= "<select name=\"wpDropdown\">\n";
453 $s .= "<option value=\"{$spp}\">{$sp}</option>\n";
456 foreach ( $pages as $name => $desc ) {
457 $p = $wgContLang->specialPage( $name );
458 $s .= "<option value=\"{$p}\">{$desc}</option>\n";
462 $s .= "<input type='submit' value=\"{$go}\" name='redirect' />\n";
468 function pageTitleLinks() {
469 global $wgOut, $wgUser, $wgRequest, $wgLang;
471 $oldid = $wgRequest->getVal( 'oldid' );
472 $diff = $wgRequest->getVal( 'diff' );
473 $action = $wgRequest->getText( 'action' );
475 $s[] = $this->printableLink();
476 $disclaimer = $this->getSkin()->disclaimerLink(); # may be empty
482 $privacy = $this->getSkin()->privacyLink(); # may be empty too
488 if ( $wgOut->isArticleRelated() ) {
489 if ( $this->getSkin()->getTitle()->getNamespace() == NS_FILE
) {
490 $name = $this->getSkin()->getTitle()->getDBkey();
491 $image = wfFindFile( $this->getSkin()->getTitle() );
494 $link = htmlspecialchars( $image->getURL() );
495 $style = $this->getInternalLinkAttributes( $link, $name );
496 $s[] = "<a href=\"{$link}\"{$style}>{$name}</a>";
501 if ( 'history' == $action ||
isset( $diff ) ||
isset( $oldid ) ) {
502 $s[] .= $this->getSkin()->link(
503 $this->getSkin()->getTitle(),
504 wfMsg( 'currentrev' ),
507 array( 'known', 'noclasses' )
511 if ( $wgUser->getNewtalk() ) {
512 # do not show "You have new messages" text when we are viewing our
514 if ( !$this->getSkin()->getTitle()->equals( $wgUser->getTalkPage() ) ) {
515 $tl = $this->getSkin()->link(
516 $wgUser->getTalkPage(),
517 wfMsgHtml( 'newmessageslink' ),
519 array( 'redirect' => 'no' ),
520 array( 'known', 'noclasses' )
523 $dl = $this->getSkin()->link(
524 $wgUser->getTalkPage(),
525 wfMsgHtml( 'newmessagesdifflink' ),
527 array( 'diff' => 'cur' ),
528 array( 'known', 'noclasses' )
530 $s[] = '<strong>' . wfMsg( 'youhavenewmessages', $tl, $dl ) . '</strong>';
532 $wgOut->setSquidMaxage( 0 );
533 $wgOut->enableClientCache( false );
537 $undelete = $this->getSkin()->getUndeleteLink();
539 if ( !empty( $undelete ) ) {
543 return $wgLang->pipeList( $s );
547 * Gets the h1 element with the page title.
550 function pageTitle() {
552 $s = '<h1 class="pagetitle">' . $wgOut->getPageTitle() . '</h1>';
556 function pageSubtitle() {
559 $sub = $wgOut->getSubtitle();
562 global $wgExtraSubtitle;
563 $sub = wfMsgExt( 'tagline', 'parsemag' ) . $wgExtraSubtitle;
566 $subpages = $this->getSkin()->subPageSubtitle();
567 $sub .= !empty( $subpages ) ?
"</p><p class='subpages'>$subpages" : '';
568 $s = "<p class='subtitle'>{$sub}</p>\n";
573 function printableLink() {
574 global $wgOut, $wgFeedClasses, $wgRequest, $wgLang;
578 if ( !$wgOut->isPrintable() ) {
579 $printurl = $wgRequest->escapeAppendQuery( 'printable=yes' );
580 $s[] = "<a href=\"$printurl\" rel=\"alternate\">" . wfMsg( 'printableversion' ) . '</a>';
583 if ( $wgOut->isSyndicated() ) {
584 foreach ( $wgFeedClasses as $format => $class ) {
585 $feedurl = $wgRequest->escapeAppendQuery( "feed=$format" );
586 $s[] = "<a href=\"$feedurl\" rel=\"alternate\" type=\"application/{$format}+xml\""
587 . " class=\"feedlink\">" . wfMsgHtml( "feed-$format" ) . "</a>";
590 return $wgLang->pipeList( $s );
593 function getQuickbarCompensator( $rows = 1 ) {
594 return "<td width='152' rowspan='{$rows}'> </td>";
597 function editThisPage() {
600 if ( !$wgOut->isArticleRelated() ) {
601 $s = wfMsg( 'protectedpage' );
603 if ( $this->getSkin()->getTitle()->quickUserCan( 'edit' ) && $this->getSkin()->getTitle()->exists() ) {
604 $t = wfMsg( 'editthispage' );
605 } elseif ( $this->getSkin()->getTitle()->quickUserCan( 'create' ) && !$this->getSkin()->getTitle()->exists() ) {
606 $t = wfMsg( 'create-this-page' );
608 $t = wfMsg( 'viewsource' );
611 $s = $this->getSkin()->link(
612 $this->getSkin()->getTitle(),
615 $this->getSkin()->editUrlOptions(),
616 array( 'known', 'noclasses' )
623 function deleteThisPage() {
624 global $wgUser, $wgRequest;
626 $diff = $wgRequest->getVal( 'diff' );
628 if ( $this->getSkin()->getTitle()->getArticleId() && ( !$diff ) && $wgUser->isAllowed( 'delete' ) ) {
629 $t = wfMsg( 'deletethispage' );
631 $s = $this->getSkin()->link(
632 $this->getSkin()->getTitle(),
635 array( 'action' => 'delete' ),
636 array( 'known', 'noclasses' )
645 function protectThisPage() {
646 global $wgUser, $wgRequest;
648 $diff = $wgRequest->getVal( 'diff' );
650 if ( $this->getSkin()->getTitle()->getArticleId() && ( ! $diff ) && $wgUser->isAllowed( 'protect' ) ) {
651 if ( $this->getSkin()->getTitle()->isProtected() ) {
652 $text = wfMsg( 'unprotectthispage' );
653 $query = array( 'action' => 'unprotect' );
655 $text = wfMsg( 'protectthispage' );
656 $query = array( 'action' => 'protect' );
659 $s = $this->getSkin()->link(
660 $this->getSkin()->getTitle(),
664 array( 'known', 'noclasses' )
673 function watchThisPage() {
675 ++
$this->mWatchLinkNum
;
677 if ( $wgOut->isArticleRelated() ) {
678 if ( $this->getSkin()->getTitle()->userIsWatching() ) {
679 $text = wfMsg( 'unwatchthispage' );
680 $query = array( 'action' => 'unwatch' );
681 $id = 'mw-unwatch-link' . $this->mWatchLinkNum
;
683 $text = wfMsg( 'watchthispage' );
684 $query = array( 'action' => 'watch' );
685 $id = 'mw-watch-link' . $this->mWatchLinkNum
;
688 $s = $this->getSkin()->link(
689 $this->getSkin()->getTitle(),
691 array( 'id' => $id ),
693 array( 'known', 'noclasses' )
696 $s = wfMsg( 'notanarticle' );
702 function moveThisPage() {
703 if ( $this->getSkin()->getTitle()->quickUserCan( 'move' ) ) {
704 return $this->getSkin()->link(
705 SpecialPage
::getTitleFor( 'Movepage' ),
706 wfMsg( 'movethispage' ),
708 array( 'target' => $this->getSkin()->getTitle()->getPrefixedDBkey() ),
709 array( 'known', 'noclasses' )
712 // no message if page is protected - would be redundant
717 function historyLink() {
718 return $this->getSkin()->link(
719 $this->getSkin()->getTitle(),
720 wfMsgHtml( 'history' ),
721 array( 'rel' => 'archives' ),
722 array( 'action' => 'history' )
726 function whatLinksHere() {
727 return $this->getSkin()->link(
728 SpecialPage
::getTitleFor( 'Whatlinkshere', $this->getSkin()->getTitle()->getPrefixedDBkey() ),
729 wfMsgHtml( 'whatlinkshere' ),
732 array( 'known', 'noclasses' )
736 function userContribsLink() {
737 return $this->getSkin()->link(
738 SpecialPage
::getTitleFor( 'Contributions', $this->getSkin()->getTitle()->getDBkey() ),
739 wfMsgHtml( 'contributions' ),
742 array( 'known', 'noclasses' )
746 function emailUserLink() {
747 return $this->getSkin()->link(
748 SpecialPage
::getTitleFor( 'Emailuser', $this->getSkin()->getTitle()->getDBkey() ),
749 wfMsg( 'emailuser' ),
752 array( 'known', 'noclasses' )
756 function watchPageLinksLink() {
759 if ( !$wgOut->isArticleRelated() ) {
760 return '(' . wfMsg( 'notanarticle' ) . ')';
762 return $this->getSkin()->link(
763 SpecialPage
::getTitleFor( 'Recentchangeslinked', $this->getSkin()->getTitle()->getPrefixedDBkey() ),
764 wfMsg( 'recentchangeslinked-toolbox' ),
767 array( 'known', 'noclasses' )
772 function trackbackLink() {
773 return '<a href="' . $this->getSkin()->getTitle()->trackbackURL() . '">'
774 . wfMsg( 'trackbacklink' ) . '</a>';
777 function talkLink() {
778 if ( NS_SPECIAL
== $this->getSkin()->getTitle()->getNamespace() ) {
779 # No discussion links for special pages
783 $linkOptions = array();
785 if ( $this->getSkin()->getTitle()->isTalkPage() ) {
786 $link = $this->getSkin()->getTitle()->getSubjectPage();
787 switch( $link->getNamespace() ) {
789 $text = wfMsg( 'articlepage' );
792 $text = wfMsg( 'userpage' );
795 $text = wfMsg( 'projectpage' );
798 $text = wfMsg( 'imagepage' );
799 # Make link known if image exists, even if the desc. page doesn't.
800 if ( wfFindFile( $link ) )
801 $linkOptions[] = 'known';
804 $text = wfMsg( 'mediawikipage' );
807 $text = wfMsg( 'templatepage' );
810 $text = wfMsg( 'viewhelppage' );
813 $text = wfMsg( 'categorypage' );
816 $text = wfMsg( 'articlepage' );
819 $link = $this->getSkin()->getTitle()->getTalkPage();
820 $text = wfMsg( 'talkpage' );
823 $s = $this->getSkin()->link( $link, $text, array(), array(), $linkOptions );
828 function commentLink() {
831 if ( $this->getSkin()->getTitle()->getNamespace() == NS_SPECIAL
) {
835 # __NEWSECTIONLINK___ changes behaviour here
836 # If it is present, the link points to this page, otherwise
837 # it points to the talk page
838 if ( $this->getSkin()->getTitle()->isTalkPage() ) {
839 $title = $this->getSkin()->getTitle();
840 } elseif ( $wgOut->showNewSectionLink() ) {
841 $title = $this->getSkin()->getTitle();
843 $title = $this->getSkin()->getTitle()->getTalkPage();
846 return $this->getSkin()->link(
848 wfMsg( 'postcomment' ),
854 array( 'known', 'noclasses' )
858 function getUploadLink() {
859 global $wgUploadNavigationUrl;
861 if ( $wgUploadNavigationUrl ) {
862 # Using an empty class attribute to avoid automatic setting of "external" class
863 return $this->makeExternalLink( $wgUploadNavigationUrl, wfMsgHtml( 'upload' ), false, null, array( 'class' => '' ) );
865 return $this->getSkin()->link(
866 SpecialPage
::getTitleFor( 'Upload' ),
867 wfMsgHtml( 'upload' ),
870 array( 'known', 'noclasses' )
875 function nameAndLogin() {
876 global $wgUser, $wgLang, $wgContLang;
878 $logoutPage = $wgContLang->specialPage( 'Userlogout' );
882 if ( $wgUser->isAnon() ) {
883 if ( $this->getSkin()->showIPinHeader() ) {
886 $talkLink = $this->getSkin()->link( $wgUser->getTalkPage(),
887 $wgLang->getNsText( NS_TALK
) );
889 $ret .= "$name ($talkLink)";
891 $ret .= wfMsg( 'notloggedin' );
894 $returnTo = $this->getSkin()->getTitle()->getPrefixedDBkey();
897 if ( $logoutPage != $returnTo ) {
898 $query['returnto'] = $returnTo;
901 $loginlink = $wgUser->isAllowed( 'createaccount' )
902 ?
'nav-login-createaccount'
904 $ret .= "\n<br />" . $this->getSkin()->link(
905 SpecialPage
::getTitleFor( 'Userlogin' ),
906 wfMsg( $loginlink ), array(), $query
909 $returnTo = $this->getSkin()->getTitle()->getPrefixedDBkey();
910 $talkLink = $this->getSkin()->link( $wgUser->getTalkPage(),
911 $wgLang->getNsText( NS_TALK
) );
913 $ret .= $this->getSkin()->link( $wgUser->getUserPage(),
914 htmlspecialchars( $wgUser->getName() ) );
915 $ret .= " ($talkLink)<br />";
916 $ret .= $wgLang->pipeList( array(
917 $this->getSkin()->link(
918 SpecialPage
::getTitleFor( 'Userlogout' ), wfMsg( 'logout' ),
919 array(), array( 'returnto' => $returnTo )
921 $this->getSkin()->specialLink( 'Preferences' ),
925 $ret = $wgLang->pipeList( array(
927 $this->getSkin()->link(
928 Title
::newFromText( wfMsgForContent( 'helppage' ) ),