Jump to content

Topic on Skin talk:Vector

$wgVectorMaxWidthOptions options

2
Samthecrazyman (talkcontribs)

For the Vector 2022 skin, on the wiki page, it shows $wgVectorMaxWidthOptions but doesn't list what the options are. Does anyone know what options can be used with this? True doesn't work.

Thanks

Tacsipacsi (talkcontribs)

The default value is roughly equal to

[
	'exclude' => [
		'mainpage' => true,
		'querystring' => [ // These are PCRE regular expressions
			'action' => '(history|edit|submit)',
			'diff' => '.+',
		],
		'pagetitles' => [],
		'namespaces' => [ -1, 14 ],
	],
	'include' => [ 'Special:Preferences' ],
]

which gives you a sense of how it can be configured. There’s some documentation of the structure at https://doc.wikimedia.org/Vector/classMediaWiki_1_1Skins_1_1Vector_1_1ConfigHelper.html#af03d17bc4dad938389d7734c8a8bda8f, although it’s quite unreadably formatted, and it doesn’t mention include at all.

Reply to "$wgVectorMaxWidthOptions options"