Difference between revisions of "WikiServer - Configuring the Wiki"

From The TinkerNet Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
To add any of them:
 
To add any of them:
  
* <code>sudo vim /var/www/wiki/LocalSettings.php</code>
+
*<code>sudo vim /var/www/wiki/LocalSettings.php</code>
  
 
==Uploadable File Types==
 
==Uploadable File Types==
Line 27: Line 27:
 
  $wgExternalLinkTarget = '_blank';
 
  $wgExternalLinkTarget = '_blank';
  
== InterWiki Links ==
+
==InterWiki Links==
  
There's more to this...  I'll write it up sometime soonTM
+
There's more to this...  I'll write it up '''sometime soon'''<sup>TM</sup>
  
 
  #########################################
 
  #########################################
Line 42: Line 42:
 
  # $wgGroupPermissions['developer']['interwiki'] = true; // delete the comment indicator # as appropriate
 
  # $wgGroupPermissions['developer']['interwiki'] = true; // delete the comment indicator # as appropriate
  
== There was gonna be a VisualEditor thing here, but wait a month... May be a moot point... ==
+
==There was gonna be a VisualEditor thing here, but wait a month... May be a moot point...==

Revision as of 02:18, 26 July 2020

Little snippets of configuration to add to LocalSettings.php...

To add any of them:

  • sudo vim /var/www/wiki/LocalSettings.php

Uploadable File Types

search for $wgFileExtensions

If you don't find it, you can add it.

on my wiki, it looks like:

#########################################
# Uploadable File Types
#########################################
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'epub', 'ino', 'c', 'cpp', 'h', 'zip', 'gz', 'mp3', 'txt' );

You likely don't want ino, c, cpp, h

Open external links in new window

#########################################
# Open external links in new window.
#########################################

$wgExternalLinkTarget = '_blank';

InterWiki Links

There's more to this... I'll write it up sometime soonTM

#########################################
# InterWiki configuration
#########################################

// To grant sysops permissions to edit interwiki data
$wgGroupPermissions['sysop']['interwiki'] = true;

// To create a new user group that may edit interwiki data
// (bureaucrats can add users to this group)
# $wgGroupPermissions['developer']['interwiki'] = true; // delete the comment indicator # as appropriate

There was gonna be a VisualEditor thing here, but wait a month... May be a moot point...