Jump to content

User:CelebrityCrush/Changelog: Difference between revisions

From We Are Calloway
Created page with "== Hide the Title and Table of Contents on the main page == '''Table of Contents''' Place <code>__NOTOC__</code> anywhere you want on the page to hide its TOC. '''Title''' Supposedly you can hide the page title using <code>DISPLAYTITLE</code> or making CSS modifications, but neither of those worked for me. Instead I used the <code>NoTitle</code> extension. == Allow/Disallow uploads == in MediaWiki version 1.5 and later, the attribute to be set resides in LocalSettin..."
 
mNo edit summary
Line 1: Line 1:
== Extensions ==
Several extensions are bundled with MediaWiki as standard.
Check which extensions are active via the [[Special:Version]] page.
=== Installing extensions ===
Download and move the extracted extension folder to your <code>extensions/</code> directory.
At the end of the LocalSettings.php file, add:
<pre>wfLoadExtension( 'ExtensionName' );</pre>
[https://www.mediawiki.org/wiki/Manual:Extensions source]
== Hide the Title and Table of Contents on the main page ==  
== Hide the Title and Table of Contents on the main page ==  


'''Table of Contents'''
=== Table of Contents ===
Place <code>__NOTOC__</code> anywhere you want on the page to hide its TOC.
Place <code>__NOTOC__</code> anywhere you want on the page to hide its TOC.


'''Title'''
=== Title ===
Supposedly you can hide the page title using <code>DISPLAYTITLE</code> or making CSS modifications, but neither of those worked for me. Instead I used the <code>NoTitle</code> extension.
Supposedly you can hide the page title using <code>DISPLAYTITLE</code> or making CSS modifications, but neither of those worked for me. Instead I used the <code>NoTitle</code> extension.
Download and move the extracted <code>NoTitle</code> folder to your <code>extensions/</code> directory.
Add the following code at the bottom of your LocalSettings.php file:
<pre>wfLoadExtension( 'NoTitle' );
$wgRestrictDisplayTitle = false;</pre>
[https://www.mediawiki.org/wiki/Extension:NoTitle source]


== Allow/Disallow uploads ==
== Allow/Disallow uploads ==
Line 39: Line 61:


== Using Templates ==
== Using Templates ==
I still don't fully get this
I still don't fully get this.

Revision as of 06:53, 28 September 2025

Extensions

Several extensions are bundled with MediaWiki as standard.

Check which extensions are active via the Special:Version page.

Installing extensions

Download and move the extracted extension folder to your extensions/ directory.

At the end of the LocalSettings.php file, add:

wfLoadExtension( 'ExtensionName' );

source

Hide the Title and Table of Contents on the main page

Table of Contents

Place anywhere you want on the page to hide its TOC.

Title

Supposedly you can hide the page title using DISPLAYTITLE or making CSS modifications, but neither of those worked for me. Instead I used the NoTitle extension.

Download and move the extracted NoTitle folder to your extensions/ directory.

Add the following code at the bottom of your LocalSettings.php file:

wfLoadExtension( 'NoTitle' );
$wgRestrictDisplayTitle = false;

source

Allow/Disallow uploads

in MediaWiki version 1.5 and later, the attribute to be set resides in LocalSettings.php and $wgEnableUploads is set as follows:

$wgEnableUploads = true; # Enable uploads

To disable upload functionality, set the attribute to false:

$wgEnableUploads = false; # Disable uploads

source

The logo that appears in the top left of each page is determined by the $wgLogos configuration line in the LocalSettings.php file.

The logo is expected to be 135 × 135 pixels.

Upload an image to your wiki using the normal file uploading interface. Let's say it ends up as /images/4/47/mylogo.png. This allows the logo to be replaced easily, so you may want to protect the page if you use this method.

Then, modify the $wgLogos array in LocalSettings.php. It should look something like:

$wgLogos = [
	'1x' => "{$wgUploadPath}/images/4/47/mylogo.png",
	'icon' => "{$wgScriptPath}/images/4/47/mylogo.png",
];

Replace the paths above as appropriate, depending on where you actually uploaded the images.

source

Using Templates

I still don't fully get this.