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' );
78 echo $this->afterContent();
79 $this->html( 'dataAfterContent' );
81 echo "\n</body></html>";
85 * This will be called immediately after the <body> tag. Split into
86 * two functions to make it easier to subclass.
88 function beforeContent() {
89 return $this->doBeforeContent();
92 function doBeforeContent() {
94 wfProfileIn( __METHOD__
);
97 $qb = $this->getSkin()->qbSetting();
99 $langlinks = $this->otherLanguages();
106 $borderhack = 'class="top"';
109 $s .= "\n<div id='content'>\n<div id='topbar'>\n" .
110 "<table border='0' cellspacing='0' width='98%'>\n<tr>\n";
112 $shove = ( $qb != 0 );
113 $left = ( $qb == 1 ||
$qb == 3 );
116 $s .= "<td class='top' align='left' valign='top' rowspan='{$rows}'>\n" .
117 $this->getSkin()->logoText() . '</td>';
119 $s .= $this->getQuickbarCompensator( $rows );
122 $l = $wgContLang->alignStart();
123 $s .= "<td {$borderhack} align='$l' valign='top'>\n";
125 $s .= $this->topLinks();
126 $s .= '<p class="subtitle">' . $this->pageTitleLinks() . "</p>\n";
128 $r = $wgContLang->alignEnd();
129 $s .= "</td>\n<td {$borderhack} valign='top' align='$r' nowrap='nowrap'>";
130 $s .= $this->nameAndLogin();
131 $s .= "\n<br />" . $this->searchForm() . '</td>';
134 $s .= "</tr>\n<tr>\n<td class='top' colspan=\"2\">$langlinks</td>\n";
137 if ( $shove && !$left ) { # Right
138 $s .= $this->getQuickbarCompensator( $rows );
141 $s .= "</tr>\n</table>\n</div>\n";
142 $s .= "\n<div id='article'>\n";
144 $notice = $this->getSkin()->getSiteNotice();
147 $s .= "\n<div id='siteNotice'>$notice</div>\n";
149 $s .= $this->pageTitle();
150 $s .= $this->pageSubtitle();
151 $s .= $this->getSkin()->getCategories();
153 wfProfileOut( __METHOD__
);
158 * This gets called shortly before the </body> tag.
159 * @return String HTML to be put before </body>
161 function afterContent() {
162 return $this->doAfterContent();
165 /** overloaded by derived classes */
166 function doAfterContent() {
167 return '</div></div>';
170 function searchForm() {
171 global $wgRequest, $wgUseTwoButtonsSearchForm;
173 $search = $wgRequest->getText( 'search' );
175 $s = '<form id="searchform' . $this->searchboxes
. '" name="search" class="inline" method="post" action="'
176 . $this->getSkin()->escapeSearchLink() . "\">\n"
177 . '<input type="text" id="searchInput' . $this->searchboxes
. '" name="search" size="19" value="'
178 . htmlspecialchars( substr( $search, 0, 256 ) ) . "\" />\n"
179 . '<input type="submit" name="go" value="' . wfMsg( 'searcharticle' ) . '" />';
181 if ( $wgUseTwoButtonsSearchForm ) {
182 $s .= ' <input type="submit" name="fulltext" value="' . wfMsg( 'searchbutton' ) . "\" />\n";
184 $s .= ' <a href="' . $this->getSkin()->escapeSearchLink() . '" rel="search">' . wfMsg( 'powersearch-legend' ) . "</a>\n";
189 // Ensure unique id's for search boxes made after the first
190 $this->searchboxes
= $this->searchboxes
== '' ?
2 : $this->searchboxes +
1;
195 function pageStats() {
196 global $wgOut, $wgLang, $wgRequest, $wgUser;
197 global $wgDisableCounters, $wgMaxCredits, $wgShowCreditsIfMax, $wgPageShowWatchingUsers;
199 if ( !is_null( $wgRequest->getVal( 'oldid' ) ) ||
!is_null( $wgRequest->getVal( 'diff' ) ) ) {
203 if ( !$wgOut->isArticle() ||
!$this->getSkin()->getTitle()->exists() ) {
207 $article = new Article( $this->getSkin()->getTitle(), 0 );
211 if ( !$wgDisableCounters ) {
212 $count = $wgLang->formatNum( $article->getCount() );
215 $s = wfMsgExt( 'viewcount', array( 'parseinline' ), $count );
219 if ( $wgMaxCredits != 0 ) {
220 $s .= ' ' . Action
::factory( 'credits', $article )->getCredits( $wgMaxCredits, $wgShowCreditsIfMax );
222 $s .= $this->data
['lastmod'];
225 if ( $wgPageShowWatchingUsers && $wgUser->getOption( 'shownumberswatching' ) ) {
226 $dbr = wfGetDB( DB_SLAVE
);
229 array( 'COUNT(*) AS n' ),
231 'wl_title' => $dbr->strencode( $this->getSkin()->getTitle()->getDBkey() ),
232 'wl_namespace' => $this->getSkin()->getTitle()->getNamespace()
236 $x = $dbr->fetchObject( $res );
238 $s .= ' ' . wfMsgExt( 'number_of_watching_users_pageview',
239 array( 'parseinline' ), $wgLang->formatNum( $x->n
)
243 return $s . ' ' . $this->getSkin()->getCopyright();
246 function topLinks() {
250 $this->getSkin()->mainPageLink(),
251 Linker
::specialLink( 'Recentchanges' )
254 if ( $wgOut->isArticleRelated() ) {
255 $s[] = $this->editThisPage();
256 $s[] = $this->historyLink();
259 # Many people don't like this dropdown box
260 # $s[] = $this->specialPagesList();
262 if ( $this->variantLinks() ) {
263 $s[] = $this->variantLinks();
266 if ( $this->extensionTabLinks() ) {
267 $s[] = $this->extensionTabLinks();
270 // @todo FIXME: Is using Language::pipeList impossible here? Do not quite understand the use of the newline
271 return implode( $s, wfMsgExt( 'pipe-separator', 'escapenoentities' ) . "\n" );
275 * Language/charset variant links for classic-style skins
278 function variantLinks() {
281 /* show links to different language variants */
282 global $wgDisableLangConversion, $wgLang, $wgContLang;
284 $variants = $wgContLang->getVariants();
286 if ( !$wgDisableLangConversion && sizeof( $variants ) > 1 ) {
287 foreach ( $variants as $code ) {
288 $varname = $wgContLang->getVariantname( $code );
290 if ( $varname == 'disable' ) {
293 $s = $wgLang->pipeList( array(
295 '<a href="' . $this->getSkin()->getTitle()->escapeLocalURL( 'variant=' . $code ) . '">' . htmlspecialchars( $varname ) . '</a>'
304 * Compatibility for extensions adding functionality through tabs.
305 * Eventually these old skins should be replaced with SkinTemplate-based
308 * @todo Exterminate! ...that, and replace it with normal SkinTemplate stuff
310 function extensionTabLinks() {
314 wfRunHooks( 'SkinTemplateTabs', array( $this->getSkin(), &$tabs ) );
315 foreach ( $tabs as $tab ) {
316 $s[] = Xml
::element( 'a',
317 array( 'href' => $tab['href'] ),
324 $out = wfMsgExt( 'pipe-separator' , 'escapenoentities' );
325 $out .= $wgLang->pipeList( $s );
331 function bottomLinks() {
332 global $wgOut, $wgUser, $wgUseTrackbacks;
333 $sep = wfMsgExt( 'pipe-separator', 'escapenoentities' ) . "\n";
336 if ( $wgOut->isArticleRelated() ) {
337 $element[] = '<strong>' . $this->editThisPage() . '</strong>';
339 if ( $wgUser->isLoggedIn() ) {
340 $element[] = $this->watchThisPage();
343 $element[] = $this->talkLink();
344 $element[] = $this->historyLink();
345 $element[] = $this->whatLinksHere();
346 $element[] = $this->watchPageLinksLink();
348 if ( $wgUseTrackbacks ) {
349 $element[] = $this->trackbackLink();
353 $this->getSkin()->getTitle()->getNamespace() == NS_USER ||
354 $this->getSkin()->getTitle()->getNamespace() == NS_USER_TALK
356 $id = User
::idFromName( $this->getSkin()->getTitle()->getText() );
357 $ip = User
::isIP( $this->getSkin()->getTitle()->getText() );
359 # Both anons and non-anons have contributions list
361 $element[] = $this->userContribsLink();
364 if ( $this->getSkin()->showEmailUser( $id ) ) {
365 $element[] = $this->emailUserLink();
369 $s = implode( $element, $sep );
371 if ( $this->getSkin()->getTitle()->getArticleId() ) {
374 // Delete/protect/move links for privileged users
375 if ( $wgUser->isAllowed( 'delete' ) ) {
376 $s .= $this->deleteThisPage();
379 if ( $wgUser->isAllowed( 'protect' ) ) {
380 $s .= $sep . $this->protectThisPage();
383 if ( $wgUser->isAllowed( 'move' ) ) {
384 $s .= $sep . $this->moveThisPage();
388 $s .= "<br />\n" . $this->otherLanguages();
394 function otherLanguages() {
395 global $wgOut, $wgContLang, $wgHideInterlanguageLinks;
397 if ( $wgHideInterlanguageLinks ) {
401 $a = $wgOut->getLanguageLinks();
403 if ( 0 == count( $a ) ) {
407 $s = wfMsg( 'otherlanguages' ) . wfMsg( 'colon-separator' );
410 if ( $wgContLang->isRTL() ) {
411 $s .= '<span dir="LTR">';
414 foreach ( $a as $l ) {
416 $s .= wfMsgExt( 'pipe-separator', 'escapenoentities' );
421 $nt = Title
::newFromText( $l );
422 $text = $wgContLang->getLanguageName( $nt->getInterwiki() );
424 $s .= Html
::element( 'a',
425 array( 'href' => $nt->getFullURL(), 'title' => $nt->getText(), 'class' => "external" ),
426 $text == '' ?
$l : $text );
429 if ( $wgContLang->isRTL() ) {
437 * Show a drop-down box of special pages
439 function specialPagesList() {
440 global $wgContLang, $wgServer, $wgRedirectScript;
442 $pages = SpecialPageFactory
::getUsablePages();
444 foreach ( $pages as $name => $page ) {
445 $pages[$name] = $page->getDescription();
449 $sp = wfMsg( 'specialpages' );
450 $spp = $wgContLang->specialPage( 'Specialpages' );
452 $s = '<form id="specialpages" method="get" ' .
453 'action="' . htmlspecialchars( "{$wgServer}{$wgRedirectScript}" ) . "\">\n";
454 $s .= "<select name=\"wpDropdown\">\n";
455 $s .= "<option value=\"{$spp}\">{$sp}</option>\n";
458 foreach ( $pages as $name => $desc ) {
459 $p = $wgContLang->specialPage( $name );
460 $s .= "<option value=\"{$p}\">{$desc}</option>\n";
464 $s .= "<input type='submit' value=\"{$go}\" name='redirect' />\n";
470 function pageTitleLinks() {
471 global $wgOut, $wgUser, $wgRequest, $wgLang;
473 $oldid = $wgRequest->getVal( 'oldid' );
474 $diff = $wgRequest->getVal( 'diff' );
475 $action = $wgRequest->getText( 'action' );
477 $s[] = $this->printableLink();
478 $disclaimer = $this->getSkin()->disclaimerLink(); # may be empty
484 $privacy = $this->getSkin()->privacyLink(); # may be empty too
490 if ( $wgOut->isArticleRelated() ) {
491 if ( $this->getSkin()->getTitle()->getNamespace() == NS_FILE
) {
492 $name = $this->getSkin()->getTitle()->getDBkey();
493 $image = wfFindFile( $this->getSkin()->getTitle() );
496 $link = htmlspecialchars( $image->getURL() );
497 $style = $this->getInternalLinkAttributes( $link, $name );
498 $s[] = "<a href=\"{$link}\"{$style}>{$name}</a>";
503 if ( 'history' == $action ||
isset( $diff ) ||
isset( $oldid ) ) {
504 $s[] .= Linker
::link(
505 $this->getSkin()->getTitle(),
506 wfMsg( 'currentrev' ),
509 array( 'known', 'noclasses' )
513 if ( $wgUser->getNewtalk() ) {
514 # do not show "You have new messages" text when we are viewing our
516 if ( !$this->getSkin()->getTitle()->equals( $wgUser->getTalkPage() ) ) {
518 $wgUser->getTalkPage(),
519 wfMsgHtml( 'newmessageslink' ),
521 array( 'redirect' => 'no' ),
522 array( 'known', 'noclasses' )
526 $wgUser->getTalkPage(),
527 wfMsgHtml( 'newmessagesdifflink' ),
529 array( 'diff' => 'cur' ),
530 array( 'known', 'noclasses' )
532 $s[] = '<strong>' . wfMsg( 'youhavenewmessages', $tl, $dl ) . '</strong>';
534 $wgOut->setSquidMaxage( 0 );
535 $wgOut->enableClientCache( false );
539 $undelete = $this->getSkin()->getUndeleteLink();
541 if ( !empty( $undelete ) ) {
545 return $wgLang->pipeList( $s );
549 * Gets the h1 element with the page title.
552 function pageTitle() {
554 $s = '<h1 class="pagetitle">' . $wgOut->getPageTitle() . '</h1>';
558 function pageSubtitle() {
561 $sub = $wgOut->getSubtitle();
564 global $wgExtraSubtitle;
565 $sub = wfMsgExt( 'tagline', 'parsemag' ) . $wgExtraSubtitle;
568 $subpages = $this->getSkin()->subPageSubtitle();
569 $sub .= !empty( $subpages ) ?
"</p><p class='subpages'>$subpages" : '';
570 $s = "<p class='subtitle'>{$sub}</p>\n";
575 function printableLink() {
576 global $wgOut, $wgRequest, $wgLang;
580 if ( !$wgOut->isPrintable() ) {
581 $printurl = htmlspecialchars( $this->getSkin()->getTitle()->getLocalUrl(
582 $wgRequest->appendQueryValue( 'printable', 'yes', true ) ) );
583 $s[] = "<a href=\"$printurl\" rel=\"alternate\">" . wfMsg( 'printableversion' ) . '</a>';
586 if ( $wgOut->isSyndicated() ) {
587 foreach ( $wgOut->getSyndicationLinks() as $format => $link ) {
588 $feedurl = htmlspecialchars( $link );
589 $s[] = "<a href=\"$feedurl\" rel=\"alternate\" type=\"application/{$format}+xml\""
590 . " class=\"feedlink\">" . wfMsgHtml( "feed-$format" ) . "</a>";
593 return $wgLang->pipeList( $s );
596 function getQuickbarCompensator( $rows = 1 ) {
597 return "<td width='152' rowspan='{$rows}'> </td>";
600 function editThisPage() {
603 if ( !$wgOut->isArticleRelated() ) {
604 $s = wfMsg( 'protectedpage' );
606 if ( $this->getSkin()->getTitle()->quickUserCan( 'edit' ) && $this->getSkin()->getTitle()->exists() ) {
607 $t = wfMsg( 'editthispage' );
608 } elseif ( $this->getSkin()->getTitle()->quickUserCan( 'create' ) && !$this->getSkin()->getTitle()->exists() ) {
609 $t = wfMsg( 'create-this-page' );
611 $t = wfMsg( 'viewsource' );
615 $this->getSkin()->getTitle(),
618 $this->getSkin()->editUrlOptions(),
619 array( 'known', 'noclasses' )
626 function deleteThisPage() {
627 global $wgUser, $wgRequest;
629 $diff = $wgRequest->getVal( 'diff' );
631 if ( $this->getSkin()->getTitle()->getArticleId() && ( !$diff ) && $wgUser->isAllowed( 'delete' ) ) {
632 $t = wfMsg( 'deletethispage' );
635 $this->getSkin()->getTitle(),
638 array( 'action' => 'delete' ),
639 array( 'known', 'noclasses' )
648 function protectThisPage() {
649 global $wgUser, $wgRequest;
651 $diff = $wgRequest->getVal( 'diff' );
653 if ( $this->getSkin()->getTitle()->getArticleId() && ( ! $diff ) && $wgUser->isAllowed( 'protect' ) ) {
654 if ( $this->getSkin()->getTitle()->isProtected() ) {
655 $text = wfMsg( 'unprotectthispage' );
656 $query = array( 'action' => 'unprotect' );
658 $text = wfMsg( 'protectthispage' );
659 $query = array( 'action' => 'protect' );
663 $this->getSkin()->getTitle(),
667 array( 'known', 'noclasses' )
676 function watchThisPage() {
677 global $wgOut, $wgUser;
678 ++
$this->mWatchLinkNum
;
681 $title = $this->getSkin()->getTitle();
683 if ( $wgOut->isArticleRelated() ) {
684 if ( $title->userIsWatching() ) {
685 $text = wfMsg( 'unwatchthispage' );
687 'action' => 'unwatch',
688 'token' => UnwatchAction
::getUnwatchToken( $title, $wgUser ),
690 $id = 'mw-unwatch-link' . $this->mWatchLinkNum
;
692 $text = wfMsg( 'watchthispage' );
695 'token' => WatchAction
::getWatchToken( $title, $wgUser ),
697 $id = 'mw-watch-link' . $this->mWatchLinkNum
;
703 array( 'id' => $id ),
705 array( 'known', 'noclasses' )
708 $s = wfMsg( 'notanarticle' );
714 function moveThisPage() {
715 if ( $this->getSkin()->getTitle()->quickUserCan( 'move' ) ) {
717 SpecialPage
::getTitleFor( 'Movepage' ),
718 wfMsg( 'movethispage' ),
720 array( 'target' => $this->getSkin()->getTitle()->getPrefixedDBkey() ),
721 array( 'known', 'noclasses' )
724 // no message if page is protected - would be redundant
729 function historyLink() {
731 $this->getSkin()->getTitle(),
732 wfMsgHtml( 'history' ),
733 array( 'rel' => 'archives' ),
734 array( 'action' => 'history' )
738 function whatLinksHere() {
740 SpecialPage
::getTitleFor( 'Whatlinkshere', $this->getSkin()->getTitle()->getPrefixedDBkey() ),
741 wfMsgHtml( 'whatlinkshere' ),
744 array( 'known', 'noclasses' )
748 function userContribsLink() {
750 SpecialPage
::getTitleFor( 'Contributions', $this->getSkin()->getTitle()->getDBkey() ),
751 wfMsgHtml( 'contributions' ),
754 array( 'known', 'noclasses' )
758 function emailUserLink() {
760 SpecialPage
::getTitleFor( 'Emailuser', $this->getSkin()->getTitle()->getDBkey() ),
761 wfMsg( 'emailuser' ),
764 array( 'known', 'noclasses' )
768 function watchPageLinksLink() {
771 if ( !$wgOut->isArticleRelated() ) {
772 return '(' . wfMsg( 'notanarticle' ) . ')';
775 SpecialPage
::getTitleFor( 'Recentchangeslinked', $this->getSkin()->getTitle()->getPrefixedDBkey() ),
776 wfMsg( 'recentchangeslinked-toolbox' ),
779 array( 'known', 'noclasses' )
784 function trackbackLink() {
785 return '<a href="' . $this->getSkin()->getTitle()->trackbackURL() . '">'
786 . wfMsg( 'trackbacklink' ) . '</a>';
789 function talkLink() {
790 if ( NS_SPECIAL
== $this->getSkin()->getTitle()->getNamespace() ) {
791 # No discussion links for special pages
795 $linkOptions = array();
797 if ( $this->getSkin()->getTitle()->isTalkPage() ) {
798 $link = $this->getSkin()->getTitle()->getSubjectPage();
799 switch( $link->getNamespace() ) {
801 $text = wfMsg( 'articlepage' );
804 $text = wfMsg( 'userpage' );
807 $text = wfMsg( 'projectpage' );
810 $text = wfMsg( 'imagepage' );
811 # Make link known if image exists, even if the desc. page doesn't.
812 if ( wfFindFile( $link ) )
813 $linkOptions[] = 'known';
816 $text = wfMsg( 'mediawikipage' );
819 $text = wfMsg( 'templatepage' );
822 $text = wfMsg( 'viewhelppage' );
825 $text = wfMsg( 'categorypage' );
828 $text = wfMsg( 'articlepage' );
831 $link = $this->getSkin()->getTitle()->getTalkPage();
832 $text = wfMsg( 'talkpage' );
835 $s = Linker
::link( $link, $text, array(), array(), $linkOptions );
840 function commentLink() {
843 if ( $this->getSkin()->getTitle()->getNamespace() == NS_SPECIAL
) {
847 # __NEWSECTIONLINK___ changes behaviour here
848 # If it is present, the link points to this page, otherwise
849 # it points to the talk page
850 if ( $this->getSkin()->getTitle()->isTalkPage() ) {
851 $title = $this->getSkin()->getTitle();
852 } elseif ( $wgOut->showNewSectionLink() ) {
853 $title = $this->getSkin()->getTitle();
855 $title = $this->getSkin()->getTitle()->getTalkPage();
860 wfMsg( 'postcomment' ),
866 array( 'known', 'noclasses' )
870 function getUploadLink() {
871 global $wgUploadNavigationUrl;
873 if ( $wgUploadNavigationUrl ) {
874 # Using an empty class attribute to avoid automatic setting of "external" class
875 return Linker
::makeExternalLink( $wgUploadNavigationUrl, wfMsgHtml( 'upload' ), false, null, array( 'class' => '' ) );
878 SpecialPage
::getTitleFor( 'Upload' ),
879 wfMsgHtml( 'upload' ),
882 array( 'known', 'noclasses' )
887 function nameAndLogin() {
888 global $wgUser, $wgLang, $wgRequest, $wgContLang;
890 $logoutPage = $wgContLang->specialPage( 'Userlogout' );
894 if ( $wgUser->isAnon() ) {
895 if ( $this->getSkin()->showIPinHeader() ) {
896 $name = $wgRequest->getIP();
898 $talkLink = Linker
::link( $wgUser->getTalkPage(),
899 $wgLang->getNsText( NS_TALK
) );
901 $ret .= "$name ($talkLink)";
903 $ret .= wfMsg( 'notloggedin' );
906 $returnTo = $this->getSkin()->getTitle()->getPrefixedDBkey();
909 if ( $logoutPage != $returnTo ) {
910 $query['returnto'] = $returnTo;
913 $loginlink = $wgUser->isAllowed( 'createaccount' )
914 ?
'nav-login-createaccount'
916 $ret .= "\n<br />" . Linker
::link(
917 SpecialPage
::getTitleFor( 'Userlogin' ),
918 wfMsg( $loginlink ), array(), $query
921 $returnTo = $this->getSkin()->getTitle()->getPrefixedDBkey();
922 $talkLink = Linker
::link( $wgUser->getTalkPage(),
923 $wgLang->getNsText( NS_TALK
) );
925 $ret .= Linker
::link( $wgUser->getUserPage(),
926 htmlspecialchars( $wgUser->getName() ) );
927 $ret .= " ($talkLink)<br />";
928 $ret .= $wgLang->pipeList( array(
930 SpecialPage
::getTitleFor( 'Userlogout' ), wfMsg( 'logout' ),
931 array(), array( 'returnto' => $returnTo )
933 Linker
::specialLink( 'Preferences' ),
937 $ret = $wgLang->pipeList( array(
940 Title
::newFromText( wfMsgForContent( 'helppage' ) ),