Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
MediaWiki
SPECIAL OFFER: Upgrade this ebook with O’Reilly
A Note Regarding Supplemental Files
Preface
Who Should Read This Book?
Roadmap
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
I. Getting Started
1. A First Look
What’s MediaWiki?
A Typical Day on a MediaWiki Site
When to Use MediaWiki
When Not to Use MediaWiki
Additional Resources
2. Basic Use
Quick Tour of a Wiki Page
Articles
Searching for Articles
Browsing by Categories
Namespaces
User Pages
Talk Pages
Links
History
Editing Primer
Wikitext
Edit, Preview, Comment, Save
Menu Reference
Navigation Menu
Toolbox Menu
Language Menu
User Options Menu
Top Tabs
Footer
Getting Help
3. Your User Identity
Creating an Account
Logging In and Out
Remember My Login on This Computer
User Pages
User Talk Pages
User Toolbox
Signatures
Watchlists
Viewing Your Watchlist
Email Notifications
Other Watchlist Preferences
Changing Your Watchlist
Tracking Your Contributions
Preferences
User Profile Preferences
Change Password
Email Preferences
Skin Preferences
Uploaded Files Preferences
Date and Time Preferences
Editing Preferences
Recent Changes Preferences
Watchlist Preferences
Search Preferences
Miscellaneous Preferences
User CSS and JavaScript
II. Writing and Editing Articles
4. Editing Articles
Getting Started with Editing
The Edit Box
The Toolbar
Summary Comment
Previewing and Saving
Creating an Article
Paragraphs and Headings
Table of Contents
Indenting
Typestyles and Fonts
Links (Briefly)
Images and Uploaded Files
Working with Uploads
Uploading a File
Embedding an Uploaded Image
Image Pages
Linking to an Uploaded File
External Images
Lists
Bulleted Lists
Numbered Lists
Definition Lists
Combining List Types
Tables
Simple Table Syntax
Table Headings
Table Captions
Table Styles
Sortable Tables
Mathematical Formulas
Escaping Wikitext with <nowiki>
Conflicts
Beyond the Basics
5. Links
Internal Links
Links to Nonexistent Articles
Alternate Text
The Plural Trick
Links to Other Namespaces
Links to Category Pages
Links to Image Pages
Anchors
External Links
The Plain Method
The Fancy Method
The Reference Method
Supported Protocols
External Links to Yourself
Interwiki Links
Interlanguage Links
Language Menu Links
Interlanguage Links in Articles
Graphical Links
Graphical Links with Spans
Graphical Link Extensions
File Links
Linking Tips
Link Related Terms
Link More Than Once
Avoid Adjacent Links
Include a “See Also” Section
6. Organizing Articles
Categories
Adding an Article to a Category
Listing All Members of a Category
Creating a Category
Creating a Category Page
Subcategories
Renaming a Category
Deleting a Category
Hidden Categories
Linking to a Category Page
Controlling Sorting on Category Pages
Namespaces
Talk Namespaces
Adding an Article to a Namespace
Listing All Articles in a Namespace
Creating a Namespace
Subpages
Limitations of Subpages
Redirects
Common Uses of Redirects
Modifying a Redirect
Redirecting to a Redirect
Redirects and Categories
Disambiguation Pages
Renaming Articles
Double Redirects from Multiple Moves
Undoing a Rename
Deleting Articles
Before You Delete
Undeleting
7. Advanced Article Construction
Maintaining a Consistent Wiki
Variables
Server Variables
Article Name Variables
Namespace Variables
Templates and Transclusion
Template Parameters
Nesting Templates
Default Values for Parameters
Conditional Transclusion
Categorizing Templates
Transcluding Any Article
Transcluding Subpages
Logical Parser Functions
Dynamic Page List
Basic DPL Lists
Intermediate DPL: Custom Formats
Advanced DPL: Metadata
Recipes for Refactoring
Recipe 1: Promote and Link
Recipe 2: Transclude
Recipe 3: Share Structure with Parameters
Recipe 4: Share Structure with Subpages
Recipe 5: Generate Lists of Links
Recipe 6: Split and Generate
8. Special Pages
Maintenance Reports
Broken Redirects
Dead-End Pages
Double Redirects
Long Pages
Oldest Pages
Orphaned Pages
Pages with the Fewest Revisions
Pages Without Language Links
Protected Pages
Protected Titles
Short Pages
Uncategorized Categories
Uncategorized Files
Uncategorized Pages
Uncategorized Templates
Unused Categories
Unused Files
Unused Templates
Unwatched Pages
Wanted Pages
Wanted Categories
List of Pages
All Pages
Categories
Disambiguation Pages
List Redirects
Prefix Index
Login/Sign Up
Log In/Create Account
Log Out
Users and Rights
Block User
List of Blocked IP Addresses and Usernames
Preferences
User Contributions
User Group Rights
User List
User Rights Management
Your User Page
Your User Talk Page
Email This User
Recent Changes and Logs
Gallery of New Files
Logs
My Watchlist
New Pages
Recent Changes
Related Changes
Media Reports and Uploads
File List
File Path
MIME Search
Search for Duplicate Files
Upload File
Wiki Data and Tools
Statistics
System Messages
Version
Redirects and Random Pages
Random Page
Random Redirect
Search
High-Use Pages
Most Linked-To Categories
Most Linked-To Files
Most Linked-To Pages
Most Linked-To Templates
Pages with the Most Categories
Pages with the Most Revisions
Page Tools
Export Pages
Import Pages
View Deleted Pages
What Links Here
Other Special Pages
Book Sources
CategoryTree
Expand Templates
External Links
Move
Popular Pages
Special Pages Grouped by Task
Finding Content of Interest
Writing
People
Getting the Big Picture
Administration
III. Running and Administering MediaWiki
9. Installing MediaWiki
Before You Begin
Software Prerequisites
Hosting Prerequisites
Early Decisions
Installing the Prerequisites
Linux Prerequisites
Microsoft Windows Prerequisites
Install Apache on Windows
Install MySQL on Windows
Install PHP
Apple Macintosh OS X Prerequisites
Enable Apache on Macintosh
Enable PHP on Macintosh
Install MySQL on Macintosh
Installing MediaWiki
If You Have Administrative Access
Shared Server or No Administrative Access
The Web Installer
Site configuration
Email setup
Database setup
Final installation steps
Important Optional Features
Enabling File Uploads
Make the images directory writable
Set $wgEnableUploads
Enabling Email
Mail software
LocalSettings.php mail settings
Installing Help Pages
Enabling Math Mode
Enabling Short URLs
If you have administrative access
Shared server or no administrative access
A Tour of MediaWiki’s Files
Important Files
Less Important Files
Files You Can Ignore
Maintaining the Code
A Minimal Solution
Maintenance with Version Control
Upgrading MediaWiki
A Simple Release Process
Protecting the Database Password in Subversion
10. Practical Wiki Design
Adopting MediaWiki
Planning
Initial Structure
Ownership
Users and Access Control
Access to the wiki
Access control lists
Motivation
Establishing Standards
Helpful Templates
Content Standards
Governance
Choosing Sysops
Establishing Processes
Other User Groups
Integrating with Other Websites
Interwiki Links
RSS and Atom Feeds
Other Integration
11. Configuring MediaWiki: An Overview
Administrative Roles
Advanced Page Constructs
Special Pages for Sysops and Bureaucrats
System Messages
Locating System Messages
Viewing all system messages via the wiki
Viewing all system messages via source code
Viewing only changed system messages
Changing a System Message
System Messages with Parameters
Displaying a System Message Within Another Wiki Article
Creating Custom System Messages
Cascading Stylesheets
JavaScript
Configuration Settings
Extensions
Skinning
SQL Programming
Maintenance Scripts
12. Controlling Wiki Features
Users
Creating Users
Renaming Users
Deleting and Blocking Users
User Rights and Permissions
Rights
User Groups
Assigning rights to groups
Requiring logins
Requiring logins except for talk pages
Creating a user group
Assigning Users to User Groups
Assignment permission
Assignment permissions for everyone
User Rights Extensions
Article Content
Size Limits
URL Protocols for External Links
External Images
Math Mode
Disambiguation
HTML Header
Configuring the Editing of Articles
The Edit Page
New article message
Adding buttons to the edit page
Edit box
Copyright notice
Submit buttons
Editing a New Article
Edit Links for Sections
The New Section Tab
Edit Conflicts
Maintaining Articles
Deleting Articles
Protecting Articles
Protecting titles
Patrolling Articles
Who can patrol?
Patrol log
Undo and Rollback
Search and Replace
Configuring Namespaces
Creating Namespaces
Namespace Search
Namespace Subpages
Namespace Security
File Uploads
File Types
Maximum File Size
File Location
Virus Scanning
Search
AJAX Search
Search Database Tuning
Special Page List
Database Configuration
Email Configuration
JavaScript Configuration
Logging and Debugging
Where to Log?
Logging Database Queries
Detailed Exceptions
13. Changing Appearances
The Basics
Wiki Name
Logos and Icons
Home Page
Messages for Every Page
Login Messages
Article Content
Preformatted Text Boxes
Menus
General Changes
Changing the Navigation Menu
Changing the Toolbox Menu
Changing the User Options Menu
Changing the Top Tabs
Changing the Footer Menu
Search Box
Tables of Contents
External Link Appearance
Page Credits
Overall Look and Feel
Default Skin
CSS for All Pages
CSS for Particular Pages
CSS for Printing
International Support
14. Installing Extensions
Obtaining Extensions
Viewing Extensions on a Wiki
The MediaWiki Catalog of Extensions
Installing an Extension
Installation Example
Recommended Extensions
Extensions for Readers
PDF Export
CategoryTree
Lucene search
Extensions for Writers
Cite
ImageMap
RSS with WikiArticleFeeds
Extensions for Advanced Authors and Programmers
Dynamic Page List
SyntaxHighlight GeSHi
Parser function extensions
ExpandTemplates
Web forms in wiki articles
Extensions for Administrators
LDAP Authentication
Semantic MediaWiki
15. Creating Extensions
Overview of Extension Types
Follow the Standards
The Three Extension Files
Hooks and Callbacks
Giving Credit
Debugging Extensions
Creating a Variable
Creating a Parser Function
Creating a Tag Extension
Multilanguage Tag Extension
Behavior Changes
Creating a Special Page
Starting a Special Page
A Closer Look
A More Interesting Special Page
Useful Tasks for Extension Writers
Rendering Wikitext
Rendering HTML
Getting the Text of an Article
Accessing Query String Parameters
Adding a Toolbox Link
Adding a Preferences Checkbox
Running JavaScript
A JavaScript extension
Disabling the Parser Cache
Creating a Skin
A Simple Skin
Set the Default Skin
Publishing an Extension
Other Extension Topics
Database Access
AJAX Extensions
The MediaWiki API
Finding a MediaWiki Programmer
16. Wiki Administration
Maintenance Scripts
AdminSettings.php
Backups
Source Code Backups
Database Backups
Uploaded File Backups
Upgrades
Read-Only Wiki
Performance and Scaling
Measuring Page Times
PHP Acceleration
Apache and MySQL Performance
Proxy Servers
Scaling the Database
Wiki Families
Security
Vandalism
Common Maintenance Tasks
Uploading Files
Creating and Editing Articles
Deleting Multiple Articles
Setting User Preferences
Resetting Passwords
Creating Interwiki Links
Enabling Interlanguage Link Support
For More Information
Index
About the Author
Colophon
SPECIAL OFFER: Upgrade this ebook with O’Reilly
← Prev
Back
Next →
← Prev
Back
Next →