We learned back in Chapter 7 that namespaces are used to organize content that have a similar purpose. MediaWiki provides us with 18 built-in namespaces. As we determined that we needed an additional namespace for our tutorials, we created Tutorials and Tutorials_Talk.
However, now that our skill set with MediaWiki has grown, let's enhance the functionality of the Tutorials namespace. We can give this namespace the ability to have subpages created for all tutorials so if we want to organize a tutorial by operating system, we can use the Subpage feature. Also, we will make this namespace searchable because, by default only pages in certain namespaces are searchable. Others need to be selected from the Search page. Also, this hack allows content in the Tutorials namespace to appear when the random page feature link is clicked.
So, if you are ready, let's enhance the namespace called Tutorial.
1. Open the
LocatSettings.php
file with either the file...