diff --git a/ManageWikiNamespaces.php b/ManageWikiNamespaces.php index 8f72cb54..45383273 100644 --- a/ManageWikiNamespaces.php +++ b/ManageWikiNamespaces.php @@ -1,332 +1,332 @@ $val]: namespace specific overrides. Also required a default key. See below. * overridedefault['default' => $val]: required when using namespace specific overrides. Sets a default for all other namespaces, which is not using the overrides set. * help: string providing help information for the setting. * requires: an array, string, or integer. See below for available types that can be used here. * * 'type' can be one of: * * check: adds a checkbox. Format: $var[] = $namespace_id; * vestyle: adds a checkbox. Format: [$var][$namespace_id] = true; * * [$var][$namespace_id] = $val format: * database: adds a textbox with input validation, verifying that its value is a valid database name. * float: adds a textbox with float validation (requires: minfloat and maxfloat which are minimum and maximum float values). * integer: adds a textbox with integer validation (requires: minint and maxint which are minimum and maximum integer values). * language: adds a dropdown for language selection (all which are known to MediaWiki). * list: adds a list of options (requires: options which is an array in form of display => internal value). * list-multi: see above, just that multiple can be selected. * list-multi-bool: see above, just outputs are $this => $bool. * matrix: adds an array of "columns" and "rows". Columns are the top array and rows will be the values. * preferences: adds a drop down selection box for selecting multiple user preferences. * skin: adds a drop down selection box for selecting a single enabled skin. * skins: adds a drop down selection box for selecting multiple enabled skins. * text: adds a single line text entry. * timezone: adds a dropdown for timezone selection. * url: adds a single line text entry which requires a full URL. * user: adds an autocomplete text box to select a single user on the wiki. * users: see above, except multiple users. * usergroups: adds a drop down selection box for selecting multiple user groups. * userrights: adds a drop down selection box for selecting multiple user rights. * wikipage: add a textbox which will return an autocomplete drop-down list of wikipages. Returns standardised MediaWiki pages. * wikipages: see above, except multiple wikipages. * * 'requires' can be one of: * * activeusers: max integer amount of active users a wiki may have in order to be able to modify this setting. * articles: max integer amount of articles a wiki may have in order to be able to modify this setting. * extensions: array of extensions that must be enabled in order to modify this setting. Different from 'from'. Only use if requires more then one extension. * pages: max integer amount of pages a wiki may have in order to be able to modify this setting. * permissions: array of permissions a user must have to be able to modify this setting. Regardless of this value, a user must always have the managewiki permission. * visibility: an array. See below for available options. * * 'visibility' can be one of: * * state: a string. Can be either 'private' or 'public'. If set to 'private' this setting will only be visible on private wikis. If set to 'public' it will only be visible on public wikis. * permissions: an array. Set to an array of permissions required for the setting to be visible. */ $wgManageWikiNamespacesAdditional = [ 'wgMetaNamespace' => [ 'name' => 'What should the main namespace name for the project namespace be?', 'from' => 'mediawiki', 'type' => 'text', 'main' => true, 'talk' => false, 'constant' => true, 'only' => NS_PROJECT, 'overridedefault' => str_replace( ' ', '_', $wgSitename ), 'help' => 'Also be sure to update $wgMetaNamespaceTalk.', 'requires' => [], ], 'wgMetaNamespaceTalk' => [ 'name' => 'What should the talk namespace name for the project namespace be?', 'from' => 'mediawiki', 'type' => 'text', 'main' => false, 'talk' => true, 'constant' => true, 'only' => NS_PROJECT_TALK, 'overridedefault' => str_replace( ' ', '_', "{$wgSitename}_talk" ), 'help' => 'Also be sure to update $wgMetaNamespace.', 'requires' => [], ], 'wgExtraSignatureNamespaces' => [ 'name' => 'Enable "Signature" button on the edit toolbar under both main and talk pages?', 'from' => 'mediawiki', 'type' => 'check', 'main' => true, 'talk' => false, 'excluded' => [], 'overridedefault' => false, 'help' => '', 'requires' => [], ], 'wgCapitalLinkOverrides' => [ 'name' => 'Force the first letter of links to capitals.', 'from' => 'mediawiki', 'type' => 'vestyle', 'main' => true, 'talk' => false, 'excluded' => [ 2, 8, ], 'overridedefault' => false, 'help' => 'Overrides $wgCapitalLinks for this namespace. Warning: This may break your existing wiki links.', 'requires' => [], ], 'wgNoFollowNsExceptions' => [ 'name' => 'Enable if the rel="nofollow" attribute should not be used for external links in this namespace, even if $wgNoFollowLinks is enabled.', 'from' => 'mediawiki', 'type' => 'check', 'main' => true, 'talk' => true, 'excluded' => [], 'overridedefault' => false, 'help' => '', 'requires' => [], ], 'wgCosmosRailBlacklistedNamespaces' => [ 'name' => 'Disable Cosmos side rail in this namespace.', 'from' => 'cosmos', 'type' => 'check', 'main' => true, 'talk' => true, 'excluded' => [], 'overridedefault' => [ -1 => true, 8 => true, 9 => true, 'default' => false, ], 'help' => '', 'requires' => [], ], 'wgNamespaceRobotPolicies' => [ 'name' => 'What should the robot policy for this namespace be?', 'from' => 'mediawiki', 'type' => 'list', 'main' => true, 'talk' => true, 'excluded' => [], 'options' => [ 'index,follow' => 'index,follow', 'noindex,nofollow' => 'noindex,nofollow', 'index,nofollow' => 'index,nofollow', ], 'overridedefault' => $wgDefaultRobotPolicy, 'help' => 'Overrides $wgDefaultRobotPolicy for this namespace.', 'requires' => [], ], 'wgExemptFromUserRobotsControl' => [ 'name' => 'Exempt from user robots control?', 'from' => 'mediawiki', 'type' => 'check', 'main' => true, 'talk' => true, 'excluded' => [], 'overridedefault' => array_merge( array_fill_keys( $wgContentNamespaces, true ), [ 'default' => false ] ), 'help' => 'If this is enabled, the __INDEX__ and __NOINDEX__ magic words will not function in this namespace.', 'requires' => [], ], 'egApprovedRevsEnabledNamespaces' => [ 'name' => 'Enable ApprovedRevs in this namespace?', 'from' => 'approvedrevs', 'type' => 'vestyle', 'main' => true, 'talk' => true, 'excluded' => [ 8, 9, 14, 15, ], 'overridedefault' => true, 'help' => '', 'requires' => [], ], 'wgWPBNamespaces' => [ 'name' => 'Enable WikidataPageBanner in this namespace?', 'from' => 'wikidatapagebanner', 'type' => 'check', 'main' => true, 'talk' => true, 'excluded' => [], 'overridedefault' => false, 'help' => '', 'requires' => [], ], 'wgCommentStreamsAllowedNamespaces' => [ 'name' => 'Can comments appear in this namespace?', 'from' => 'commentstreams', 'type' => 'check', 'main' => true, 'talk' => false, 'excluded' => [], 'overridedefault' => array_merge( array_fill_keys( $wgContentNamespaces, true ), [ 'default' => false ] ), 'help' => '', 'requires' => [], ], 'wgFlaggedRevsNamespaces' => [ 'name' => 'Enable FlaggedRevs in this namespace?', 'from' => 'flaggedrevs', 'type' => 'check', 'main' => true, 'talk' => false, 'excluded' => [ 8 ], 'overridedefault' => [ 0 => true, 6 => true, 10 => true, 'default' => false, - ] + ], 'help' => '', 'requires' => [], ], 'wgVisualEditorAvailableNamespaces' => [ 'name' => 'Enable VisualEditor in this namespace?', 'from' => 'visualeditor', 'type' => 'vestyle', 'main' => true, 'talk' => true, 'excluded' => [], 'overridedefault' => [ NS_CATEGORY => true, NS_FILE => true, NS_MAIN => true, NS_USER => true, 'default' => false, ], 'help' => '', 'requires' => [], ], 'wgNamespacesToPostIn' => [ 'name' => 'Can MassMessage post messages in this namespace?', 'from' => 'massmessage', 'type' => 'check', 'main' => true, 'talk' => false, 'excluded' => [], 'overridedefault' => false, 'help' => '', 'requires' => [], ], 'wgTemplateSandboxEditNamespaces' => [ 'name' => 'Can TemplateSandbox be used in this namespace?', 'from' => 'templatesandbox', 'type' => 'check', 'main' => true, 'talk' => true, 'excluded' => [], 'overridedefault' => [ 10 => true, 'default' => false, ], 'help' => '', 'requires' => [], ], 'wgTemplateStylesNamespaces' => [ 'name' => 'Can TemplateStyles be used in this namespace?', 'from' => 'templatestyles', 'type' => 'check', 'main' => true, 'talk' => true, 'excluded' => [], 'overridedefault' => [ 10 => true, 'default' => false, ], 'help' => '', 'requires' => [], ], 'wgARENamespaces' => [ 'name' => 'Enable Article Ratings in this namespace?', 'from' => 'articleratings', 'type' => 'check', 'main' => true, 'talk' => false, 'excluded' => [], 'overridedefault' => array_merge( array_fill_keys( $wgContentNamespaces, true ), [ 'default' => false ] ), 'help' => '', 'requires' => [], ], 'wgPreloaderSource' => [ 'name' => 'Name of the page (including page\'s namespace) to use as the source for Preloader in this namespace.', 'from' => 'preloader', 'type' => 'text', 'main' => true, 'talk' => false, 'excluded' => [], 'overridedefault' => [ 0 => 'Template:Boilerplate', 'default' => false, ], 'help' => '', 'requires' => [], ], 'wgRPRatingAllowedNamespaces' => [ 'name' => 'Allow articles in this namespace to be rated with RatePage?', 'from' => 'ratepage', 'type' => 'check', 'main' => true, 'talk' => true, 'excluded' => [], 'overridedefault' => true, 'help' => '', 'requires' => [], ], 'wgModerationIgnoredInNamespaces' => [ 'name' => 'Allow non-automoderated users to bypass moderation in this namespace?', 'from' => 'moderation', 'type' => 'check', 'main' => true, 'talk' => true, 'excluded' => [], 'overridedefault' => false, 'help' => '', 'requires' => [], ], ];