MediaWiki:Minerva.css: Unterschied zwischen den Versionen
Erscheinungsbild
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierungen: Mobile Bearbeitung Mobile Web-Bearbeitung Erweiterte mobile Bearbeitung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierungen: Mobile Bearbeitung Mobile Web-Bearbeitung Erweiterte mobile Bearbeitung |
||
| Zeile 1: | Zeile 1: | ||
/* All CSS here will be loaded for users of the MinervaNeue skin */ | /* All CSS here will be loaded for users of the MinervaNeue skin */ | ||
$ | $wgHooks['MobileMenu'][] = function ( $name, &$group ) { | ||
// Test-Link OBEN | |||
if ( $name === 'discovery' && method_exists( $group, 'insert' ) ) { | |||
$group->insert( 'test-link-oben' )->addComponent( | |||
'TEST-LINK OBEN', | |||
'https://example.org', | |||
null | |||
); | |||
} | |||
// Test-Link GANZ UNTEN | |||
if ( $name === 'sitelinks' && method_exists( $group, 'insert' ) ) { | |||
$group->insert( 'test-link-unten' )->addComponent( | |||
'TEST-LINK UNTEN', | |||
'https://example.org', | |||
null | |||
); | |||
} | |||
return true; | |||
}; | |||
Version vom 30. August 2025, 13:11 Uhr
/* All CSS here will be loaded for users of the MinervaNeue skin */
$wgHooks['MobileMenu'][] = function ( $name, &$group ) {
// Test-Link OBEN
if ( $name === 'discovery' && method_exists( $group, 'insert' ) ) {
$group->insert( 'test-link-oben' )->addComponent(
'TEST-LINK OBEN',
'https://example.org',
null
);
}
// Test-Link GANZ UNTEN
if ( $name === 'sitelinks' && method_exists( $group, 'insert' ) ) {
$group->insert( 'test-link-unten' )->addComponent(
'TEST-LINK UNTEN',
'https://example.org',
null
);
}
return true;
};