MediaWiki’s feature set is extremely configurable through the methods we saw in Chapter 11. In this chapter, we’ll configure users, rights, articles, the edit page, namespaces, file uploads, the search engine, and more. There’s no way we can cover every feature, but we’ll explore a good selection of common and useful settings and techniques. (Read Chapter 11 first to learn about configuration in general.)
Remember that all configuration settings, which are set in
LocalSettings.php, are documented on
www.mediawiki.org in the
Manual namespace. Just search for
Manual:$wgLogo). The full
set is documented here: http://www.mediawiki.org/wiki/Manual:Configuration_setting.
As a wiki sysop or administrator, you may want to create, rename, and delete users. We’ll talk about those operations here.
To create a single user, simply create an account at
Special:UserLogin. To create users in batches, try a script such as the
one in Example 12-1. To use it,
create a file of usernames and passwords, where each line consists
of one username, a tab character, and the user’s password. Then,
All users (which must not already exist) will be created in the MediaWiki database with the given passwords. Your AdminSettings.php file (see AdminSettings.php) must be set up for this script to work.
<?php # Run from MediaWiki's "maintenance" ...