jenkins-bot has submitted this change and it was merged.
Change subject: (bug 54828) Enable FlaggedRevs for Portuguese Wikipedia
......................................................................
(bug 54828) Enable FlaggedRevs for Portuguese Wikipedia
This patch provides configuration for the FlaggedRevs
extension for the Portuguese Wikipedia and adds it to
flaggedrevs.dblist per InitialiseSettings.php instructions.
The exact configuration has been kindly provided by
Danilo.mac; see bug for URL to its on-wiki version and to
a page that lists community consensus for enabling the
extension.
Bug: 54828
Change-Id: I868cbb822f39ce28c7dd404ab7a8f0011255fee9
---
M flaggedrevs.dblist
M wmf-config/flaggedrevs.php
2 files changed, 40 insertions(+), 0 deletions(-)
Approvals:
Reedy: Looks good to me, approved
jenkins-bot: Verified
diff --git a/flaggedrevs.dblist b/flaggedrevs.dblist
index 235e422..f62cdf9 100644
--- a/flaggedrevs.dblist
+++ b/flaggedrevs.dblist
@@ -29,6 +29,7 @@
plwiki
plwikisource
plwiktionary
+ptwiki
ptwikibooks
ptwikinews
ptwikisource
diff --git a/wmf-config/flaggedrevs.php b/wmf-config/flaggedrevs.php
index b6e8d0a..ae2bfd5 100644
--- a/wmf-config/flaggedrevs.php
+++ b/wmf-config/flaggedrevs.php
@@ -462,6 +462,45 @@
$wgFlaggedRevsNamespaces = array( NS_MAIN, NS_IMAGE, NS_TEMPLATE, 100,
102, 828 ); // bug 53373
}
+elseif ( $wgDBname == 'ptwiki' ) { // bug 54828
+ $wgFlaggedRevsNamespaces = array( NS_MAIN, NS_TEMPLATE, 102, 828 );
+ # Show only on a per-page basis
+ $wgFlaggedRevsOverride = false;
+ # We have only one tag with one level
+ $wgFlaggedRevTags = array(
+ 'status' => array( 'levels' => 1, 'quality' => 2, 'pristine' =>
3 ),
+ );
+ # Restrict autoconfirmed to flagging semi-protected
+ $wgFlagRestrictions = array(
+ 'status' => array( 'review' => 1, 'autoreview' => 1 ),
+ );
+ # Restriction levels for autoconfirmed rights
+ $wgFlaggedRevsRestrictionLevels = array( '', 'autoconfirmed' );
+ # Use flag "protection" levels
+ $wgFlaggedRevsProtection = true;
+ # Use current templates/files
+ $wgFlaggedRevsHandleIncludes = FR_INCLUDES_CURRENT;
+
+ # Protect quota
+ $wgFlaggedRevsProtectQuota = 300;
+
+ # Group permissions
+ $wgGroupPermissions['autoconfirmed']['autoreview'] = true;
+ $wgGroupPermissions['autoreviewer']['review'] = true;
+ $wgGroupPermissions['rollbacker']['review'] = true;
+ $wgGroupPermissions['eliminator']['review'] = true;
+ $wgGroupPermissions['bureaucrat']['review'] = true;
+ $wgGroupPermissions['sysop']['review'] = true;
+ $wgGroupPermissions['sysop']['stablesettings'] = true;
+
+ # Remove 'editor', 'reviewer' and 'autoreview' groups
+ unset( $wgGroupPermissions['editor'], $wgGroupPermissions['reviewer'],
$wgGroupPermissions['autoreview'] );
+ $wgAddGroups['sysop'] = array_diff( $wgAddGroups['sysop'], array(
'editor', 'reviewer' ) );
+ $wgRemoveGroups['sysop'] = array_diff( $wgRemoveGroups['sysop'], array(
'editor', 'reviewer' ) );
+ $wgAddGroups['bureaucrat'] = array_diff( $wgAddGroups['sysop'], array(
'reviewer' ) );
+ $wgRemoveGroups['bureaucrat'] = array_diff( $wgRemoveGroups['sysop'],
array( 'reviewer' ) );
+}
+
elseif ( $wgDBname == 'ptwikibooks' ) {
// Sets the most recent version as shown
$wgFlaggedRevsOverride = false;
--
To view, visit https://gerrit.wikimedia.org/r/89001
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I868cbb822f39ce28c7dd404ab7a8f0011255fee9
Gerrit-PatchSet: 2
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Odder <[email protected]>
Gerrit-Reviewer: Helder.wiki <[email protected]>
Gerrit-Reviewer: Nemo bis <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: Telesliveca <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits