Sections in MediaWiki are created by creating their headers. You can use the example below and replace Section, Subsection and Sub-Subsection with the names you would like to give to your sections:

==Section=====Subsection=======Sub-subsection====

Here is a preview of how this example will look after the parsing:
image11

In order to add a page to a category in MediaWiki, you need to use the following syntax:

[[Category: Category Name]]

You can add a page to multiple categories.

cat1

The result will be:

cat2

To create the category itself, you can click on it and edit and save it just like any other page in MediaWiki.