Jump to content

MediaWiki: Difference between revisions

From Bonfire Star Wiki
Phidao (talk | contribs)
Phidao (talk | contribs)
No edit summary
Line 54: Line 54:


== Installed or Configured ==  
== Installed or Configured ==  
Extensions installed include [[JSBreadCrumbs]]


=== Hidden ===
=== Hidden ===
Line 69: Line 71:
$wgNamespacesToBeSearchedDefault[NS_HIDDEN] = false;
$wgNamespacesToBeSearchedDefault[NS_HIDDEN] = false;
</syntaxhighlight>
</syntaxhighlight>
=== Breadcrumbs ===
I've installed an extension that marks the past few pages you've been to in a way to easily go back to. The trail is on top of the page below the title and page & discussion tabs. The extension that allows this is called JSBreadCrumbs<ref>[https://www.mediawiki.org/wiki/Extension:JSBreadCrumbs JSBreadCrumbs]</ref>. It is currently using the default configuration of listing the last 5 pages visited.


== References ==
== References ==

Revision as of 13:09, 24 November 2025

Introduction

This wiki is powered by MediaWiki[1]. 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.

Organization

One of the reason I wanted to create my own instance of MediaWiki is to decide on my own best practices for me and my team. Part of that is deciding whether I want to adapt to Wikipedia's philosophy of no external links in the main body of the wiki. That sounds like a noble goal, not one that is true for my team's wiki, one that I will strive for here. I also want to strive for no orphaned pages for whatever I write--every page can be traversed to from this page.

Native Features

These are features that come with the installation.

Discussion

Every page has a discussion section below the header. If the link is red, that means a page hasn't been started, but if there is a topic worth discussion, get it there.

Use this space if you have notes that you don't want on the page, or if there is an edit battle and you want to slow down and try to come to a consensus.

Enabled or Modified

These are extensions and features that comes pre-installed but disabled and had to be enabled. This includes Syntax Highlighting for code blocks.

Citations

Citations are enabled with the Cite[2] extension.

If you want to add citation at the end of a note, you can use the following line:

<ref>[link_url link name]</ref>

Towards the bottom of the page, you can add a == References == section and add the following near the bottom.

<references />

This is collect all your references throughout the body of the page and present them in this section.

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;

WikiEditor

WikiEditor[3] is a fancier editor with quick preview support.

Installed or Configured

Extensions installed include 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;

References