-
-
Notifications
You must be signed in to change notification settings - Fork 248
/
ManageWikiSettings.php
4851 lines (4828 loc) · 164 KB
/
ManageWikiSettings.php
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.
* 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:
*
* 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 it requires more than 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.
* settings: an array.
*
* '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.
*/
$wgManageWikiSettings = [
// Anti-Spam
'wgAbuseFilterActions' => [
'name' => 'AbuseFilter Actions',
'from' => 'abusefilter',
'global' => true,
'type' => 'list-multi-bool',
'allopts' => [
'block',
'blockautopromote',
'degroup',
'disallow',
'tag',
'throttle',
'warn',
],
'options' => [
'Block' => 'block',
'BlockAutopromote' => 'blockautopromote',
'Degroup' => 'degroup',
'Disallow' => 'disallow',
'Tag' => 'tag',
'Throttle' => 'throttle',
'Warn' => 'warn',
],
'overridedefault' => [
'block' => true,
'blockautopromote' => true,
'degroup' => true,
'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' => [],
],
'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' => [
'extensions' => [
'rss',
],
],
],
'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' => [
'extensions' => [
'rss',
],
],
],
'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' => [
'extensions' => [
'rss',
],
],
],
'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' => [],
],
'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' => [],
],
'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' => [],
],
'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' => [],
],
'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',
],
],
],
],
// 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' => [],
],
'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
'wgChatLinkUsernames' => [
'name' => 'Chat Link to Usernames',
'from' => 'mediawikichat',
'type' => 'check',
'overridedefault' => false,
'section' => 'discussion',
'help' => 'Link to user pages in the main chat window.',
'requires' => [],
],
'wgChatMeCommand' => [
'name' => 'Chat Me Command',
'from' => 'mediawikichat',
'type' => 'check',
'overridedefault' => false,
'section' => 'discussion',
'help' => 'Enable "/me <text>" command that prints a status-type message.',
'requires' => [],
],
'wgCommentStreamsEnableTalk' => [
'name' => 'CommentStreams Enable Talk',
'from' => 'commentstreams',
'type' => 'check',
'overridedefault' => false,
'section' => 'discussion',
'help' => 'Enable in talk namespaces',
'requires' => [],
],
'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
'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' => [],
],
'wgShowCreditsIfMax' => [
'name' => 'Editing attribution',
'from' => 'mediawiki',
'global' => true,
'type' => 'check',
'overridedefault' => true,
'section' => 'editing',
'help' => 'If there are more authors than specified in $wgMaxCredits, link the rest in a separate credits page.',
'requires' => [],
],
'wgWikiEditorRealtimePreview' => [
'name' => 'Enable WikiEditor Realtime Preview mode?',
'from' => 'wikieditor',
'global' => true,
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Enables WikiEditor\'s Realtime Preview mode which shows you a realtime preview of your edits in a side pane.',
'requires' => [],
],
'wgVisualEditorEnableWikitext' => [
'name' => 'Enable VisualEditor Wikitext mode',
'from' => 'visualeditor',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'This option allow you to read Wikitext syntax on VisualEditor.',
'requires' => [],
],
'wgVisualEditorUseSingleEditTab' => [
'name' => 'VisualEditor Use Single Edit Tab',
'from' => 'visualeditor',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Shows only the "edit" tab. Uses VisualEditor by default if "Make VisualEditor the default editor for all" is set, otherwise defaults to Wikitext.',
'requires' => [],
],
'wgVisualEditorEnableDiffPage' => [
'name' => 'Enable VisualEditor Diff Page',
'from' => 'visualeditor',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Enable the new visual mode on revision difference pages by default (not Beta).',
'requires' => [],
],
'wgVisualEditorTransclusionDialogSuggestedValues' => [
'name' => 'Enable VisualEditor Transclusion Dialog Suggested Values',
'from' => 'visualeditor',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Enable suggested values in the transclusion dialog. (experimental)',
'requires' => [],
],
'wgVisualEditorTransclusionDialogInlineDescriptions' => [
'name' => 'Enable VisualEditor Transclusion Dialog Inline Descriptions',
'from' => 'visualeditor',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Enable inline parameter descriptions in the transclusion dialog. (experimental)',
'requires' => [],
],
'wgVisualEditorTransclusionDialogBackButton' => [
'name' => 'Enable VisualEditor Transclusion Dialog Back Button',
'from' => 'visualeditor',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Enable the back button in the transclusion dialog when inserting a new template. (experimental)',
'requires' => [],
],
'wgVisualEditorTransclusionDialogNewSidebar' => [
'name' => 'Enable VisualEditor Transclusion Dialog New Sidebar',
'from' => 'visualeditor',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Enable the new sidebar in the transclusion dialog. (experimental)',
'requires' => [],
],
'wgVisualEditorTemplateSearchImprovements' => [
'name' => 'Enable VisualEditor Template Search Improvements',
'from' => 'visualeditor',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Enable various changes around searching for template names. (experimental)',
'requires' => [],
],
'wgMFCollapseSectionsByDefault' => [
'name' => 'Collapse sections by default on MobileFrontend',
'from' => 'mobilefrontend',
'type' => 'check',
'overridedefault' => true,
'section' => 'styling',
'help' => 'Enabling this will collapse sections by default when the page loads when using MobileFrontend.',
'requires' => [],
],
'wgMFDefaultEditor' => [
'name' => 'Default MobileFrontend 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' => [],
],
'wgCodeEditorEnableCore' => [
'name' => 'CodeEditor Enable Core',
'from' => 'codeeditor',
'type' => 'check',
'overridedefault' => true,
'section' => 'editing',
'help' => 'To disable the editor on JavaScript and CSS pages in the MediaWiki, User and other core namespaces, unset this option.',
'requires' => [],
],
'wgScribuntoUseCodeEditor' => [
'name' => 'Scribunto Use CodeEditor',
'from' => 'codeeditor',
'type' => 'check',
'overridedefault' => true,
'section' => 'editing',
'help' => 'Set this to use it when editing Module pages.',
'requires' => [],
],
'wgScribuntoUseGeSHi' => [
'name' => 'Scribunto Use GeSHi (SyntaxHighlight)',
'from' => 'syntaxhighlight_geshi',
'type' => 'check',
'overridedefault' => true,
'section' => 'editing',
'help' => 'Use SyntaxHighlight_GeSHi extension to highlight syntax.',
'requires' => [],
],
'wgPageCreationLog' => [
'name' => 'Page Creation Log',
'from' => 'mediawiki',
'global' => true,
'type' => 'check',
'overridedefault' => true,
'section' => 'editing',
'help' => 'Whether to maintain a log of new page creations, which can be viewed at Special:Log/create.',
'requires' => [],
],
'wgWatchlistExpiry' => [
'name' => 'Allow Watchlist Expiry Time',
'from' => 'mediawiki',
'global' => true,
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Whether to allow users to select a expiry time when adding an item to their watchlist',
'requires' => [],
],
'wgHeaderTabsRenderSingleTab' => [
'name' => 'Header Tabs Render Single Tab',
'from' => 'headertabs',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Whether Header Tabs should only activate if a single top-level header is found.',
'requires' => [],
],
'wgHeaderTabsDisableDefaultToc' => [
'name' => 'Header Tabs Disable Default Toc',
'from' => 'headertabs',
'type' => 'check',
'overridedefault' => true,
'section' => 'editing',
'help' => 'Whether Header Tabs should disable the MediaWiki article\'s table of contents when tabs are enabled for a given article.',
'requires' => [],
],
'wgHeaderTabsGenerateTabTocs' => [
'name' => 'Header Tabs Generate Tab Tocs',
'from' => 'headertabs',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Whether Header Tabs should try to generate a TOC for each tab.',
'requires' => [],
],
'wgHeaderTabsEditTabLink' => [
'name' => 'Header Tabs Edit Tab Link',
'from' => 'headertabs',
'type' => 'check',
'overridedefault' => true,
'section' => 'editing',
'help' => 'Whether Header Tabs should add an edit link to the right of the tabs which let you edit only the tabs\' text.',
'requires' => [],
],
'wgArticleCreationLandingPage' => [
'name' => 'Article Creation Landing Page',
'from' => 'articlecreationworkflow',
'type' => 'wikipage',
'exists' => false,
'overridedefault' => 'Project:Article wizard',
'section' => 'editing',
'help' => 'The name of the wiki page to which users should be redirected if intercepted.',
'requires' => [],
],
'wgRPRatingPageBlacklist' => [
'name' => 'Rating Page Blacklist',
'from' => 'ratepage',
'type' => 'wikipages',
'exists' => false,
'overridedefault' => [],
'section' => 'editing',
'help' => 'Page titles that are not allowed to be rated.',
'requires' => [],
],
'wgRPAddSidebarSection' => [
'name' => 'Rate Page Add Sidebar Section',
'from' => 'ratepage',
'type' => 'check',
'overridedefault' => true,
'section' => 'editing',
'help' => 'Whether to add the default sidebar section for the widget.',
'requires' => [],
],
'wgRPSidebarPosition' => [
'name' => 'Rate Page Sidebar Position',
'from' => 'ratepage',
'type' => 'integer',
'minint' => 1,
'maxint' => 9,
'overridedefault' => 2,
'section' => 'editing',
'help' => 'Integer indicating where in the sidebar should the widget be placed.',
'requires' => [],
],
'wgRPShowResultsBeforeVoting' => [
'name' => 'Rate Page Show Results Before Voting',
'from' => 'ratepage',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Whether to show page\'s rating before the user votes.',
'requires' => [],
],
'wgPageFormsRenameEditTabs' => [
'name' => 'Page Forms Rename Edit Tabs',
'from' => 'pageforms',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',
'help' => 'Rename the "edit with form" tab to "edit", and the "edit" tab to "edit source" (in whatever language the wiki is being viewed in).',
'requires' => [],
],
'wgPageFormsRenameMainEditTab' => [
'name' => 'Page Forms Rename Main Edit Tab',
'from' => 'pageforms',
'type' => 'check',
'overridedefault' => false,
'section' => 'editing',