User talk:Matma Rex

Jump to navigation Jump to search

Witamy na!

Witamy! To jest witryna poświęcona dokumentacji oprogramowania MediaWiki, które wspiera wiele stron typu wiki, włączając Wikipedię oraz inne projekty Fundacji Wikimedia.
Prosimy przejrzeć poniższe strony, które mogą być przydatne dla nowicjuszy:

Jeżeli masz jakieś pytania, zadaj je na mojej stronie dyskusji. Mamy nadzieję, że znajdziesz tu wszystkie odpowiedzi na Twoje pytania dotyczące oprogramowania MediaWiki.

Pozdrawiam.--wargo (talk) 18:22, 2 August 2012 (UTC)

Numero dos[edit]

In that mockup, I forgot to unbold the usernames and resplicing it together is annoying. Did it matter? -— Isarra 04:01, 28 March 2013 (UTC)



Just in case you did this prettification by hand: there is 21:01, 8 April 2014 (UTC)

Join the GSoC & OPW IRC meeting[edit]

Hi! The community bonding period is over, and you should have started working on your project. In addition to the strict work, you are required to report frequently, see the details at the GSoC or OPW pages.

The Engineering Community team is organizing a Q&A session for all participants (mentors included) tomorrow Tuesday at #wikimedia-officeconnect, see Engineering Community Team/Meetings/2014-05-20. See you there!--Qgil (talk) 21:57, 19 May 2014 (UTC)

Question on $wgResourceModuleSkinStyles[edit]

Hi Matma Rex!

I am trying to use $wgResourceModuleSkinStyles, but it does not work as the docs made me think it would.

What is expected to happen when I define a stylesheet through this variable and add some styles in it? E.g. I define

$GLOBALS['wgResourceModuleSkinStyles']['myskin'] = array(
	'mediawiki.ui.input' => 'skinStyles/mediawiki.ui.input.less',
	'remoteSkinPath' => 'MySkin',
	'localBasePath' => __DIR__,

skinStyles/mediawiki.ui.input.less only contains the things I want to change:

@import "../variables";

/* mediawiki.ui.input */

/* Overwrite default styles of the mediawiki.ui.input module */
/* Forms: Adjust styling of input boxes, e.g. on [[Special:Search]] */

.mw-ui-input {
	&:focus {
		border-color: #f8f8f8;
		box-shadow: #f8f8f8 0 0 5px ;

When I now visit the Special:Search page, the input field also does have these styles applied. But only those. All the other styles (which MediaWiki defines in its resources/src/mediawiki.ui/components/input.less file) are no longer applied. It seems like the complete(!) content of that stylesheet is no longer used. But I do not want to redefine all rules. Instead, I only want to change the few mentioned above.

What is the fix for this? Is this the intended behaviour or am I doing something wrong?

Cheers! -- 01:24, 11 December 2014 (UTC)

Yes, this is the expected behavior - mediawiki.ui.input module is built to allow such overriding. To add to the existing styles instead of replacing them, use:
$GLOBALS['wgResourceModuleSkinStyles']['+myskin'] = array(
Note the "+" character. The doc page mentions it, but briefly - how could this be rephrased better? Matma Rex (talk) 09:23, 11 December 2014 (UTC)
Yes, I saw this, but I did not understand it. Thinking about it, I do not want to add something to the module myskin (instead of overwriting stuff in this module), but I want to add to the module mediawiki.ui. Shouldn't I then do something like this:
$GLOBALS['wgResourceModuleSkinStyles']['myskin'] = array(
	// Adding (instead of overwriting) to the file of the mediawiki.ui module
	'+mediawiki.ui.input' => 'skinStyles/mediawiki.ui.input.less',
Or would that be wrong in my situation? (Technically it's working as well...) -- 20:57, 11 December 2014 (UTC)
Hmm, this might actually be correct, and what I quoted earlier might be wrong. Matma Rex (talk) 19:07, 13 December 2014 (UTC)
Thank you, I corrected the documentation here [1] and in the source code [2]. Not sure how could I have gotten this wrong about code I've written myself :) Matma Rex (talk) 19:21, 13 December 2014 (UTC)
Things happen ;-) I have added to the manual page; at least for me it's clear now, how this is supposed to work. :-) Nice Sunday! -- 14:58, 14 December 2014 (UTC)

A barnstar for you![edit]

Vitruvian Barnstar Hires.png The Technical Barnstar
Thank you for helping me with git review! Unicodesnowman (talk) 14:57, 21 December 2014 (UTC)

Random acts of CR barnstar[edit]

I hereby award you this random acts of code review barnstar for being among the few most active +2'ers that we know of! Nemo 23:34, 3 February 2015 (UTC)

Page tools/toolbox/whatever[edit]

I went through the pile of tools/links that show up in the toolbox and across the top of the page in vector (+maybe a couple of others) and reorganised them in a way that makes sense logically to me. Any idea what could be done with this in order to actually use such a grouping in skins or whatever? -— Isarra 08:06, 29 May 2015 (UTC)

@Isarra: Hmm, I guess we'd like to treat this as another way to structure the interface, in addition to Vector-like tabs (internally known as content_navigation) and MonoBook-like tabs (content_actions). SkinTemplate.php generates those two:
		$content_navigation = $this->buildContentNavigationUrls();
		$content_actions = $this->buildContentActionUrls( $content_navigation );
		$tpl->setRef( 'content_navigation', $content_navigation );
		$tpl->setRef( 'content_actions', $content_actions );
So I guess we'd need to add another method to build this structure, and another key for this to use it from skins. Matma Rex (talk) 15:23, 22 July 2015 (UTC)

On enclose="div"[edit]

My mistake. It seems I am one MediaWiki version behind.

So how one would wrap lines now?

--Ioannis Protonotarios 15:39, 6 July 2015 (UTC)

@Protnet: Starting with MediaWiki 1.26 (and corresponding version of SyntaxHighlight), preformatted text blocks should all be automatically wrapped. Matma Rex (talk) 15:08, 22 July 2015 (UTC)
Good call! Thanks! --Ioannis Protonotarios 13:44, 23 July 2015 (UTC)

On style="overflow: auto;"[edit]

Hi Matma Rex,

there does not seem to be a replacement for this in the current version of the "Syntaxhighlight GeShi" extension. Will this be a nice feature request?

Cheers --[[kgh]] (talk) 14:15, 16 September 2015 (UTC)

@Kghbln: I don't understand. No replacement is necessary, as code snippets are now automatically wrapped. Matma Rex (talk) 22:04, 17 September 2015 (UTC)
Indeed, the code does continue in the next line automatically. I was more looking for a way do avoid this. Probably a matter of preference since I think this was nicer in display (easier to grasp). I guess I will get used to it. Cheers --[[kgh]] (talk) 22:28, 17 September 2015 (UTC)


Sorry for removing the tag, I was editing the page in the same moment and I am not very into phab yet. Could you please fix my edit? thanks! --Lucas (talk) 13:53, 12 May 2016 (UTC)

All right, you did it already. Thanks. --Lucas (talk) 13:59, 12 May 2016 (UTC)
@Lucas: No worries :) Unfortunately Phabricator doesn't do edit conflict detection, eh. Matma Rex (talk) 14:06, 12 May 2016 (UTC)

A barnstar for you![edit]

Halfstar Hires.png The Half Barnstar
Thank you for this change, which I hope will significantly improve matters from the perspective of script maintainers. You solve problems with kindness, skill, and collegiality. Whatamidoing (WMF) (talk) 18:56, 30 May 2017 (UTC)