-
-
Notifications
You must be signed in to change notification settings - Fork 263
Expand file tree
/
Copy pathManageWikiSettings.php
More file actions
5694 lines (5670 loc) · 189 KB
/
ManageWikiSettings.php
File metadata and controls
5694 lines (5670 loc) · 189 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/**
* ManageWiki settings are added using the variable below.
*
* associativeKey: the associative array key. Only used if you are setting the associative value.
* name: the displayed name of the setting on Special:ManageWiki/settings.
* from: a text entry of which extension is required for this setting to work. If added by MediaWiki core, use 'mediawiki'.
* global: set to true if the setting is added by MediaWiki core or a global extension or skin.
* type: configuration type. See below for available options.
* overridedefault: a string/array override default when no existing value exist.
* help: string providing help information for the setting.
* section: string name of groupings for settings.
* 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.
* 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).
* integers: see above, just supports multiple and does not require a min or max integer value.
* language: adds a drop-down 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.
* list-multi-int: see above, just saves values as a list of integers rather than strings.
* 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.
* texts: see above, except multiple text values for inserting into a configuration array.
* timezone: adds a drop-down 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:
*
* 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 it requires more than one extension.
* files: max integer amount of files a wiki may have in order to be able to modify this setting.
* 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.
* settings: an array.
* users: max integer amount of users a wiki may have in order to be able to modify this setting.
* visibility: an array. See below for available options.
*
* 'visibility' can be one of:
*
* permissions: an array. Set to an array of permissions required for the setting to be visible.
* 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.
*/
$wgManageWikiSettings = [
// Anti-Spam
'wgAbuseFilterActions' => [
'name' => 'AbuseFilter Actions',
'from' => 'abusefilter',
'global' => true,
'type' => 'list-multi-bool',
'allopts' => [
'block',
'blockautopromote',
'degroup',
'disallow',
'rangeblock',
'tag',
'throttle',
'warn',
],
'options' => [
'Block' => 'block',
'BlockAutopromote' => 'blockautopromote',
'Degroup' => 'degroup',
'Disallow' => 'disallow',
'Rangeblock' => 'rangeblock',
'Tag' => 'tag',
'Throttle' => 'throttle',
'Warn' => 'warn',
],
'overridedefault' => [
'block' => true,
'blockautopromote' => true,
'degroup' => false,
'disallow' => true,
'rangeblock' => false,
'tag' => true,
'throttle' => true,
'warn' => true,
],
'section' => 'anti-spam',
'help' => 'The possible actions that can be taken by abuse filters. When adding a new action, check if it is restricted in <code>$wgAbuseFilterActionRestrictions</code> and, if it is, don\'t forget to add the abusefilter-modify-restricted right to the appropriate user groups.',
'requires' => [],
],
'wgAbuseFilterNotifications' => [
'name' => 'AbuseFilter Notifications',
'from' => 'abusefilter',
'global' => true,
'type' => 'list',
'options' => [
'False' => false,
'Recent Changes' => 'rc',
'UDP' => 'udp',
'RC and UDP' => 'rcandudp',
],
'overridedefault' => false,
'help' => 'Pings AbuseFilter hits to Special:RecentChanges, UDP, or both.',
'section' => 'anti-spam',
'requires' => [],
],
'wgAbuseFilterNotificationsPrivate' => [
'name' => 'Private AbuseFilter Notifications',
'from' => 'abusefilter',
'global' => true,
'type' => 'check',
'overridedefault' => false,
'help' => 'Pings hits from private AbuseFilters to Special:RecentChanges.',
'section' => 'anti-spam',
'requires' => [
'settings' => [
'setting' => 'wgAbuseFilterNotifications',
'value' => [
'rc',
'rcandudp',
'udp',
],
],
],
],
'wgAutoblockExpiry' => [
'name' => 'Autoblock Expiry',
'from' => 'mediawiki',
'global' => true,
'type' => 'integer',
'minint' => 0,
'maxint' => 315360000,
'overridedefault' => 86400,
'section' => 'anti-spam',
'help' => 'Number of seconds before autoblock entries expire. Minimum value allowed: 0, default: 1 day (86400), maximum: 10 years (315360000).',
'requires' => [],
],
'wgBlockAllowsUTEdit' => [
'name' => 'Allows blocking users to restrict talk page access',
'from' => 'mediawiki',
'global' => true,
'type' => 'check',
'overridedefault' => true,
'section' => 'anti-spam',
'help' => 'Allows the blocking user to grant talk page edit access for the blocked user',
'requires' => [],
],
'wgCookieSetOnAutoblock' => [
'name' => 'Cookie set on autoblock',
'from' => 'mediawiki',
'global' => true,
'type' => 'check',
'overridedefault' => true,
'section' => 'anti-spam',
'help' => 'Determines whether to set a cookie when a user is autoblocked. Doing so means that a blocked user, even after logging out and moving to a new IP address, will still be blocked.',
'requires' => [],
],
'wgCookieSetOnIpBlock' => [
'name' => 'Cookie set on IP block',
'from' => 'mediawiki',
'global' => true,
'type' => 'check',
'overridedefault' => true,
'section' => 'anti-spam',
'help' => 'Determines whether to set a cookie when an IP user is blocked. Doing so means that a blocked user, even after moving to a new IP address, will still be blocked.',
'requires' => [],
],
'wgEmailConfirmToEdit' => [
'name' => 'Email Confirm To Edit',
'from' => 'mediawiki',
'global' => true,
'type' => 'check',
'overridedefault' => false,
'section' => 'anti-spam',
'help' => 'Require users to confirm email address before they can edit. This effectively disables IP editing.',
'requires' => [],
],
'wgRestrictionTypes' => [
'name' => 'Restriction Types',
'from' => 'mediawiki',
'global' => true,
'type' => 'list-multi',
'options' => [
'Edit' => 'edit',
'Move' => 'move',
'Create' => 'create',
'Upload' => 'upload',
'Delete' => 'delete',
'Protect' => 'protect',
'Edit Content Model' => 'editcontentmodel',
],
'overridedefault' => [
'create',
'edit',
'move',
'upload',
],
'section' => 'anti-spam',
'help' => 'Actions that can be restricted.',
'requires' => [],
],
'wgProtectSiteLimit' => [
'name' => 'Protect Site Limit',
'from' => 'protectsite',
'type' => 'list',
'options' => [
'indefinite' => 'indefinite',
'10 year' => '10 year',
'1 week' => '1 week',
],
'overridedefault' => '1 week',
'section' => 'anti-spam',
'help' => 'Maximum time allowed for protection of the site.',
'requires' => [],
],
'wgProtectSiteDefaultTimeout' => [
'name' => 'ProtectSite Default Timeout',
'from' => 'protectsite',
'type' => 'list',
'options' => [
'1 year' => '1 year',
'6 month' => '6 month',
'3 month' => '3 month',
'1 month' => '1 month',
'1 week' => '1 week',
'3 day' => '3 day',
'1 day' => '1 day',
'1 hour' => '1 hour',
],
'overridedefault' => '1 hour',
'section' => 'anti-spam',
'help' => 'Default timeout, 1 hour by default.',
'requires' => [],
],
'egApprovedRevsAutomaticApprovals' => [
'name' => 'Automatically approve new revisions',
'from' => 'approvedrevs',
'type' => 'check',
'overridedefault' => true,
'section' => 'anti-spam',
'help' => 'Uncheck this box to require new revisions to be manually approved even if made by an administrator',
'requires' => [],
],
'egApprovedRevsBlankIfUnapproved' => [
'name' => 'Display unapproved pages as blank',
'from' => 'approvedrevs',
'type' => 'check',
'overridedefault' => false,
'section' => 'anti-spam',
'help' => 'Make pages without approved revisions show up as blank',
'requires' => [],
],
'egApprovedRevsBlankFileIfUnapproved' => [
'name' => 'Do not display unapproved images',
'from' => 'approvedrevs',
'type' => 'check',
'overridedefault' => false,
'section' => 'anti-spam',
'help' => 'Makes files without approved versions not show up when embedded',
'requires' => [],
],
'egApprovedRevsFileAutomaticApprovals' => [
'name' => 'Automatically approve new files',
'from' => 'approvedrevs',
'type' => 'check',
'overridedefault' => true,
'section' => 'anti-spam',
'help' => 'Uncheck this to require new files to be manually approved even if made by an administrator',
'requires' => [],
],
'egApprovedRevsFileShowApproveLatest' => [
'name' => 'Show a link to approve the latest revision in Special:ApprovedRevs',
'from' => 'approvedrevs',
'type' => 'check',
'overridedefault' => false,
'section' => 'anti-spam',
'help' => 'This option makes a link show up on Special:ApprovedRevs to approve the latest revision of a file',
'requires' => [],
],
'egApprovedRevsShowNotApprovedMessage' => [
'name' => 'Show not approved message',
'from' => 'approvedrevs',
'type' => 'check',
'overridedefault' => false,
'section' => 'anti-spam',
'help' => 'This option makes a message appear on unapproved revisions indicating this revision has not been approved',
'requires' => [],
],
'wgFlaggedRevsProtection' => [
'name' => 'Flagged Revs Protection',
'from' => 'flaggedrevs',
'type' => 'check',
'overridedefault' => false,
'section' => 'anti-spam',
'help' => 'This enables Flagged Revs Protection.',
'requires' => [],
],
'wgFlaggedRevsOverride' => [
'name' => 'Flagged Revs Override',
'from' => 'flaggedrevs',
'type' => 'check',
'overridedefault' => true,
'section' => 'anti-spam',
'help' => 'Is a "stable version" used as the default display version for all pages in reviewable namespaces?',
'requires' => [],
],
'wgFlaggedRevsAutoReview' => [
'name' => 'FlaggedRevs Auto Review',
'from' => 'flaggedrevs',
'type' => 'list',
'options' => [
'No Auto-Review' => 0,
'Changes' => 1,
'Creation' => 2,
'Changes and Creation' => 3,
],
'overridedefault' => 3,
'section' => 'anti-spam',
'help' => 'Auto-review settings for edits/new pages.',
'requires' => [],
],
'wgSimpleFlaggedRevsUI' => [
'name' => 'Simple FlaggedRevs UI',
'from' => 'flaggedrevs',
'type' => 'check',
'overridedefault' => true,
'section' => 'anti-spam',
'help' => 'When enabled, this will only distinguish "checked", "quality", and unreviewed.',
'requires' => [],
],
'wgFlaggedRevsLowProfile' => [
'name' => 'FlaggedRevs Low Profile',
'from' => 'flaggedrevs',
'type' => 'check',
'overridedefault' => true,
'section' => 'anti-spam',
'help' => 'For visitors, only show tags/icons for unreviewed/outdated pages when enabled.',
'requires' => [],
],
'wgModerationPreviewLink' => [
'name' => 'Moderation Preview Link',
'from' => 'moderation',
'type' => 'check',
'overridedefault' => false,
'section' => 'anti-spam',
'help' => 'If enabled, Preview link is shown for pending edits. Normally you shouldn\'t enable this (when following Best Practices, approval/rejection depends on content, not formatting).',
'requires' => [],
],
'wgModerationEnableEditChange' => [
'name' => 'Moderation Enable Edit Change',
'from' => 'moderation',
'type' => 'check',
'overridedefault' => false,
'section' => 'anti-spam',
'help' => 'If enabled, moderators are allowed to edit pending changes before approving. DANGEROUS: moderator can accidentally delete the text of pending change. Enable this only when you use Moderation for pre-publish review.',
'requires' => [],
],
'wgModerationEmail' => [
'name' => 'Moderation Email',
'from' => 'moderation',
'type' => 'text',
'overridedefault' => $wgPasswordSender,
'section' => 'anti-spam',
'help' => 'Email address to send moderation notifications to.',
'requires' => [
'visibility' => [
'permissions' => [
'managewiki-settings',
],
],
],
],
// Other (extensions without a defined category)
'wgDataMapsEnableCreateMap' => [
'name' => 'DataMaps: Enable CreateMap',
'from' => 'datamaps',
'type' => 'check',
'overridedefault' => true,
'section' => 'other',
'help' => 'Whether or not to enable the visual map creation dialog.',
'requires' => [],
],
'wgDataMapsAllowExperimentalFeatures' => [
'name' => 'DataMaps: Allow experimental features',
'from' => 'datamaps',
'type' => 'check',
'overridedefault' => false,
'section' => 'other',
'help' => 'Whether or not to enable any disabled-by-default experimental features.',
'requires' => [],
],
'wgDisplayFeedsInSidebar' => [
'name' => 'Display feeds in sidebar',
'from' => 'featuredfeeds',
'type' => 'check',
'overridedefault' => true,
'section' => 'other',
'help' => 'This option controls whether or not feeds will be linked to in the sidebar',
'requires' => [],
],
'wgExportAllowListContributors' => [
'name' => 'Allow exporting contributor list on Special:Export',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => false,
'section' => 'other',
'help' => 'Whether or not to allow exporting a list of contributors to exported pages on Special:Export',
'requires' => [],
],
'wgExtractsRemoveClasses' => [
'name' => 'TextExtracts: Remove Classes',
'from' => 'textextracts',
'type' => 'texts',
'overridedefault' => [
'table',
'div',
'figure',
'script',
'input',
'style',
'ul.gallery',
'mw\\:editsection',
'editsection',
'meta',
'sup.reference',
'ol.references',
'.error',
'.nomobile',
'.noprint',
'.noexcerpt',
'.sortkey',
'.mw-empty-elt',
],
'section' => 'other',
'help' => 'Selectors for elements which will be excluded from extraction.',
'requires' => [],
],
'wgRSSAllowLinkTag' => [
'name' => 'Allow links in RSS feeds',
'from' => 'rss',
'type' => 'check',
'overridedefault' => false,
'section' => 'other',
'help' => 'If enabled, links (<a> tags) will be shown. If disabled, the tags are escaped.',
'requires' => [],
],
'wgRSSItemMaxLength' => [
'name' => 'Description length of RSS items',
'from' => 'rss',
'type' => 'integer',
'minint' => 0,
'maxint' => 4294967295,
'overridedefault' => 200,
'section' => 'other',
'help' => 'The maximum length of an RSS item\'s body',
'requires' => [],
],
'wgRSSUserAgent' => [
'name' => 'RSS User Agent',
'from' => 'rss',
'type' => 'text',
'overridedefault' => 'MediaWiki RSS extension',
'section' => 'other',
'help' => 'The User Agent that MediaWiki will use to fetch RSS feeds.',
'requires' => [],
],
'wgSearchDigestCreateRedirect' => [
'name' => 'SearchDigest Create Redirect',
'from' => 'searchdigest',
'type' => 'check',
'overridedefault' => true,
'section' => 'other',
'help' => 'Whether to show a button for quickly creating redirects on Special:SearchDigest (requires JS in browser)',
'requires' => [],
],
'wgSearchDigestMinimumMisses' => [
'name' => 'SearchDigest Minimum Misses',
'from' => 'searchdigest',
'type' => 'integer',
'minint' => 1,
'maxint' => 100,
'overridedefault' => 10,
'section' => 'other',
'help' => 'Number of misses for a query before they should show up on Special:SearchDigest',
'requires' => [],
],
'wgWPBBannerProperty' => [
'name' => 'WikidataPageBanner Banner Property',
'from' => 'wikidatapagebanner',
'type' => 'text',
'overridedefault' => null,
'section' => 'other',
'help' => 'Banner property on Wikidata which holds a commons media file. Essential if Wikidata is enabled.',
'requires' => [
'extensions' => [
'wikidata',
],
],
],
'wgWPBEnableDefaultBanner' => [
'name' => 'WikidataPageBanner Enable Default Banner',
'from' => 'wikidatapagebanner',
'type' => 'check',
'overridedefault' => false,
'section' => 'other',
'help' => 'Enables the default banner image on pages without the use of <code>{{PAGENAME}}</code>.',
'requires' => [],
],
'wgWPBEnableHeadingOverride' => [
'name' => 'WikidataPageBanner Enable Heading Override',
'from' => 'wikidatapagebanner',
'type' => 'check',
'overridedefault' => true,
'section' => 'other',
'help' => 'Determintes whether the page title is displayed overlayed on the banner image or not.',
'requires' => [],
],
'wgWPBEnableMainPage' => [
'name' => 'WikidataPageBanner Enable Main Page',
'from' => 'wikidatapagebanner',
'type' => 'check',
'overridedefault' => false,
'section' => 'other',
'help' => 'Determines whether a banner is allowed to be shown on the Main Page or not.',
'requires' => [],
],
'wgWPBEnablePageImagesBanners' => [
'name' => 'WikidataPageBanner Enable Page Images Banner',
'from' => 'wikidatapagebanner',
'type' => 'check',
'overridedefault' => true,
'section' => 'other',
'help' => 'When set to true alongside Extension:PageImages, it will use an image from the current page if no Wikidata or local image is defined.',
'requires' => [
'extensions' => [
'pageimages',
],
],
],
'wgWPBDisplaySubtitleAfterBannerSkins' => [
'name' => 'WikidataPageBanner Display Subtitle After Banner Skins',
'from' => 'wikidatapagebanner',
'type' => 'skins',
'overridedefault' => [
'minerva',
],
'section' => 'other',
'help' => 'Is an array of names of skins that should have the banner displayed in the site-notice area instead of the page subtitle.',
'requires' => [],
],
'wgWPBImage' => [
'name' => 'WikidataPageBanner Default Image',
'from' => 'wikidatapagebanner',
'type' => 'text',
'overridedefault' => false,
'section' => 'other',
'help' => 'Is used to set the default banner image without the \'File:\' prefix to be displayed on the allowed pages and namespaces.',
'requires' => [],
],
'wgWPBStandardSizes' => [
'name' => 'WikidataPageBanner Standard Sizes',
'from' => 'wikidatapagebanner',
'type' => 'integers',
'overridedefault' => [
320,
640,
1280,
2560,
],
'section' => 'other',
'help' => 'Is an array of standard predefined screen widths which increases in order of size.',
'requires' => [],
],
'wmgMirahezeFeaturedFeedsInUserLanguage' => [
'name' => 'Should feeds honor the user\'s preferred language?',
'from' => 'featuredfeeds',
'type' => 'check',
'overridedefault' => false,
'section' => 'other',
'help' => 'This option sets <code>$wgFeaturedFeedsDefaults["inUserLanguage"]</code>',
'requires' => [],
],
// Beta Feature related stuff
'wgEchoUseCrossWikiBetaFeature' => [
'name' => 'Enable Echo Cross Wiki Beta Feature',
'from' => 'echo',
'global' => true,
'type' => 'check',
'overridedefault' => true,
'section' => 'beta',
'help' => 'Feature flag for the cross-wiki notifications beta feature.',
'requires' => [],
],
'wgMediaViewerIsInBeta' => [
'name' => 'Enable Media Viewer Beta Mode',
'from' => 'multimediaviewer',
'type' => 'check',
'overridedefault' => false,
'section' => 'beta',
'help' => 'This makes Media Viewer a beta feature thus this will not be enabled for all users.',
'requires' => [],
],
'wgMFEnableBeta' => [
'name' => 'MobileFrontend Enable Beta',
'from' => 'mobilefrontend',
'type' => 'check',
'overridedefault' => true,
'section' => 'beta',
'help' => 'Whether to enable beta mode to allow experimental features for anonymous users.',
'requires' => [],
],
'wgPopupsReferencePreviewsBetaFeature' => [
'name' => 'Popups Reference Previews Beta Feature',
'from' => 'popups',
'type' => 'check',
'overridedefault' => true,
'section' => 'beta',
'help' => 'Whether Reference Previews should be available as a Beta feature. If false, Reference Previews are enabled for all users by default.',
'requires' => [],
],
'wgPopupsOptInDefaultState' => [
'name' => 'Popups Opt In Default State',
'from' => 'popups',
'type' => 'integer',
'minint' => 0,
'maxint' => 1,
'overridedefault' => 0,
'section' => 'beta',
'help' => 'Default Page Previews visibility. Has to be a string as a compatibility with beta feature settings.',
'requires' => [],
],
'wgVisualEditorEnableDiffPageBetaFeature' => [
'name' => 'Enable VisualEditor Diff Page Beta Feature',
'from' => 'visualeditor',
'type' => 'check',
'overridedefault' => false,
'section' => 'beta',
'help' => 'Enable the new visual mode as a beta feature on revision difference pages.',
'requires' => [],
],
'wgVisualEditorEnableWikitextBetaFeature' => [
'name' => 'Enable VisualEditor Wikitext Beta Feature',
'from' => 'visualeditor',
'type' => 'check',
'overridedefault' => false,
'section' => 'beta',
'help' => 'Enable the new wikitext mode inside the visual editor as a beta feature. It has many of the tools present in the visual editor, uses a similar design, and allows better switching between the two.',
'requires' => [],
],
'wgVisualEditorShowBetaWelcome' => [
'name' => 'Enable VisualEditor Show Beta Welcome',
'from' => 'visualeditor',
'type' => 'check',
'overridedefault' => true,
'section' => 'beta',
'help' => 'Shows a beta welcome for users of VisualEditor.',
'requires' => [],
],
// Categories
'wgCategoryPagingLimit' => [
'name' => 'Category Paging Limit',
'from' => 'mediawiki',
'global' => true,
'type' => 'integer',
'minint' => 25,
'maxint' => 5000,
'overridedefault' => 200,
'section' => 'categories',
'help' => 'Paging limit for items in categories.',
'requires' => [],
],
'wgMSCS_WarnNoCategories' => [
'name' => 'MsCatSelect warn no categories',
'from' => 'mscatselect',
'type' => 'check',
'overridedefault' => true,
'section' => 'categories',
'help' => 'By default, if you try to save a page that has no categories assigned, MsCatSelect will ask for confirmation. If you wish to avoid this, unset this option.',
'requires' => [],
],
'wgCategoryTreeDefaultMode' => [
'name' => 'Category Tree Default Mode',
'from' => 'categorytree',
'type' => 'list',
'overridedefault' => 0,
'section' => 'categories',
'options' => [
'Category' => 0,
'Pages' => 10,
'All' => 20,
'Parents' => 100,
],
'help' => 'the default mode to use when no mode attribute is specified in a <categorytree> tag. You also need to set "Category Tree Category Page Mode" if you select the page mode.',
'requires' => [],
],
'wgCategoryTreeCategoryPageMode' => [
'name' => 'Category Tree Category Page Mode',
'from' => 'categorytree',
'type' => 'list',
'overridedefault' => 0,
'section' => 'categories',
'options' => [
'Category' => 0,
'Pages' => 10,
'All' => 20,
'Parents' => 100,
],
'help' => 'The mode to use when rendering trees on category pages.',
'requires' => [],
],
// Discussion
'wgCommentStreamsEnableSearch' => [
'name' => 'CommentStreams Enable Search',
'from' => 'commentstreams',
'type' => 'check',
'overridedefault' => true,
'section' => 'discussion',
'help' => 'Allow comments and their titles to appear in search results and search auto-complete?',
'requires' => [],
],
'wgCommentStreamsNewestStreamsOnTop' => [
'name' => 'CommentStreams Newest Streams On Top',
'from' => 'commentstreams',
'type' => 'check',
'overridedefault' => true,
'section' => 'discussion',
'help' => 'Show newer comments first',
'requires' => [],
],
'wgCommentStreamsUserAvatarPropertyName' => [
'name' => 'CommentStreams User Avatar Property Name',
'from' => 'commentstreams',
'type' => 'check',
'overridedefault' => false,
'section' => 'discussion',
'help' => 'If SocialProfile is enabled, it will display an avatar',
'requires' => [],
],
'wgCommentStreamsEnableVoting' => [
'name' => 'CommentStreams Enable Voting',
'from' => 'commentstreams',
'type' => 'check',
'overridedefault' => false,
'section' => 'discussion',
'help' => 'Allows logged in users to vote thumbs up, thumbs down, or neither on top level comments.',
'requires' => [],
],
'wgCommentStreamsModeratorFastDelete' => [
'name' => 'CommentStreams Moderator Fast Delete',
'from' => 'commentstreams',
'type' => 'check',
'overridedefault' => false,
'section' => 'discussion',
'help' => 'allows users with csdelete right to delete a comment and all of its replies in one action rather than having to individually delete all of the replies first.',
'requires' => [],
],
'wgCommentsSortDescending' => [
'name' => 'Sort Comments by Descending',
'from' => 'comments',
'type' => 'check',
'overridedefault' => false,
'section' => 'discussion',
'help' => 'This sorts comments by descending date, with the new comment box and most recent comments at the top when enabled.',
'requires' => [],
],
'wgWebChatServer' => [
'name' => 'WebChat Server',
'from' => 'webchat',
'type' => 'text',
'overridedefault' => '',
'section' => 'discussion',
'help' => 'IRC Server to connect to, not required when using the Libera web client.',
'requires' => [],
],
'wgWebChatChannel' => [
'name' => 'WebChat Channel',
'from' => 'webchat',
'type' => 'text',
'overridedefault' => '',
'section' => 'discussion',
'help' => 'Channel to connect to.',
'requires' => [],
],
'wgWebChatClient' => [
'name' => 'WebChat Client',
'from' => 'webchat',
'type' => 'list',
'options' => [
'Libera' => 'LiberaChat',
'Other Server' => 'Mibbit',
],
'overridedefault' => 'LiberaChat',
'section' => 'discussion',
'help' => 'This sets the web client to use. If you are not using Libera, select Other Server.',
'requires' => [],
],
'wgWikiForumAllowAnonymous' => [
'name' => 'WikiForum Allow Anonymous',
'from' => 'wikiforum',
'type' => 'check',
'overridedefault' => true,
'section' => 'discussion',
'help' => 'Allow Anonymous (users who are not logged in) to use WikiForum',
'requires' => [],
],
// Editing
'wgCampaignEventsProgramsAndEventsDashboardInstance' => [
'name' => 'CampaignEvents Programs and Events Dashboard Instance',
'from' => 'campaignevents',
'type' => 'list',
'options' => [
'Production' => 'production',
'Staging' => 'staging',
],
'overridedefault' => null,
'section' => 'editing',
'help' => 'Determines which instance of the P&E Dashboard should be used.',
'requires' => [],
],
'wgCampaignEventsEnableWikimediaParticipantQuestions' => [
'name' => 'CampaignEvents Enable Wikimedia Participant Questions',
'from' => 'campaignevents',
'type' => 'check',
'overridedefault' => true,
'section' => 'editing',
'help' => 'Whether to enable Wikimedia-specific questions that can be asked to participants, such as whether they belong to a Wikimedia affiliate.',
'requires' => [],
],
'wgEditSimilarMaxResultsPool' => [
'name' => 'EditSimilar Max Results Pool',
'from' => 'editsimilar',
'type' => 'integer',
'minint' => 0,
'maxint' => 100,
'overridedefault' => 50,
'section' => 'editing',
'help' => 'This is the maximum pool of results to choose randomly from.',
'requires' => [],
],
'wgEditSimilarMaxResultsToDisplay' => [
'name' => 'EditSimilar Max Results to Display',
'from' => 'editsimilar',
'type' => 'integer',
'minint' => 0,
'maxint' => 100,
'overridedefault' => 3,
'section' => 'editing',
'help' => 'The maximum number of chosen results to display.',
'requires' => [],
],
'wgEditSimilarCounterValue' => [
'name' => 'EditSimilar Counter Value',
'from' => 'editsimilar',
'type' => 'integer',
'minint' => 0,
'maxint' => 10,
'overridedefault' => 1,
'section' => 'editing',
'help' => 'This number specifies per which number of edits will show the results\' message, this means every time results are found a message is shown.',
'requires' => [],
],
'wgEditSimilarAlwaysShowThanks' => [
'name' => 'EditSimilar Always Show Thanks',
'from' => 'editsimilar',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Whether to thank for an edit even when there are no results.',
'requires' => [],
],
'wmgWikiLicense' => [
'name' => 'Content License',
'from' => 'mediawiki',
'global' => true,
'type' => 'list',
'options' => [
'All Rights Reserved' => 'arr',
'Creative Commons BY 4.0' => 'cc-by',
'Creative Commons BY-NC 4.0' => 'cc-by-nc',
'Creative Commons BY-ND 4.0' => 'cc-by-nd',
'Creative Commons BY-SA 4.0' => 'cc-by-sa',
'Creative Commons BY-SA 2.0 Korea' => 'cc-by-sa-2-0-kr',
'Creative Commons BY-SA-NC 4.0' => 'cc-by-sa-nc',
'Creative Commons BY-NC-ND 4.0' => 'cc-by-nc-nd',
'Public Domain' => 'cc-pd',
'GNU General Public V3' => 'gpl-v3',
'GNU Free Document License 1.3' => 'gfdl',
'No license provided' => 'empty',
],
'overridedefault' => 'cc-by-sa',
'section' => 'editing',
'help' => 'Each wiki on Miraheze is by default licensed under CC-BY-SA 4.0 although this can be changed to another supported license. If you would like to release the contributions on your wiki under another license, please let us know so that we can make it available to you. Be aware that changing the license on your wiki can have an impact on your community and should not be done lightly.',
'requires' => [],
],
'wgActiveUserDays' => [
'name' => 'Active User Days',
'from' => 'mediawiki',
'global' => true,
'type' => 'integer',
'minint' => 0,
'maxint' => 400,
'overridedefault' => 30,
'section' => 'editing',
'help' => 'The number of days within which a person must make edits to be considered an "active" user.',
'requires' => [],
],
'wgMFAmcOutreach' => [
'name' => 'MobileFrontend AMC Outreach',
'from' => 'mobilefrontend',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Whether the AMC Outreach feature is available for users.',
'requires' => [],
],
'wgMFAmcOutreachMinEditCount' => [
'name' => 'MobileFrontend AMC Outreach Min Edit Count',
'from' => 'mobilefrontend',
'type' => 'integer',
'minint' => 0,
'maxint' => 1000,
'overridedefault' => 100,
'section' => 'editing',
'help' => 'When AMC Outreach is enabled, this option sets the minimum number of edits a user must make before they are eligible to see the AMC Outreach feature.',
'requires' => [
'settings' => [
'setting' => 'wgMFAmcOutreach',
'value' => true,
],
],
],
'wgMFAdvancedMobileContributions' => [
'name' => 'MobileFrontend Advanced Mobile Contributions',
'from' => 'mobilefrontend',
'type' => 'check',
'overridedefault' => true,
'section' => 'editing',
'help' => 'Whether Advanced mode is enabled for mobile users or not.',
'requires' => [],
],
'wgMFEnableVEWikitextEditor' => [
'name' => 'MobileFrontend Enable VisualEditor\'s Wikitext Editor Mode',
'from' => 'mobilefrontend',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Enable Extension:VisualEditor\'s wikitext editor instead of MobileFrontend\'s source editor.',
'requires' => [
'extensions' => [
'visualeditor',
],
],
],
'wgMFDefaultEditor' => [
'name' => 'MobileFrontend Default Editor',
'from' => 'mobilefrontend',
'type' => 'list',
'overridedefault' => 'preference',
'options' => [
'Source editor' => 'source',
'Visual editor' => 'visual',
'Default to user preferences' => 'preference',
],
'section' => 'editing',
'help' => 'Default mobile editor to use when there is no user preference set.',
'requires' => [
'extensions' => [
'visualeditor',
],
],
],
'wgMFFallbackEditor' => [
'name' => 'MobileFrontend Fallback Editor',
'from' => 'mobilefrontend',
'type' => 'list',
'overridedefault' => 'visual',
'options' => [
'Source editor' => 'source',
'Visual editor' => 'visual'
],
'section' => 'editing',
'help' => 'When $wgMFDefaultEditor is set to <code>preference</code> and no desktop preference is set, use this editor. Set to <code>source</code> or <code>visual</code>.',
'requires' => [
'extensions' => [