global $wgOut, $wgTitle, $oldid, $action, $diff, $wgUser, $wgLang, $wgUseApproval ;
$s = $this->printableLink();
+ if ( wfMsg ( "disclaimers" ) != "-" ) $s .= " | " . $this->makeKnownLink( wfMsg( "disclaimerpage" ), "disclaimers" ) ;
if ( $wgOut->isArticle() ) {
if ( $wgTitle->getNamespace() == Namespace::getImage() ) {
return $s;
}
+
+ function disclaimerLink()
+ {
+ $s = $this->makeKnownLink( wfMsg( "disclaimerpage" ),
+ wfMsg( "disclaimers" ) );
+ return $s;
+ }
+
function editThisPage()
{
global $wgOut, $wgTitle, $oldid, $redirect, $diff;
# NOTE: To turn off "Current Events" in the sidebar,
# set "currentevents" => "-"
+# NOTE: To turn off "Disclaimers" in the title links,
+# set "disclaimers" => "-"
+
# The names of the namespaces can be set here, but the numbers
# are magical, so don't change or move them! The Namespace class
# encapsulates some of the magic-ness.
"mypage" => "My page",
"mytalk" => "My talk",
"currentevents" => "Current events",
+"disclaimers" => "Disclaimers",
+"disclaimerpage" => "$wgMetaNamespace:General_disclaimer",
"errorpagetitle" => "Error",
"returnto" => "Return to $1.",
"fromwikipedia" => "From $wgSitename, the free encyclopedia.",