forked from miraheze/mw-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathManageWikiSettings.php
2949 lines (2928 loc) · 92.3 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.
*
* 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 or a 'global' extension, use 'mediawiki'.
* 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).
* 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.
* namespace: adds dropdown to select one namespace.
* namespaces: see above, except multiple namespaces.
* 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.
*/
$wgManageWikiSettings = [
// Anti-Spam
'wgAbuseFilterActions' => [
'name' => 'AbuseFilter Actions',
'from' => 'mediawiki',
'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 $wgAbuseFilterRestrictions and, if it is, don\'t forget to add the abusefilter-modify-restricted right to the appropriate user groups.',
'requires' => [],
],
'wgAutoblockExpiry' => [
'name' => 'Autoblock Expiry',
'from' => 'mediawiki',
'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',
'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',
'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',
'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',
'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',
'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' => [],
],
'wgFlaggedRevsProtection' => [
'name' => 'Flagged Revs Protection',
'from' => 'flaggedrevs',
'type' => 'check',
'overridedefault' => false,
'section' => 'anti-spam',
'help' => 'This enables Flagged Revs Protection.',
'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' => [],
],
// Beta Feature related stuff
'wgEchoUseCrossWikiBetaFeature' => [
'name' => 'Enable Echo Cross Wiki Beta Feature',
'from' => 'mediawiki',
'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',
'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' => [],
],
'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' => [],
],
// Edit
'wmgWikiLicense' => [
'name' => 'Content License',
'from' => 'mediawiki',
'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',
'No license provided' => 'empty',
],
'overridedefault' => 'cc-by-sa',
'section' => 'edit',
'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',
'type' => 'integer',
'minint' => 0,
'maxint' => 400,
'overridedefault' => 30,
'section' => 'edit',
'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',
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'help' => 'Show more authors.',
'requires' => [],
],
'wgVisualEditorEnableWikitext' => [
'name' => 'Enable VisualEditor Wikitext mode',
'from' => 'visualeditor',
'type' => 'check',
'overridedefault' => false,
'section' => 'edit',
'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' => 'edit',
'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' => 'edit',
'help' => 'Enable the new visual mode on revision difference pages by default (not Beta).',
'requires' => [],
],
'wgCodeEditorEnableCore' => [
'name' => 'CodeEditor Enable Core',
'from' => 'codeeditor',
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'help' => 'To disable the editor on JavaScript and CSS pages in the MediaWiki, User and other core namespaces, unset this option.',
'requires' => [],
],
'wgReplaceTextResultsLimit' => [
'name' => 'Replace Text Results Limit',
'from' => 'replacetext',
'type' => 'integer',
'minint' => 10,
'maxint' => 500,
'overridedefault' => 250,
'section' => 'edit',
'help' => 'Limit for Replace Text results.',
'requires' => [],
],
'wgScribuntoUseCodeEditor' => [
'name' => 'Scribunto Use CodeEditor',
'from' => 'codeeditor',
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'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' => 'edit',
'help' => 'Use SyntaxHighlight_GeSHi extension to highlight syntax.',
'requires' => [],
],
'wgPageCreationLog' => [
'name' => 'Page Creation Log',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'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',
'type' => 'check',
'overridedefault' => false,
'section' => 'edit',
'help' => 'Whether to allow users to select a expiry time when adding an item to their watchlist',
'requires' => [],
],
// Links
'wgArticleCountMethod' => [
'name' => 'Article Count Method',
'from' => 'mediawiki',
'type' => 'list',
'options' => [
'Link' => 'link',
'Any' => 'any',
],
'overridedefault' => 'link',
'section' => 'links',
'help' => 'Method used to determine if a page in a content namespace should be counted as a valid content page (article).',
'requires' => [],
'script' => [
"$IP/maintenance/updateArticleCount.php" => [
'update' => false,
],
],
],
'wgCapitalLinks' => [
'name' => 'Capital Links',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'links',
'help' => 'Unset this to avoid forcing the first letter of links to capitals. Warning: This may break your existing wiki links.',
'requires' => [],
],
'wgDisplayTitleHideSubtitle' => [
'name' => 'Don\'t display the page\'s original title below the display title',
'from' => 'displaytitle',
'type' => 'check',
'overridedefault' => false,
'section' => 'links',
'help' => 'Set this to hide the page\'s original title as a subtitle below the title bar, shown by the Display Title extension.',
'requires' => [],
],
'wgEnableCanonicalServerLink' => [
'name' => 'Enable Canonical Server Link',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => false,
'section' => 'links',
'help' => 'Output a <link rel="canonical"> tag on every page indicating the canonical server which should be used, i.e. $wgServer or $wgCanonicalServer.',
'requires' => [],
],
'wgExternalLinkTarget' => [
'name' => 'External Link Target',
'from' => 'mediawiki',
'type' => 'list',
'options' => [
'Blank' => '_blank',
'Default' => false,
],
'overridedefault' => false,
'section' => 'links',
'help' => 'Set a default target for external links.',
'requires' => [],
],
'wgNoFollowLinks' => [
'name' => 'NoFollow Links',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'links',
'help' => 'If enabled, external links in wikitext will be given the <code>rel="nofollow"</code> attribute.',
'requires' => [],
],
'wgRottenLinksCurlTimeout' => [
'name' => 'RottenLinks Timeout Threshold',
'from' => 'mediawiki',
'type' => 'integer',
'minint' => 5,
'maxint' => 120,
'overridedefault' => 10,
'section' => 'links',
'help' => 'Number of seconds before a RottenLinks request returns no response. Min: 5. Max: 120.',
'requires' => [],
],
// Localisation (E.G i18n/timezone etc)
'wgLocaltimezone' => [
'name' => 'Timezone',
'from' => 'mediawiki',
'type' => 'timezone',
'overridedefault' => 'UTC',
'section' => 'localisation',
'help' => 'This will adapt your wikis time over clock to whatever timezone you choose for all users, however it can be changed through user\'s preferences.',
'requires' => [],
],
'wgTranslateDocumentationLanguageCode' => [
'name' => 'Translate Documentation Language Code',
'from' => 'translate',
'type' => 'list',
'options' => [
'info' => 'info',
'No Documentation' => false,
'qqq' => 'qqq',
],
'overridedefault' => false,
'section' => 'localisation',
'help' => 'Language code for message documentation.',
'requires' => [],
],
'wgTranslatePageTranslationULS' => [
'name' => 'Translate Page Translation ULS',
'from' => 'translate',
'type' => 'check',
'overridedefault' => false,
'section' => 'localisation',
'help' => 'When user changes interface language via ULS, should we also switch the language of the translatable page?',
'requires' => [],
],
'wgMinervaAlwaysShowLanguageButton' => [
'name' => 'Minerva Always Show Language Button',
'from' => 'minervaneue',
'type' => 'check',
'overridedefault' => true,
'section' => 'localisation',
'help' => 'Whether to show the language switcher button even if no languages are available for the page.',
'requires' => [],
],
'wgULSAnonCanChangeLanguage' => [
'name' => 'ULS Anon Can Change Language',
'from' => 'universallanguageselector',
'type' => 'check',
'overridedefault' => false,
'section' => 'localisation',
'help' => 'Enabling allows anonymous users to control the language they view the wiki in.',
'requires' => [],
],
'wgULSPosition' => [
'name' => 'ULS Position',
'from' => 'universallanguageselector',
'type' => 'list',
'options' => [
'interlanguage' => 'interlanguage',
'personal' => 'personal',
],
'overridedefault' => 'personal',
'section' => 'localisation',
'help' => 'The location and the form of the language selection trigger.',
'requires' => [],
],
'wgPageLanguageUseDB' => [
'name' => 'Enable per page language',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => false,
'section' => 'localisation',
'help' => 'Allows to change the page language for MediaWiki pages.',
'requires' => [],
],
// Maps (E.G navigation)
'wgKartographerWikivoyageMode' => [
'name' => 'Kartographer Wikivoyage Mode',
'from' => 'kartographer',
'type' => 'check',
'overridedefault' => false,
'section' => 'maps',
'help' => 'Enables Wikivoyage mode.',
'requires' => [],
],
'wgKartographerUseMarkerStyle' => [
'name' => 'Kartographer Use Marker Style',
'from' => 'kartographer',
'type' => 'check',
'overridedefault' => false,
'section' => 'maps',
'help' => 'Allows Kartographer to extract CSS style to be used by the link from the GeoJSON.',
'requires' => [],
],
// Parser Functions
'wgDLPAllowUnlimitedResults' => [
'name' => 'DLP Allow Unlimited Results',
'from' => 'dynamicpagelist',
'type' => 'check',
'overridedefault' => false,
'section' => 'parserfunctions',
'help' => 'Allows unlimited results with DynamicPageList (Wikimedia).',
'requires' => [],
],
'wgDLPAllowUnlimitedCategories' => [
'name' => 'DLP Allow Unlimited Categories',
'from' => 'dynamicpagelist',
'type' => 'check',
'overridedefault' => false,
'section' => 'parserfunctions',
'help' => 'Allows unlimited categories with DynamicPageList (Wikimedia).',
'requires' => [],
],
'wgEnableScaryTranscluding' => [
'name' => 'Enable Scary Transcluding',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'parserfunctions',
'help' => 'Allow templates to be imported/transcluded from another wiki.',
'requires' => [],
],
'wgAllowSlowParserFunctions' => [
'name' => 'Allow slow parser functions',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => false,
'section' => 'parserfunctions',
'help' => 'Parser functions are "magic words" that return a value or function, such as time, site details or page names.',
'requires' => [],
],
'wgPFEnableStringFunctions' => [
'name' => 'Enable string function functionality',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => false,
'section' => 'parserfunctions',
'help' => 'This option adds support a couple of functions for basic string handling. Example: #pos function returns the position of a given search term within the string. You can learn more in MediaWiki\'s <a href="https://www.mediawiki.org/wiki/Module:String">documentation page</a>',
'requires' => [],
],
'wgAllowDisplayTitle' => [
'name' => 'Allow Display Title',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'parserfunctions',
'help' => 'Allows use of {{DISPLAYTITLE}} magic word.',
'requires' => [],
],
'wgRestrictDisplayTitle' => [
'name' => 'Restrict Display Title',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'parserfunctions',
'help' => 'Restrict {{DISPLAYTITLE}} to titles that normalize to the same canonical database key. Wikis with NoTitle extension installed have this config unset.',
'requires' => [],
],
// Media/File
'wgEnableUploads' => [
'name' => 'Enable File Uploads',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'media',
'help' => 'Check or uncheck this option if you want to enable or disable the upload of files on your wiki.',
'requires' => [],
],
'wgAllowCopyUploads' => [
'name' => 'Enable File Uploads Through URL',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'By default, Miraheze enables file upload only from a local media but with this option you can upload files remotely from other sites.',
'requires' => [],
],
'wgCopyUploadsFromSpecialUpload' => [
'name' => 'Enable File Uploads Through URL on Special:Upload',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'This option adds a textbox on Special:Upload enabling you to upload files from any URL.',
'requires' => [],
],
'wgUseInstantCommons' => [
'name' => 'Enable Wikimedia Commons Files',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'media',
'help' => 'This option allows you to use the WikiMedia Commons file database on your wiki.',
'requires' => [],
],
'wgMirahezeCommons' => [
'name' => 'Enable Miraheze Commons (linking to commons.miraheze.org)',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'media',
'help' => 'This option allows you to use the Miraheze Commons file database on your wiki.',
'requires' => [],
],
'wgShowArchiveThumbnails' => [
'name' => 'Show Old Thumbnails On Description Page',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'media',
'help' => 'Whether to show thumbnails for old images on the image\'s description page.',
'requires' => [],
],
'wgAllowExternalImages' => [
'name' => 'Allow External Images',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'Determines whether or not MediaWiki will allow external images to be rendered inline with text',
'requires' => [],
],
'wgNativeImageLazyLoading' => [
'name' => 'Native Image Lazy Loading',
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'Toggles native image lazy loading, via the "loading" attribute.',
'requires' => [],
],
'wgSVGConverter' => [
'name' => 'SVG Converter',
'from' => 'mediawiki',
'type' => 'list',
'options' => [
'Inkscape' => 'inkscape',
'ImageMagick' => 'ImageMagick',
],
'overridedefault' => 'ImageMagick',
'section' => 'media',
'help' => 'This picks the converter to convert Scalable Vector Graphics (SVG) to PNG. You may want to choose Inkscape if your SVG->PNG conversion results in a black image.',
'requires' => [],
],
'wgMediaViewerEnableByDefault' => [
'name' => 'MediaViewer Enable By Default',
'from' => 'multimediaviewer',
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'This enables MediaViewer for everyone.',
'requires' => [],
],
'wgMSU_checkAutoCat' => [
'name' => 'MsUpload check auto cat',
'from' => 'msupload',
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'If set, sets the checkbox for adding a category to a page by default.',
'requires' => [],
],
'wgMSU_confirmReplace' => [
'name' => 'MsUpload confirm replace',
'from' => 'msupload',
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'If set, shows the "Replace file" checkbox.',
'requires' => [],
],
'wgMSU_showAutoCat' => [
'name' => 'MsUpload show auto cat',
'from' => 'msupload',
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'If set, files uploaded while editing a category page will be added to that category.',
'requires' => [],
],
'wgMSU_useDragDrop' => [
'name' => 'MsUpload use drag and drop',
'from' => 'msupload',
'type' => 'check',
'overridedefault' => true,
'section' => 'media',
'help' => 'If set, the drag & drop area will be shown.',
'requires' => [],
],
'wgMaxImageArea' => [
'name' => 'Max Image Area',
'from' => 'mediawiki',
'type' => 'text',
'overridedefault' => '1.25e7',