Jump to content

Hidden Namespace: Difference between revisions

From Bonfire Star Wiki
Phidao (talk | contribs)
Created page with "== Introduction == Unlisted would probably be a better name, but I implemented a way for pages to not show up in searches. These pages are not inaccessible but can only be accessible with a direct link. To do so, you create a page with the namespace hidden in front of it. Easiest way to do so is go to your user page and add to your page <code>Hidden:Page_Name</code> replacing Page_Name with the name of your page, and save it. Your user page is easy to get to, especi..."
 
Phidao (talk | contribs)
Redirected page to Main Page
Tag: New redirect
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Introduction ==
#REDIRECT[[Main Page]]
 
Unlisted would probably be a better name, but I implemented a way for pages to not show up in searches. These pages are not inaccessible but can only be accessible with a direct link. To do so, you create a page with the namespace hidden in front of it. Easiest way to do so is go to your user page and add to your page <code>[[Hidden:Page_Name]]</code> replacing Page_Name with the name of your page, and save it. Your user page is easy to get to, especially if you made an edit to a page, so if you're concern about people getting to your hidden page through your user page, you can remove the link to your hidden page afterwards.
 
== Configuration ==
 
Code added to the LocalSettings.php was the following:
 
<syntaxhighlight lang=bash>
define("NS_HIDDEN",3000);
define("NS_HIDDEN_TALK",3001);
$wgExtraNamespaces[NS_HIDDEN] = "Hidden";
$wgExtraNamespaces[NS_HIDDEN_TALK] = "Hidden_talk";
$wgNamespacesToBeSearchedDefault[NS_HIDDEN] = false;
$wgNamespacesToBeSearchedDefault[NS_HIDDEN] = false;
</syntaxhighlight>

Latest revision as of 21:55, 20 December 2025

Redirect to: