MediaWiki:Tips and tricks
From Linux How-To Repository
Adding TOC
To add a contents menu to a page that does not have enough headings use this:
__TOC__
or
__FORCETOC__
Deleting Revisions
The slow way is to do it page by page. This is the fast way.
Make a backup as this cannot be undone.
Warning: You will loose your revision history.
To delete old revisions that are needlessly increasing the size of your backup, first navigate to the /maintenance directory. Then, run this:
php deleteOldRevisions.php --delete
The terminal display should show something like this:
Delete Old Revisions Searching for active revisions...done. Searching for inactive revisions...done. 1406 old revisions found. Deleting...done. Searching for active text records in revisions table...done. Searching for active text records in archive table...done. Searching for inactive text records...done. 1398 inactive items found. Deleting...done.
