post your comment   print   send to a friend
Rate:  87% | Views: 2020
Question categories:  MediaWiki

How do i a table of contents to a page within my mediawiki based website?

Answer by: George Kaloyanov, Aplus.Net Knowledge Base Support

A Table of Contents is added automatically to a page once you have created more than three headers on it. An exception to this rule is the Main Page which by default is not supposed to include a Table of Contents.

However, you can also create a Table of Contents on a page with less than four headers. Here is how to do this:

  1. Go to: http://yourdomain.com/mwiki/index.php?title=page_I_wish_to _edit. Please replace yourdomain.com with your actual hosted domain name and page_I_wish_to_edit with the actual title of the page you are going to edit.
  2. Click the Create an account or login button located at the top right corner of the Main Page.
  3. Enter your MediaWiki Administrator’s username and password in the respective fields and click the Log in button.
  4. Click the edit button from the top navigation bar.
    1. Type __FORCETOC__ (there are two underscores before and after the word!) to place the Table of Contents before the first section header.
    2. Type __TOC__ (there are two underscores before and after the word!) to place the Table of Contents at the exact position of this code (__TOC__).
  5. Click Save Page.

If you do not want to have a Table of Contents (even on a page with more than three headers), you should write __NOTOC__ (there are two underscores before and after the word!) in the edit box.

Related links:

What is MediaWiki?

How do I install the MediaWiki software using the Aplus.Net Control Panel?

I have already installed the MediaWiki software. How do I create a website using the MediaWiki software?

 How do I add a new page to my MediaWiki based website?

How can I edit the contents of an existing page within my MediaWiki based website?

How do I create additional users with editors’ rights for my MediaWiki based website?

How do I customize the look and feel of my MediaWiki based website?

How do I change the logo of my MediaWiki based website?

Customer Feedback
Rate:  87% | Views: 2020 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Web Page Design | Increase Website Traffic    Back to serch results
Browse the Base
Knowledge Base
Web Design
  Do It Yourself
    MediaWiki
Messages
 

Blogging at Aplus.Net

Don't forget to check out our blog ! Keep up to date at Aplus.Net.

Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. What is MediaWiki?
 
2. I have already installed the MediaWiki software. How can I create a website using MediaWiki?
 
3. How do I install the MediaWiki software using the Aplus.Net Control Panel?
 
4. How do I customize the look and feel of my MediaWiki based website?
 
5. How do I create additional users with editors' rights for my MediaWiki based website?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest