Jump to content

MediaWiki: Difference between revisions

From Bonfire Star Wiki
Phidao (talk | contribs)
Phidao (talk | contribs)
Line 9: Line 9:
Configuration set is.  
Configuration set is.  


<syntaxhightlight lang=bash>
<syntaxhighlight lang=bash>
$wgMaxCredits = 1;
$wgMaxCredits = 1;
</syntaxhighlight>
</syntaxhighlight>

Revision as of 19:38, 22 November 2025

Introduction

This wiki is powered by MediaWiki. You can see that logo on the bottom right of the screen. This is the framework that spun off from Wikipedia. It's a powerful tool that allows users to edit and create pages quickly without having to deal with HTML. As someone who works with HTML as a job, that knowing HTML doesn't mean it is the most efficient way to get content onto a web page. This MediaWiki is a fast way to get content on a web page.

Credit

I have credit enabled. On the bottom left of every page, it will list the date the last time the page was edited and it will list the user who made that edit.

Configuration set is.

$wgMaxCredits = 1;

Extensions

Base MediaWiki is very feature rich. Extensions that were already included but just needed to be enabled were citations (with Cite), syntax highlighting (with SyntaxHighlight), and a fancier editor with quick preview support (with WikiEditor).

Extensions that I used which had to be installed were breadcrumbs, the kind that marks where you were (with JSBreadCrumbs).

Hidden

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 can 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 Hidden:Page_Name replacing Page_Name with the name of your page, and save it.

Code added to the LocalSettings.php was the following:

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;

Extensions