Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
(Blanked the page) Tags: Manual revert Blanking |
Tag: Reverted |
||
| Line 1: | Line 1: | ||
public static function onSkinTemplateNavigation( SkinTemplate &$sktemplate, array &$links ) { | |||
$links['namespaces'][] = array( | |||
'class' => 'test', // a css class, if you want | |||
'text' => 'Testtab', // That's the text visible to the user, you might want to use a message key, instead of a hardcoded text | |||
'href' => 'test', // That's the link the tab will redirect to, when clicked | |||
); | |||
} | |||
Revision as of 11:36, 18 September 2021
public static function onSkinTemplateNavigation( SkinTemplate &$sktemplate, array &$links ) {
$links['namespaces'][] = array(
'class' => 'test', // a css class, if you want
'text' => 'Testtab', // That's the text visible to the user, you might want to use a message key, instead of a hardcoded text
'href' => 'test', // That's the link the tab will redirect to, when clicked
);
}