How to Create Headings, Tables, Lists and Watchlist in MediaWiki
As you might already know, MediaWiki is an open source software, which powers one of the most famous website, Wikipedia. So if you want to build a website similar to Wikipedia, and you are just starting out with MediaWiki, this tutorial might be very handy for you. In our other MediaWiki tutorial, we have covered the basics of creating and editing pages, but in this guide I will show you how to work with heading, tables, lists and watchlist to your pages.
How to Create Headings, Tables, and Lists
Headings are used to creating tables of content for wiki pages. You can hide the table of content on a wiki page if it is in your way. Tables of content automatically appear on pages that use 4 or more headings. Clicking an item in the table of content will take you to that section of the wiki page. If you use headings on your wiki page you can edit the wiki page by section making it simpler to edit content on a large page.
To create a first level heading type = text =, for a second level heading type = = text = =. Each of them on different lines and you can create additional headings for the same level using the same rule.
Heading Levels are going up to 6. You may continue deeper. Items will appear in the table of contents correctly, but the heading text on the wiki page look the same for levels 6 and higher. Level 19 text will be the same size as level 7.
You can disable the table of content on your wiki page by typing the following anywhere on the page: _ _NOTOC__. You can force the table of content to appear on your page even if you have less than 4 headings by typing the following anywhere on the page: __FORCETOC__.
You may customize where the table of content appear on the page by typing the following where you want the table of content to appear: __TOC__. This will override __NOTOC__. To disable the section edit links that allow you to edit one part of the page at a time, type the following anywhere on the page: __NOEDITSECTION__.
There are multiple types of wiki syntax lists:
Bulleted lists are also known as HTML unordered lists where each item on the list has a dot in front of it. Each item in the list will have a number of asterisks (*) at the beginning of the line followed by one space. A first level bullet item will have one asterisk, a second level will have two and so on.
Numbered lists also are known as HTML ordered lists where each item on the list has a number in front of it. Each item in the list will have a number of hash marks (#) also known as an octothorp, number sign or pound sign at the beginning of the line followed by one space. A first level numbered item will have one hash mark, a second level will have two and so on.
Mixed lists using both bullets and numbers in front of the items in the list. Mixing the two types of lists is done by combining the symbols.
For example, if you would like a first level numbered item to start the line off with a hash mark. If you would then like a second level bulleted item underneath it start the line with a hash mark (since the parent, the first level item is a numbered item), then an asterisk. If then you would like to add a third level numbered item repeat the process. Since the first level parent item is a numbered one, start the line with a hash mark. Since the second level parent item is a bullet, make the next character an asterisk. And now, add the symbol for the type of item you would like at the third level a hash mark or a bullet. That comes out to #*# or #** for the third level item. Later on, under different parent items, you can switch your pattern.
Definition lists commonly used to list terms with their explanations. The term is bold and on a new line while the explanation is indented and printed in a regular font.
A definition consists of two parts: definendum (the term to be defined) and definends (the explanation of the term). The syntax for a definition looks like this: ; definendum in a line and in another one : definends. For example ; term : explanation. You may include multiple explanations for a term.
Line breaks inside lists
If you would like to specify where lines will break, rather than letting words wrap on their own. You can do so by adding an <br /> where you would like a new line to start
Indenting list items
You can indent a list item or any text, but putting one or more colons in front of it. For one level write : in front of a sentence, for two level indent write :: in front of a sentence and so on.
How to delete a wiki page and all about watchlist
To delete a wiki page, navigate to the wiki page and click on the delete tab at the top of the page. If you do not see a delete page, then you have navigated to a page which you are not permitted to change. After clicking on the delete tab you may choose a reason from a drop-down menu and you can also write any other additional reason for deleting the specific page and then click delete page and the page is deleted.
Once you find a page you are interested in, you can use MediaWiki’s watchlist feature to keep tabs on it. To watch a page click on the watch tab at the top of the page. This will add it to your watchlist.
Once you have done that, the watch tab is replaced with an unwatch tab. If you click on unwatch, the page will be removed from your watchlist. To view pages with changes on your watchlist click on my watchlist. Here you will see a list of pages that have changed since the last time you were here.
There are two more ways to edit your watchlist. First, there is the raw edit. Here you can add and remove pages by typing out their names or removing them from the list. There is also view and edit watchlist, where you can select the pages to remove from your watchlist, then click remove titles.
You can also log into the account preferences that relate to watchlists. You can edit your account preferences here, by clicking on my preferences.
At the bottom of this page, you will find the email preferences. The second one is for your watchlist. Checking this will enable emails. You will get an email every time a page on your watchlist changes. Also, you will want to double check that your account preferences include a confirmed email address.
In the watchlist tab on the preferences page, you have several more options for customizing your watchlist notifications. The number of days’ worth of changes that will show up on your watchlist page.
Hope, this guide was useful, and now you are expert in working with headings, tables and lists on your MediaWiki website. If you don’t have a website yet, and looking for a reliable host, I highly recommend Arvixe for hosting your MediaWiki site.
If have any questions regarding MediaWiki or this tutorial, feel free to post a comment below.