Sidebar edit

From emboxit
Jump to: navigation, search

Customize the sidebar

As an administrator, edit the wiki page "MediaWiki:Sidebar". Basically, begin typing MediaWiki:Sidebar in the search field and then edit and save the page.

Example sidebar code:

* navigation
** mainpage|mainpage
** Special:Recentchanges|Recent changes
* new heading
** portal-url|portal
** http://www.mediawiki.org|MediaWiki home

Headings

The navigation bar can be split into sections, each with a heading of its own. The heading for each section is taken from the first-level list element ("navigation" and "new heading" in the example above).

If this text corresponds to the name of an interface message (an existing page of that title in the MediaWiki namespace), then the text of that page is used as a label; otherwise, the header title is used as-is.

Links

Second-level list elements are links to internal wiki pages or to sites outside the wiki.

Example: This shows the format for the sidebar for this wiki. The links under "using wikis" are for pages within this wiki, and the links under "links" link to sites outside this wiki.

* using wikis
** How to|How to/Quick Tips
** FAQs User|FAQs (User)
** FAQs Admin|FAQs (Admin/Inst)

* links
** http://www.otal.umd.edu/wiki |Wiki Request
** http://www.otal.umd.edu | OTAL
** http://www.oit.umd.edu | OIT
** http://www.umd.edu | UMD

Order of elements

By default, the sidebar consists of elements in this order: navigation, search, toolbox, languages. The order can be changed by adding special keywords (SEARCH, TOOLBOX and LANGUAGES) to MediaWiki:Sidebar using the heading syntax. For example, the following code moves the search box to the top of the sidebar:

* SEARCH

* navigation
** mainpage|mainpage
** Special:Recentchanges|Recent changes
* new heading
** portal-url|portal
** http://www.mediawiki.org|MediaWiki home