From Tweeki
Revision as of 18:20, 7 September 2023 by Thai (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

see also Navigation examples

Navigational Sections

You can change the content of these via system messages and control the visibility via the {{#tweekihide:}} parser function and configuration options.

Example: If you want to change the content of the right sidebar edit MediaWiki:tweeki-sidebar-right.

subnav sidebar-
main content
(including firstHeading)


The main navigation on the top of the page. In this demo installation it is hidden for anonymous users. It can scroll with the page or it can be fixed and always visible (configure it via MediaWiki:Tweeki-navbar-class).

It consists of three parts whose contents can be changed via system messages: navbar-brand, navbar-left, and navbar-right


The subnavigation, using Bootstrap's .nav classes.




The left sidebar is empty by default.


The right sidebar contains the edit button and the table of contents by default.


The footer is fully customizable. See Footer Examples for an overview. It's default contents are

  • footer-info („This page was last modified at … by …“, „This page was viewed … times“),
  • footer-places (Privacy policy, About, Disclaimers),
  • footer-custom, and
  • footer-icons (MediaWiki etc.).

This element's content can not be changed directly but it can be hidden on certain pages or for certain users.


footer-info-lastmod, footer-info-viewcount


footer-places-privacy, footer-places-about, footer-places-disclaimer


fully customizable via MediaWiki:Tweeki-footer-custom – Shows a login link by default and is hidden for logged-in users.



Navigational Elements

These are some standard building blocks for the navigation. Use these elements to define content for the navigational sections above and add your own custom items using button markup. You can also define your own building blocks, so called Special Navigational Elements.

And you can always link to internal or external pages or build semantic dropdowns using Tweeki's Button syntax.


A simple "Edit" button for the current page


A split dropdown with "Edit Page" and the other ACTIONS in the dropdown menu. For users or contexts in which EDIT-EXT-special is hidden via configuration setting, hook or parser function the button will be reduced to the appearance of EDIT.

Note that the standard configuration hides EDIT-EXT for users who don't explicitly opt in to see „advanced features“ (see the $wgTweekiSkinHideNonAdvanced configuration parameter).

Also note: in order to completely hide the edit button for non-advanced users (e.g. anonymous users) you have to use EDIT-EXT in the respective parser function or configuration option.


A link to the talk page or the page itself if you already are on it's talk page.


The tools (depending on context): page information, special pages, upload file, related changes, what links here


The tools (depending on context): page information, special pages, upload file, related changes, what links here PLUS recent changes (for the whole site)


MediaWiki standard views: read, edit, history.


A link to the page history or the page itself if you already are on the history page.


MediaWiki standard actions like purge, watch, move, delete.


Link to watch/unwatch page.


Icon to watch/unwatch page.

Note that the $wgTweekiSkinUseIconWatch configuration parameter has to be set to true for this to work.


A link to the log in form for anonymous users, a dropdown with the personal tools if already logged in.

Note: PERSONAL by default is hidden via configuration settings. If you want the link to the log in form to show up, you need to add the following line to LocalSettings.php:
$wgTweekiSkinHideAnon['PERSONAL'] = false;


Same as PERSONAL but using LOGIN-EXT's dropdown.


A link to the log in form for anonymous users, empty if already logged in.


A dropdown to allow logging in while staying on the same page.


The original content of the sidebar for Mediawiki's standard skins as defined in Mediawiki:Sidebar.


Select different languages if your wiki supports it.


The standard search box including autocomplete.


You can place the first heading in any navigational section. Note that you can control the visibility of this element with FIRSTHEADING and the original heading in the content with firstHeading, i.e. it is case sensitive.


Table of contents, if placed in the sidebar it makes use of Bootstrap's scrollspy feature.


the Logo as set via $wgLogo in LocalSettings.php. Use #p-logo to adapt the styling.

Note: This is to place the logo in one of the navigational sections. To put a logo in navbar-brand follow the How-To.