Manual:Hooks/SkinTemplateNavigation/cs

Podrobnosti
Tento háček mění navigaci pro vzhledy, které používají buildNavigationUrls, jako je Vector ve vzhledech starších než 1.18. V 1.18 se tento háček používá ke generování karet pro všechny vzhledy.

Tento háček se volá na stránkách s obsahem, viz další dva háčky SkinTemplateNavigation pro další záložky bodů lze upravit na.

In MediaWiki < 1.37, this hook is called only after tabs have been added, but before variants have been added. In 1.37 this hook is called after tabs AND variants have been added.


 * $skinTemplate: SkinTemplate object
 * &$links: Structured navigation links
 * From the buildContentNavigationUrls function:
 * a structured array of links usually used for the tabs in a skin
 * There are 4 standard sections:
 * namespaces: Used for namespace tabs like special, page, and talk namespaces
 * views: Used for primary page views like read, edit, history
 * actions: Used for most extra page actions like deletion, protection, etc...
 * variants: Used to list the language variants for the page
 * Each section's value is a key/value array of links for that section. The links themselves have these common keys:
 * class: The css classes to apply to the tab
 * text: The text to display on the tab
 * href: The href for the tab to point to
 * rel: An optional rel= for the tab's link
 * redundant: If true the tab will be dropped in skins using content_actions this is useful for tabs like "Read" which only have meaning in skins that take special meaning from the grouped structure of content_navigation

Example
An example you can paste into LocalSettings.php