O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

MediaWiki Administrators' Tutorial Guide

Book Description

Install, manage, and customize your MediaWiki installation

  • Get your MediaWiki site up fast

  • Manage users, special pages, and more

  • Customize and extend your MediaWiki site

  • Create new, attractive MediaWiki themes

  • >

In Detail

Run your own MediaWiki collaborative website with this fast-paced, friendly tutorial, which is full of information and advice for creating powerful MediaWiki sites, and filling them with varied and useful collaborative content. Whether you are creating a public wiki for completely open contributions, a private wiki for collaborating within your work team or group of friends, or even a wiki for personal use, this book will show you all the essential steps. You will see the various ways of organizing and managing content, and preventing collaboration from getting out of control. You'll learn how to incorporate images and other media into your pages, as well as becoming a wiki markup wizard to produce intricately formatted pages with tables, lists, and more. On the technical side, the book covers how to administer users, back up and restore content safely, migrate your installation to another server or database, and even make hacks to the code.

MediaWiki is the free, open-source wiki engine software that powers Wikipedia and many of the other popular wikis across the Web. Written in PHP, it possesses many features that make it the engine of choice for large collaborative wikis: flexible markup, comprehensive user management, multimedia handling, and more.

This book covers the open-source MediaWiki wiki engine from installation and getting started through structuring your collaborative website, advanced formatting, images, multimedia, security, and managing users to backing up, restoring, and migrating your installation and creating new MediWiki templates. The author, Mizanur Rahman, is a Senior Software Engineer at ReliSource Technologies. The book has a fast-paced, friendly tutorial style and uses a fun example to teach all of MediaWiki's key features.

