Skin talk:Minerva Neue

About this board

Is there a way to show categories on desktop ?

8
91.65.107.54 (talkcontribs)

hi guys. actually i can't see the categories in the desktop version ? (mobile i can see the categeories) is that a bug ?


$wgMinervaShowCategoriesButton['base'] = true;


doesn't work. any ideas ?

Jdlrobson (talkcontribs)

This should work but I think you need to be logged in to see it.

Leonardo Rocca (talkcontribs)

Not working for me as well. Even if logged in. Did you find any solution?

Bazantik (talkcontribs)

Hi, I use this command in LocalSettings.php:

$wgMinervaShowCategoriesButton = [ 'base' => true ];

I think you have a typo in your code.

Fuellel (talkcontribs)

I know I'm late to the party, but I had the same problem: Minerva Neue would show the categories in mobile mode (?mobileaction=toggle_view_mobile) but not in desktop mode (?mobileaction=toggle_view_desktop). I debugged the code and noticed that some skin options, like whether to show the categories or not, were never loaded by default, but only by the "MobileFrontend" extension in mobile mode.

Long story short, this is what I added to LocalSettings.php to make the categories show up in desktop mode too:

$wgHooks['RequestContextCreateSkin'][] = static function () {
	try {
		$ctx = MediaWiki\MediaWikiServices::getInstance()->getService( 'MobileFrontend.Context' );
		MediaWiki\Minerva\Hooks::setMinervaSkinOptions( $ctx, $ctx->getSkin() );
	} catch ( Wikimedia\Services\NoSuchServiceException $ex ) {
	}
};

This is based on https://github.com/wikimedia/mediawiki-skins-MinervaNeue/blob/ca0b7d90f9842334c479438b737d907c199cdc91/includes/Hooks.php#L269-L285.

It would be very interesting to know how mediawiki.org does this, as they do display categories (example: Skin:Minerva Neue) and I doubt they use the same fix.

BTW, please note that the $wgMinervaShowCategoriesButton configuration parameter has been removed; please use $wgMinervaShowCategories.

78.149.80.176 (talkcontribs)

Any movement on this - can see categories on mobile, nothing on desktop!

code fix above causes php errors and crashes system, so not a fix.

Fuellel (talkcontribs)

What are the PHP errors you get? For me, this snippet works just fine.

This post was hidden by Fuellel (history)
Reply to "Is there a way to show categories on desktop ?"
87.163.196.60 (talkcontribs)

I do have an edit on every page - but not on the main page.

So, mobile users cannot edit the main page.

For my application, this is bad.

Jdlrobson (talkcontribs)

You'll need to add a link inside the wikitext to support this. You can hide the link for desktop if needed in MediaWiki:Common.css

46.148.198.130 (talkcontribs)

how

2A01:C23:6551:3B00:D482:7E82:712E:5E0A (talkcontribs)

i also have no edit capabilities on the mainpage. i use it in desktop mode. have to switch to another skin for editing content of the mainpage.

Polymath uk (talkcontribs)

Yes - I also have this problem. Users have to switch to another skin to edit main page. Entering the correct URL for editing the page just gives a blank page.

Mediabobedit (talkcontribs)

I still have this issue where there is no edit button on the main page when on mobile.

Weberho (talkcontribs)

I'm currently testing minerva and see the same issue. I can only set a link to the text editor using [https://.../index.php/?title=Main_Page&action=edit Edit this page].

To insert that, I have invoked the URL manually. In the above link you have to insert your hostname and verify the main-pages's name.

95.60.188.234 (talkcontribs)

Same here,

Reply to "No edit on main page"
Cyclonial (talkcontribs)

I have noticed a weird change in size with the font, even if it’s set to “small” in the preferences menu. The font in articles is much bigger than what it was previously. Is this a bug or a change made on purpose?

Velociraptor888 (talkcontribs)

The link colour for viewed pages is now almost completely indistinguishable from normal text. How can I change it back to purple? This is not convenient. Velociraptor888 (talk) 22:06, 8 February 2024 (UTC)

Reply to "Link colour"

Installer generates incorrect wgDefaultSkin for MinervaNeue

4
Narcisgarcia (talkcontribs)

Installer writes following line to LocalSettings.php :

$wgDefaultSkin = "minervaneue";

and it should be:

$wgDefaultSkin = 'minerva';

With this problem, website shows: Whoops! The default skin for your wiki, defined in $wgDefaultSkin as minervaneue, is not available.

Related bug report: T346332

158.129.172.252 (talkcontribs)

