Page MenuHomeMiraheze

Configuration settings for dcwiki
Closed, ResolvedPublic

Description

Can you please add this to local settings for https://dc.miraheze.org?

$wgHiddenPrefs[] = 'visualeditor-betatempdisable';
$wgHiddenPrefs[] = 'multimediaviewer-enable';
$wgHiddenPrefs[] = 'math';
$wgVisualEditorEnableDiffPage = true;
$wgHiddenPrefs[] = 'skin';
$wgMFAutodetectMobileView = true;


$wgGroupPermissions['sysop']['userboard-delete'] = true;
$wgGroupPermissions['bureaucrat']['generatetopusersreport'] = true;
$wgGroupPermissions['bureaucrat']['updatepoints'] = true;
$wgVisualEditorAvailableContentModels = [
    "wikitext" => "article",
    "javascript" => "javascript",
    "css" => "css",
    "_merge_strategy" => "array_plus"
];

And this to zero instead:

$wgDefaultUserOptions['usebetatoolbar'] = 0;

Also, in continuation to a different request, am I definitely not able to get:

$wgAllowSiteCSSOnRestrictedPages = true;
$wgMFSiteStylesRenderBlocking = true;

Event Timeline

Unknown Object (User) created this task.Jul 8 2020, 08:12
Reception123 triaged this task as Normal priority.Jul 8 2020, 10:51

Settings done. wgVisualEditorEnableDiffPage should be available via Special:ManageWiki/settings

Unfortunately, I wouldn't be comfortable with allowing you to have those last two settings because of the security concerns (see T72672#756843) that caused them to be removed as the default in the first place.

@Reception123 I think you meant to link to an upstream ticket? Miraheze Phabricator doesn't have a task ID that high (yet)!

Unknown Object (User) added a comment.Jul 8 2020, 13:34

@Reception123 Thanks. can wgVisualEditorEnableDiffPage actually be done from there? I thought only the beta version of it can be.

In T5883#114978, @Carp_Universum wrote:

@Reception123 Thanks. can wgVisualEditorEnableDiffPage actually be done from there? I thought only the beta version of it can be.

My bad, it's been added now and you can enable in the Edit section.

@Reception123 I think you meant to link to an upstream ticket? Miraheze Phabricator doesn't have a task ID that high (yet)!

Yes I meant https://phabricator.wikimedia.org/T72672#756843, my bad (again!)

Unknown Object (User) added a comment.EditedJul 8 2020, 13:53
In T5883#114978, @Carp_Universum wrote:

@Reception123 Thanks. can wgVisualEditorEnableDiffPage actually be done from there? I thought only the beta version of it can be.

My bad, it's been added now and you can enable in the Edit section.

@Reception123 I think you meant to link to an upstream ticket? Miraheze Phabricator doesn't have a task ID that high (yet)!

Yes I meant https://phabricator.wikimedia.org/T72672#756843, my bad (again!)

Thanks - also, is it possible to disable Extension:WikiEditor entirely?

Unknown Object (User) added a comment.Jul 8 2020, 14:20

@Reception123 sorry -- I messed upon giving you one of those config options -- can you change:

Scribunto: "article"
css: "article"
javascript: "article"
wikitext: "article"

$wgVisualEditorAvailableContentModels = [
    "wikitext" => "article",
    "javascript" => "javascript",
    "css" => "css",
    "_merge_strategy" => "array_plus"
];

to

$wgVisualEditorAvailableContentModels = [
    "wikitext" => "article",
    "javascript" => "article",
    "css" => "article",
    "Scribunto" => "article",
    "_merge_strategy" => "array_plus"
];

Done. As for WikiEditor, doesn't hiding usebetatoolbar achieve the effect you want?

Unknown Object (User) added a comment.Jul 8 2020, 15:12

Done. As for WikiEditor, doesn't hiding usebetatoolbar achieve the effect you want?

I thought it would, but it did not. It is still being shown.

In T5883#114997, @Carp_Universum wrote:

Done. As for WikiEditor, doesn't hiding usebetatoolbar achieve the effect you want?

I thought it would, but it did not. It is still being shown.

Could you check again now?

Unknown Object (User) added a comment.Jul 8 2020, 15:30
In T5883#114997, @Carp_Universum wrote:

Done. As for WikiEditor, doesn't hiding usebetatoolbar achieve the effect you want?

I thought it would, but it did not. It is still being shown.

Could you check again now?

WikiEditor is still there.