Jump to content

MediaWiki: Difference between revisions

From Bonfire Star Wiki
Phidao (talk | contribs)
Phidao (talk | contribs)
 
(8 intermediate revisions by the same user not shown)
Line 19: Line 19:
== Enabled or Modified ==
== Enabled or Modified ==


These are extensions and features that comes pre-installed but disabled and had to be enabled.  
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 ===
Line 49: Line 49:
</syntaxhighlight>
</syntaxhighlight>


=== Syntax Highlight ===
=== Upload ===


SyntaxHightlight_GeSHi<ref>[https://www.mediawiki.org/wiki/Extension:SyntaxHighlight SyntaxHighlight]</ref> allows for a means of adding color to code text.
I have enabled file uploading. The default limit on the file size is 2 MB. I have increased this to 10 MB to allow for uploading AI generated images as well as short video generations.
 
Enable by adding this to LocalSettings.php.
 
<syntaxhighlight lang=bash>
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
</syntaxhighlight>
 
Example markup
 
<pre>
<syntaxhighlight lang=bash>
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
</syntaxhighlight>
</pre>


=== WikiEditor ===
=== WikiEditor ===
Line 73: Line 59:
== Installed or Configured ==  
== Installed or Configured ==  


=== Hidden ===
Extensions installed includes [[JSBreadCrumbs]] to get a trail of where you have been. I've also configured a [[Hidden Namespace]] so you can create pages unlisted from the search bar.
 
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 <code>[[Hidden:Page_Name]]</code> replacing Page_Name with the name of your page, and save it.
 
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>


=== Breadcrumbs ===
== See Also ==


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. The extension that allows this is called JSBreadCrumbs<ref>[https://www.mediawiki.org/wiki/Extension:JSBreadCrumbs JSBreadCrumbs]</ref>
* [[MediaWiki Markup]]


== References ==
== References ==
Line 98: Line 71:


* [https://www.mediawiki.org/wiki/Download MediaWiki Download]
* [https://www.mediawiki.org/wiki/Download MediaWiki Download]
[[Category:MediaWiki]]

Latest revision as of 04:50, 24 December 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;

Upload

I have enabled file uploading. The default limit on the file size is 2 MB. I have increased this to 10 MB to allow for uploading AI generated images as well as short video generations.

WikiEditor

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

Installed or Configured

Extensions installed includes JSBreadCrumbs to get a trail of where you have been. I've also configured a Hidden Namespace so you can create pages unlisted from the search bar.

See Also

References