You saved my life, I was already bumping my head to the wall

131.211.116.53 (talkcontribs)

Thanks a lot, first time setting up an MediaWiki and thought is was on our side.

2001:41B8:83F:F000:0:0:2B:11 (talkcontribs)

thank you so much

Reply to "Installer generates incorrect wgDefaultSkin for MinervaNeue"

Extension Widgets don't working in Minerva Neue (MobileFrontend)

1
82.200.42.2 (talkcontribs)

after installed mediawiki 1.40.1 (for 1.35 was ok). n Vektor old widgets on wiki is working, in =toggle_view_mobile do not.

Reply to "Extension Widgets don't working in Minerva Neue (MobileFrontend)"
AGScratcherBest (talkcontribs)

My eyes are already burning from the white/light color. I tried to add "?withgadget=dark-mode" because it works in the English Wikipedia[proof], but the dark mode did not turn on.

Ammarpad (talkcontribs)

What's is the question here. Is is it the gadget not working here (mediawiki.org) or with minerva skin?

Reply to "(no title)"

$wgNamespacesToBeSearchedDefault ignored

1
צמא לדעת (talkcontribs)

On my wiki, I have added another namespace to be searched by default, other than main. On other skins, such as Vector, pages from that other namespace are suggested in the search input box, but not in Minerva.

How can I make Minerva suggest pages from all namespaces in $wgNamespacesToBeSearchedDefault ? Or, failing that, how can I add specific namespaces to be searched by Minerva?

Thanks!

Reply to "$wgNamespacesToBeSearchedDefault ignored"
Tinss (talkcontribs)

I suppose this skin is going to migrate to Codex/Vue.js ? That would make building a native app a whole lot easier !

Reply to "Migration to vue.js"

Log In Link to Side Menu

2
70.160.223.43 (talkcontribs)
Tinss (talkcontribs)

Indeed it is done through this hook. Here is the code that does it on Wikimedica:

$wgHooks['MobileMenu'][] = function ( $name, \MediaWiki\Minerva\Menu\Group &$group ) 
{
	if ( $name == 'discovery' ) 
	{
		$group = new \MediaWiki\Minerva\Menu\Group( 'p-navigation' );

		$group->insertEntry( new \MediaWiki\Minerva\Menu\Entries\HomeMenuEntry(
			'home',
			wfMessage('mobile-frontend-home-button')->text(),
			\Title::makeTitle(NS_MAIN, 'Accueil')->getLocalUrl()
		) );
		$group->insert( 'À propos' )->addComponent(
			'À propos',
			\Title::makeTitle(NS_PROJECT, 'À_propos')->getLocalUrl(),
			//MobileUI::iconClass( 'mf-upload-invert', 'before' ), 
		);

		$group->insert( 'FAQ' )->addComponent(
			'FAQ',
			\Title::makeTitle(NS_PROJECT, 'FAQ')->getLocalUrl(),
			//MobileUI::iconClass( 'mf-upload-invert', 'before' ), 
		);

		$group->insert( 'Gestion' )->addComponent(
			'Gestion',
			\Title::makeTitle(NS_PROJECT, 'Accueil')->getLocalUrl(),
			//MobileUI::iconClass( 'mf-upload-invert', 'before' ), 
		);
	}
	else if($name == 'sitetools')
	{
		$group->insert( 'Contribuer' )->addComponent(
			'Contribuer',
			\Title::makeTitle(NS_PROJECT, 'Contribuer')->getLocalUrl(),
			//MobileUI::iconClass( 'check', 'before' ), 
		);

		$group->insert( 'Aide' )->addComponent(
			'Aide',
			\Title::makeTitle(NS_HELP, 'Accueil')->getLocalUrl(),
			//MobileUI::iconClass( 'help', 'before' ),
		);

		$group->insert( 'Poser une question' )->addComponent(
			'Poser une question',
			\Title::makeTitle(NS_HELP, 'Forum')->getLocalUrl(),
			//MinervaUI::iconClass( 'speechBubbles', 'before' ), 
		);
	}
	else if($name == 'sitelinks') 
	{ 
		$group = new \MediaWiki\Minerva\Menu\Group( 'sitelinks'); 

		$group->insert( 'Conditions d\'utilisation' )->addComponent(
			'Conditions d\'utilisation',
			\Title::makeTitle(NS_PROJECT, 'Conditions d\'utilisation')->getLocalUrl()
		);
	}
};

I could not get the icons to work though.

Reply to "Log In Link to Side Menu"
Return to "Minerva Neue" page.