Jump to content

Skin talk:Minerva Neue

About this board

Is there a way to remove the language selector?

2
Spiros71 (talkcontribs)

I mean not just by css display-none.

Jdlrobson (talkcontribs)

```

$wgMinervaAlwaysShowLanguageButton = false;

```

Reply to "Is there a way to remove the language selector?"

Is there a way to show categories on desktop ?

9
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.

217.121.19.46 (talkcontribs)

I'm getting a "[55dc3f7238278bc0ba3132ab] 2024-09-02 13:21:57: Fatal exception of type "Error""

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

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,

240E:458:1:96C6:3588:4A1F:6D7C:C39 (talkcontribs)

same issue.

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?

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"