mediawiki-customization

From IndieWeb
Jump to: navigation, search

This page documents the customizations we've made to MediaWiki for our community.

Contents

extensions

download and install

enable

wfLoadExtension("Cite");
wfLoadExtension("ParserFunctions");

hacks

  • Add 'data', 'time', 'mark', 'a' to the list of allowed HTML tags in includes/Sanitizer.php (search for htmlpairsStatic)

editable customizations

See MediaWiki:Common.css for custom CSS used on this wiki.

configuration

Add these to LocalSettings.php

enable nice urls

$wgScriptPath       = "";
$wgScriptExtension  = ".php";
$wgArticlePath = '/$1';
$wgUsePathInfo = true;
$wgCapitalLinks = false;

user permissions

$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['user']['move'] = true;
$wgGroupPermissions['user']['movefile'] = true;
$wgGroupPermissions['user']['delete'] = true;
$wgGroupPermissions['user']['undelete'] = true;
$wgGroupPermissions['user']['browsearchive'] = true;
$wgGroupPermissions['user']['rollback'] = true;
$wgDefaultUserOptions ['editsection'] = true;
$wgAllowUserSkin = true;
$wgAllowUserCss = true;

copyright

$wgEnableCreativeCommonsRdf = true;
$wgRightsPage = "IndieWebCamp:Copyrights"; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "http://creativecommons.org/publicdomain/zero/1.0/";
$wgRightsText = "a CC0 public domain dedication";
$wgRightsIcon = "https://i.creativecommons.org/p/zero/1.0/88x31.png";
$wgEnableCreativeCommonsRdf = true;

allow more file uploads

$wgFileExtensions[] = 'txt';
$wgFileExtensions[] = 'svg';
$wgFileExtensions[] = 'ai';

others

$wgNoFollowLinks = false;
$wgAllowExternalImages = true;
$wgAllowImageTag = true;
$wgCookieExpiration = 180 * 86400;
$wgSecureLogin = true;
$wgCookieSecure = true;
$wgPingbackEndpoint = 'https://webmention.io/indiewebcamp/xmlrpc';
$wgWebmentionEndpoint = 'https://webmention.io/indiewebcamp/webmention';

See Slso

See also microformats wiki:



Return to Getting Started.

Personal tools
Namespaces
Variants
Actions
Recent & Upcoming
Resources
Toolbox