Help hurricane victims by donating to the American Red Cross.

Mediawiki

From Ollie's Web Site

Contents

Mediawiki stuff

Latest version

10/7/05 installed 1.5.0. Moved db password stuff outside web root. Special:Version Click here for current version.

Special:Specialpages lists a lot of the special pages available.

User Rights

Describes how to] set user rights/privileges in v. 1.5.

Restricting New Users (1.5 upwards)

# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;

Note: New users will still be able to be created by sysops, in the following manner:

  1. Go to [[Special:Userlogin]], when logged in as a sysop.
  2. Click on "Create an account" to get to the account creation form.
  3. Enter a username and an email address, and click the "by email" button.
  4. The account will be created with a random password which is then emailed to the given address.

It may be appropriate to edit the text displayed when a non-user attempts to log in. This can be done at [[MediaWiki:Nosuchuser]], when logged in as a sysop. Use plain text without any special formatting, as the formatting is ignored and the text is literally rendered.

To prevent even sysops from creating accounts:

# Prevent new user registrations by anyone
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = false;

Site-wide css

Add your site-wide css modifications to Mediawiki:Monobook.css.

Categories

Radical concept: read the manual.

  • Categorize and article by inserting [[Category:CatName]].
  • Categorize all categories into Category:Top Level to get a nice, alphabetized clickable list of categories (use [[:Category:Top Level]]) to get Category:Top Level.

Skins

  • changing to custom skins eludes me. So far I have downloaded a couple of .css files and stored them, per instructions in skins/myskin/myskin.css. Get a really messed up page, as if no css.

Nav Bar

  • change nav bar by editing MediaWiki:Sidebar - each line is a line in the navbar. Go to http://www.gacheson.org/index.php/MediaWiki:Sidebar for gillian's wiki.
    • the first value is the page that contains the url to go to when the navbar entry is clicked.
    • the second value is the page that contains the text that is displayed in the navbar.
  • so, for example, the following entry controls the photography section of the navbar:
* Photography
** OlliePhoto-url|OlliePhoto
** photo-url|photo
** LumLand-url|LumLand

To edit the values in these pages, edit MediaWiki:OlliePhoto-url, for example.

Website

Images

  • Images
    • upload via Special:Upload.
    • link via [[Image:file.ext|placement-option|sizepx|alternative text]] where
      • placement-option = left, right, center, none.

Config

  • /includes/DefaultSettings.php contains all the variables available for use in LocalSettings.php.

Sitenotice

  • Sitenotice (9/18/05)
    • Insert $wgSiteNotice = ":sitenotice" into LocalSettings.php
    • Put appropriate notice text into Mediawiki:Sitenotice page.
    • Text appears on top line of every page.

about MediaWiki

Please see documentation on customizing the interface, the User's Guide for usage and configuration help and editing details may be found at the MediaWiki site. Finally, there's the mediawiki mailing list archives.


Ollie 13:19, 11 September 2005 (EDT)