Table of Contents

  1. MediaWiki Administrators' Tutorial Guide
    1. MediaWiki Administrators' Tutorial Guide
    2. Credits
    3. About the Author
    4. About the Reviewers
    5. Preface
      1. What This Book Covers
      2. What You Need for This Book
      3. Conventions
      4. Reader Feedback
      5. Customer Support
        1. Downloading the Example Code for the Book
        2. Errata
        3. Questions
    6. 1. About MediaWiki
      1. Wikipedia
      2. Wiki
        1. When to Use a Wiki
          1. Wiki versus Blog, Forum, and CMS
            1. Is a Wiki Right for You?
      3. Web 2.0
        1. Web 2.0 and Wiki
      4. About MediaWiki
        1. MediaWiki Features
          1. Available Wiki Software
            1. How MediaWiki Fits your Need
      5. Summary
    7. 2. Installing MediaWiki
      1. Prerequisites
      2. Downloading MediaWiki
      3. Upload the MediaWiki Files to your Server
      4. Creating a MySQL Database
      5. Changing Permissions of the Config Folder
      6. The Installation Process
      7. First Look at our Installed Wiki Site
        1. Haunted: Our Sample Site
      8. Summary
    8. 3. Starting MediaWiki
      1. A Closer Look at the MediaWiki Navigation
        1. Navigation
          1. Main Page
          2. Community Portal
          3. Current Events
          4. Recent Changes
          5. Random Page
          6. Search
        2. Toolbox
        3. Login Section
        4. Main Body Section
        5. Footer
      2. Creating New Pages for the Haunted
        1. Creating a New Page Using a Link from an Existing Page
        2. Creating a New Page Using the Search Option
        3. Creating a New Page through the URL
      3. Considerations before Adding a New Page/New Content
      4. Page Name Convention
      5. Formatting Pages
        1. Formatting Text
        2. Adding a Line Break
        3. Section and Subsection Creation
        4. Indentation and Signature
        5. Using HTML Tags for Formatting
        6. Show Things as they Are
      6. Creating Links and References
        1. Creating Internal Links
        2. Creating Interwiki Links
          1. Uses of Interwiki Linking
        3. External Linking
        4. Anchoring
        5. Piped Links
        6. Creating Image Links
      7. Summary
    9. 4. Advanced Formatting
      1. Using Lists with MediaWiki
        1. Unordered List
        2. Ordered List
        3. Definition List
      2. Using Tables
        1. The Syntax
        2. Adding a Caption
        3. Adding Column and Row Headers
        4. Adding Parameters
        5. Nested Tables
      3. File Uploading
        1. Why and How to Log In
        2. Accessing the File Upload Option
        3. What to Upload and What Not
      4. Working with Images
        1. Image Page
        2. Adding an Image as a Thumbnail
        3. Embedding External Images
        4. Creating a Gallery in MediaWiki
        5. Superimposing and Putting Text in Images
          1. An Old Map
      5. Using Audio with MediaWiki
      6. Using Mathematical Formulas
      7. Magic Words
      8. Summary
    10. 5. Organizing Content
      1. Necessity of Organizing Content
      2. MediaWiki Content Organizing Features
        1. Namespaces
          1. Creating New Pages in a Namespace
        2. Category
          1. Creating a Category
          2. Putting a Page into a Category
          3. Creating Subcategories
          4. How to View the Category List
          5. Using Sort Keys to Sort Category Listings
        3. Template
          1. Creating our First Template
          2. Parameterizing Templates
          3. Named versus Numbered Parameters
        4. Section
          1. Comparison between Sections and Separate Pages
          2. Creating a Table of Contents Using Sections
        5. Redirection
        6. An Alternative for Namespaces
      3. Moving a Page
        1. How to Make a Move
        2. Undo a Move
        3. Swapping Two Pages
      4. Special Pages
        1. All Pages
        2. Categories
        3. File List
        4. Popular Pages
        5. Create an Account or Login
        6. Preferences
        7. My Watchlist
        8. User List
        9. List of Blocked IP Addresses and Usernames
        10. Export Pages
      5. Summary
    11. 6. MediaWiki in a Multi-User Environment
      1. Disadvantages of Completely Open Systems
      2. Advantages of User Accounts
      3. Setting Up User Accounts
      4. Customizing User Accounts
        1. User Profile
        2. Skin
        3. Files, Date Format, and Time Zone Setup
        4. Editing
        5. Other Preferences
      5. Finding Out Who Has Done What and When
      6. What Must be Considered for Multi-User Environments?
        1. Look for Recent Changes before you Change Anything
        2. Watch the Page
        3. Analyzing the Page Difference
        4. Provide Edit Summary when you Change the Page
          1. File Upload Summary
        5. Mark Edit as Minor if Changes are Not Significant
        6. Patrolled Edit
      7. Reverting Changes
      8. Resolving Edit Conflict
      9. Communicating with Other Users
      10. Making a Community Site with Talk Pages
      11. Summary
    12. 7. Administrating MediaWiki
      1. What You Show Know
      2. Access Types
        1. General User
        2. Sysop
        3. Bureaucrat
        4. Bot
      3. Changing User Rights
      4. Granting Permissions to Users
      5. Blocking Users
      6. Protecting a Page
      7. Deleting a Page
      8. Allowing File Uploads
      9. Security Checklist
        1. Stay Up to Date
        2. PHP Recommendations
        3. MySQL Recommendations
      10. Creating Interwiki Links
      11. Summary
    13. 8. Customizing MediaWiki
      1. What We Can Customize
        1. Knowing the File Structure
        2. Understanding the Skin File
        3. Customizing the Layout
          1. Changing the Logo
          2. Changing the Footer
          3. Moving Sections
        4. Customizing the Skin Using CSS
          1. Changing the Background Image
        5. Customizing Using Core Files
          1. Disabling Registrations Using the Skin File
          2. Disabling Registrations Using the Core PHP File
          3. Changing Default Skin for the Site
          4. Disabling the Skin Choosing Option for Users
          5. Custom Navigation Bar
        6. Writing a New Skin
          1. Design the Layout for the New Skin
          2. Creating HTML and Style Properties, and Integrating MediaWiki Skin Code
      2. Summary
    14. 9. Hacking MediaWiki
      1. The File Structure
      2. MediaWiki Hooks
      3. Using Hooks
      4. Extending Wiki Markup
      5. Article Rating: A Cool Hack
      6. Writing a New Special Page
      7. Custom Namespaces
      8. Change the Name of the Wiki
      9. Summary
    15. 10. MediaWiki Maintenance
      1. Deploying MediaWiki
        1. Remove all Test Records from the Database
        2. Back Up the Database
        3. Back Up MediaWiki Files
        4. Re-Create Database, User, and Permissions on the New Server
        5. Import Database Backup
        6. Import MediaWiki Files
        7. Change the Configuration File
        8. Test New Site
      2. As your Site Grows
        1. Squid Caching
      3. Maintaining MediaWiki
      4. Upgrading MediaWiki
      5. Summary
    16. 11. Cool Hacks
      1. Calendar
      2. Who is Online
      3. YouTube
      4. Multi-Upload
      5. Category Cloud
      6. Google Maps
      7. Amazon Ads
      8. Summary