Skin talk:Minerva Neue - MediaWiki


91.65.107.54 (talkcontribs)

Article Images

Is there a way to show categories on desktop ?

9

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.

This post was hidden by Fuellel (history)

Reply to "Is there a way to show categories on desktop ?"

How to activate dark/night mode

1

78.159.153.13 (talkcontribs)

Hello, I would like to enable dark/night mode on my WikiMedia-1.42.1 instance, but I don't get how.

It says in the README.md that there's a $wgMinervaNightMode config variable, so I tried adding $wgMinervaNightMode['base'] = true; to my LocalSettings.php, but it doesn't seem to affect anything. Other LocalSettings.php lines like $wgMinervaAlwaysShowLanguageButton = false; do work.

Is this dark/night mode something that currently works? Is night mode the same thing as dark mode (i.e. dark colors)? I wish there was some more explanation in the README.md about how to activate this. It say it's a "Temporary feature flag", but I don't really know what that means.

Reply to "How to activate dark/night mode"

No edit on main page

9

Summary by Jdlrobson

This is by design. If you want to make the main page editable, you will need to add an explicit link inside the content to point to the editor. e.g. edit this page

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

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.

Cyclonical (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?

$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"