forked from miraheze/mw-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLocalSettings.php
4318 lines (4123 loc) · 98.8 KB
/
LocalSettings.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
/*
* LocalSettings.php for Miraheze.
* Authors of initial version: Southparkfan, John Lewis, Orain contributors
*/
/**
* Configure PHP request timeouts.
*/
if ( PHP_SAPI === 'cli' ) {
// Should always be unlimited, this is probably redundant
$wgRequestTimeLimit = 0;
} else {
switch ( $_SERVER['HTTP_HOST'] ?? '' ) {
case 'mwtask1.miraheze.org':
$wgRequestTimeLimit = 1200;
break;
default:
if ( $_SERVER['REQUEST_METHOD'] === 'POST' ) {
$wgRequestTimeLimit = 200;
} else {
$wgRequestTimeLimit = 60;
}
}
}
// Initialise WikiInitialise
require_once '/srv/mediawiki/w/extensions/CreateWiki/includes/WikiInitialise.php';
$wi = new WikiInitialise();
// Load PrivateSettings (e.g. $wgDBpassword)
require_once '/srv/mediawiki/config/PrivateSettings.php';
// Load global skins and extensions
require_once '/srv/mediawiki/config/GlobalSkins.php';
require_once '/srv/mediawiki/config/GlobalExtensions.php';
// Don't allow web access.
if ( !defined( 'MEDIAWIKI' ) ) {
die( 'Not an entry point.' );
}
$wgPasswordSender = '[email protected]';
$wmgUploadHostname = 'static.miraheze.org';
$wi->setVariables(
'/srv/mediawiki/cache',
[
'wiki'
],
[
'miraheze.org' => 'wiki'
]
);
$wi->config->settings += [
// JQuery Migration Test - Remove during 1.37 deployment or pre 1.38
'wgIncludejQueryMigrate' => [
'default' => true,
'test3wiki' => false,
'testwiki' => false,
'snapwikiwiki' => false,
],
// invalidates user sessions - do not change unless it is an emergency.
'wgAuthenticationTokenVersion' => [
'default' => '5',
],
// 3D
'wg3dProcessor' => [
'wmgUse3D' => [
'/usr/bin/xvfb-run',
'-a',
'-s',
'-ac -screen 0 1280x1024x24',
'/srv/3d2png/3d2png.js',
],
],
// AbuseFilter
'wgAbuseFilterActions' => [
'default' => [
'block' => true,
'blockautopromote' => true,
'degroup' => true,
'disallow' => true,
'rangeblock' => false,
'tag' => true,
'throttle' => true,
'warn' => true,
],
],
'wgAbuseFilterCentralDB' => [
'default' => 'metawiki',
],
'wgAbuseFilterIsCentral' => [
'default' => false,
'metawiki' => true,
],
'wgAbuseFilterBlockDuration' => [
'default' => 'indefinte',
],
'wgAbuseFilterAnonBlockDuration' => [
'default' => 2592000,
],
'wgAbuseFilterRestrictions' => [
'default' => [
'blockautopromote' => true,
'block' => true,
'degroup' => true,
'rangeblock' => true,
],
],
'wgAbuseFilterNotifications' => [
'default' => 'udp',
],
'wgAbuseFilterLogPrivateDetailsAccess' => [
'default' => true,
],
'wgAbuseFilterPrivateDetailsForceReason' => [
'default' => true,
],
'wgAbuseFilterEmergencyDisableThreshold' => [
'default' => [
'default' => 0.05,
],
],
'wgAbuseFilterEmergencyDisableCount' => [
'default' => [
'default' => 2,
],
],
// AddThis
'wgAddThisHeader' => [
'wmgUseAddThis' => false,
],
// Anti-spam
'wgAccountCreationThrottle' => [
'default' => [
[
'count' => 1,
'seconds' => 300,
],
[
'count' => 5,
'seconds' => 86400,
],
],
],
// https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:SpamBlacklist#Block_list_syntax
'wgBlacklistSettings' => [
'default' => [
'spam' => [
'files' => [
'https://meta.miraheze.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1',
],
],
],
],
'wgLogSpamBlacklistHits' => [
'default' => false,
'metawiki' => true,
],
'wgTitleBlacklistLogHits' => [
'default' => false,
'loginwiki' => true,
'metawiki' => true,
],
// ApprovedRevs
'egApprovedRevsEnabledNamespaces' => [
'default' => [
NS_MAIN => true,
NS_USER => true,
NS_FILE => true,
NS_TEMPLATE => true,
NS_HELP => true,
NS_PROJECT => true
],
],
'egApprovedRevsAutomaticApprovals' => [
'default' => true,
],
// BetaFeatures
'wgMediaViewerIsInBeta' => [
'default' => false,
],
'wgVisualEditorEnableWikitextBetaFeature' => [
'default' => false,
],
'wgVisualEditorEnableDiffPageBetaFeature' => [
'default' => false,
],
'wgPopupsReferencePreviewsBetaFeature' => [
'default' => true,
],
'wgPivotFeatures' => [
'default' => [
'showActionsForAnon' => true,
'fixedNavBar' => false,
'usePivotTabs' => false,
'showHelpUnderTools' => true,
'showRecentChangesUnderTools' => true,
'wikiName' => $wi->sitename,
'wikiNameDesktop' => $wi->sitename,
'navbarIcon' => false,
'preloadFontAwesome' => false,
'showFooterIcons' => true,
'addThisPUBID' => '',
'useAddThisShare' => '',
'useAddThisFollow' => ''
],
'+thegreatwarwiki' => [
'showActionsForAnon' => true,
'fixedNavBar' => true,
'usePivotTabs' => true,
'showHelpUnderTools' => false,
'showRecentChangesUnderTools' => false,
'wikiName' => $wi->sitename,
'wikiNameDesktop' => 'The Great War 1914-1918',
'navbarIcon' => false,
'preloadFontAwesome' => false,
'showFooterIcons' => true,
'addThisPUBID' => '',
'useAddThisShare' => '',
'useAddThisFollow' => ''
],
],
// Block
'wgAutoblockExpiry' => [
'default' => 86400, // 24 hours * 60 minutes * 60 seconds
],
'wgBlockAllowsUTEdit' => [
'default' => true,
],
'wgEnableBlockNoticeStats' => [
'default' => false,
],
'wgEnablePartialBlocks' => [
'default' => true,
],
// Bot passwords
'wgBotPasswordsDatabase' => [
'default' => 'mhglobal',
],
// Cache
'wgCacheDirectory' => [
'default' => '/srv/mediawiki/cache',
],
'wgExtensionEntryPointListFiles' => [
'default' => [
'/srv/mediawiki/config/extension-list'
],
],
'wgPreprocessorCacheThreshold' => [
'default' => false,
],
'wgResourceLoaderMaxage' => [
'default' => [
'versioned' => 12 * 60 * 60,
'unversioned' => 5 * 60,
],
],
'wgRevisionCacheExpiry' => [
'default' => 0,
],
'wgEnableSidebarCache' => [
'default' => false,
],
// Captcha
'wgCaptchaClass' => [
'default' => 'ReCaptchaNoCaptcha',
],
'wgCaptchaTriggers' => [
'default' => [
'edit' => false,
'create' => false,
'sendemail' => false,
'addurl' => true,
'createaccount' => true,
'badlogin' => true,
'badloginperuser' => true
],
'+wmgUseWikiForum' => [
'wikiforum' => true,
],
],
'wgReCaptchaSendRemoteIP' => [
'default' => false,
],
'wgReCaptchaSiteKey' => [
'default' => '6LcrxU4bAAAAAL6RgJePDZGCYsw-plPdk81qclKn',
],
'wgReCaptchaVersion' => [
'default' => 'v3',
],
// Cargo
'wgCargoDBuser' => [
'default' => 'cargouser',
],
'wgCargoFileDataColumns' => [
'default' => [],
'egoishwiki' => [
'mediaType',
'path',
'lastUploadDate',
'fullText',
'numPages',
],
],
'wgCargoPageDataColumns' => [
'default' => [],
'egoishwiki' => [
'creationDate',
'modificationDate',
'creator',
'fullText',
'categories',
'numRevisions',
'isRedirect',
],
],
// Categories
'wgCategoryCollation' => [ // updateCollation.php should be ran after the change
'default' => 'uppercase',
'academiadesusarduwiki' => 'uca-fr',
'holidayswiki' => 'numeric',
'supermanwiki' => 'numeric',
'wmgUseCategorySortHeaders' => 'CustomHeaderCollation',
],
'wgCategoryPagingLimit' => [
'default' => 200,
],
'wgUseCategoryBrowser' => [
'default' => false,
],
// CategoryTree
'wgCategoryTreeDefaultMode' => [
'default' => 0,
],
'wgCategoryTreeCategoryPageMode' => [
'default' => 0,
],
// CentralAuth
'wgCentralAuthAutoCreateWikis' => [
'default' => [
'loginwiki',
'metawiki',
],
],
'wgCentralAuthAutoNew' => [
'default' => true,
],
'wgCentralAuthAutoMigrate' => [
'default' => true,
],
'wgCentralAuthAutoMigrateNonGlobalAccounts' => [
'default' => true,
],
'wgCentralAuthCookies' => [
'default' => true,
],
'wgCentralAuthCookieDomain' => [
'default' => '.miraheze.org',
],
'wgCentralAuthCreateOnView' => [
'default' => true,
'cwarswiki' => false,
'nenawikiwiki' => false,
],
'wgCentralAuthDatabase' => [
'default' => 'mhglobal',
],
'wgCentralAuthEnableGlobalRenameRequest' => [
'default' => false,
'metawiki' => true,
],
'wgCentralAuthEnableUserMerge' => [
'default' => false,
'metawiki' => true,
],
'wgCentralAuthLoginWiki' => [
'default' => 'loginwiki',
],
'wgCentralAuthPreventUnattached' => [
'default' => true,
],
'wgCentralAuthSilentLogin' => [
'default' => true,
],
// CentralNotice
'wgNoticeInfrastructure' => [
'default' => false,
'metawiki' => true,
],
'wgCentralSelectedBannerDispatcher' => [
'default' => 'https://meta.miraheze.org/w/index.php/Special:BannerLoader',
],
'wgCentralBannerRecorder' => [
'default' => 'https://meta.miraheze.org/w/index.php/Special:RecordImpression',
],
'wgCentralDBname' => [
'default' => 'metawiki',
],
'wgCentralHost' => [
'default' => 'https://meta.miraheze.org',
],
'wgNoticeProject' => [
'default' => 'all',
],
'wgNoticeProjects' => [
'default' => [
'all',
'optout',
],
],
'wgNoticeUseTranslateExtension' => [
'default' => true,
],
// Chameleon
'egChameleonLayoutFile' => [
'default' => '/srv/mediawiki/w/skins/chameleon/layouts/standard.xml',
// 'lakehubwiki' => '/srv/mediawiki/w/skins/chameleon/layouts/fixedhead.xml',
],
// CheckUser
'wgCheckUserForceSummary' => [
'default' => true,
],
'wgCheckUserEnableSpecialInvestigate' => [
'default' => true,
],
'wgCheckUserLogLogins' => [
'default' => true,
],
'wgCheckUserCAtoollink' => [
'default' => 'metawiki',
],
'wgCheckUserGBtoollink' => [
'default' => [
'centralDB' => 'metawiki',
'groups' => [
'steward',
],
],
],
'wgCheckUserCAMultiLock' => [
'default' => [
'centralDB' => 'metawiki',
'groups' => [
'steward',
],
],
],
// Citizen
'wgCitizenThemeDefault' => [
'default' => 'auto',
],
'wgCitizenEnableCollapsibleSections' => [
'default' => true,
],
'wgCitizenShowPageTools' => [
'default' => true,
],
'wgCitizenEnableDrawerSubSearch' => [
'default' => false,
],
'wgCitizenPortalAttach' => [
'default' => 'first',
],
'wgCitizenThemeColor' => [
'default' => '#131a21',
],
// Citoid
'wgCitoidFullRestbaseURL' => [
'wmgUseCitoid' => "https://{$wi->hostname}/{$wi->hostname}/",
],
// Collection
'wgCommunityCollectionNamespace' => [
'wmgUseCollection' => 5,
],
'wgCollectionMWServeURL' => [
'wmgUseCollection' => 'https://ocg-lb.miraheze.org',
],
'wgCollectionPODPartners' => [
'wmgUseCollection' => [],
],
// Comments
'wgCommentsDefaultAvatar' => [
'default' => '/w/extensions/SocialProfile/avatars/default_ml.gif',
],
'wgCommentsInRecentChanges' => [
'default' => false,
],
'wgCommentsSortDescending' => [
'default' => false,
],
// CommentStreams
'wgCommentStreamsEnableTalk' => [
'default' => false,
],
'wgCommentStreamsNewestStreamsOnTop' => [
'default' => false,
],
'wgCommentStreamsUserAvatarPropertyName' => [
'default' => null,
],
'wgCommentStreamsEnableVoting' => [
'default' => false,
],
'wgCommentStreamsModeratorFastDelete' => [
'default' => false,
],
// CommonsMetadata
'wgCommonsMetadataForceRecalculate' => [
'default' => false,
],
// ContactPage
'wgContactConfig' => [
'default' => [
'default' => [
'RecipientUser' => null,
'SenderEmail' => $wgPasswordSender,
'SenderName' => 'Miraheze No Reply',
'RequireDetails' => true,
'IncludeIP' => false, // Should never be set to true
'MustBeLoggedIn' => false,
'AdditionalFields' => [
'Text' => [
'label-message' => 'emailmessage',
'type' => 'textarea',
'rows' => 20,
'required' => true,
],
],
'DisplayFormat' => 'table',
'RLModules' => [],
'RLStyleModules' => [],
],
],
],
'wmgContactPageRecipientUser' => [
'default' => false,
],
// Contribution Scores
'wgContribScoreDisableCache' => [
'default' => true,
],
// Cookies
'wgCookieDomain' => [
'default' => ''
],
'wgCookieSameSite' => [
'default' => 'None'
],
'wgUseSameSiteLegacyCookies' => [
'default' => true
],
'wgCookieSetOnAutoblock' => [
'default' => true,
],
'wgCookieSetOnIpBlock' => [
'default' => true,
],
// Cosmos
'wgCosmosWordmark' => [
'default' => false,
],
'wgCosmosBackgroundImage' => [
'default' => false,
],
'wgCosmosBackgroundImageSize' => [
'default' => 'cover',
],
'wgCosmosMainBackgroundColor' => [
'default' => '#1A1A1A',
],
'wgCosmosContentBackgroundColor' => [
'default' => '#ffffff',
],
'wgCosmosBannerBackgroundColor' => [
'default' => '#c0c0c0',
],
'wgCosmosWikiHeaderBackgroundColor' => [
'default' => '#c0c0c0',
],
'wgCosmosLinkColor' => [
'default' => '#0645ad',
],
'wgCosmosButtonBackgroundColor' => [
'default' => '#c0c0c0',
],
'wgCosmosToolbarBackgroundColor' => [
'default' => '#000000',
],
'wgCosmosFooterBackgroundColor' => [
'default' => '#c0c0c0',
],
'wgCosmosEnablePortableInfoboxEuropaTheme' => [
'default' => true,
],
'wgCosmosBackgroundImageRepeat' => [
'default' => false,
],
'wgCosmosBackgroundImageFixed' => [
'default' => true,
],
'wgCosmosUseWVUISearch' => [
'default' => true,
],
'wgCosmosSearchUseActionAPI' => [
'default' => true,
],
'wgCosmosSearchDescriptionSource' => [
'default' => 'textextracts',
],
'wgCosmosMaxSearchResults' => [
'default' => 6,
],
'wgCosmosSocialProfileModernTabs' => [
'default' => true,
],
'wgCosmosSocialProfileRoundAvatar' => [
'default' => true,
],
'wgCosmosSocialProfileShowEditCount' => [
'default' => true,
],
'wgCosmosSocialProfileAllowBio' => [
'default' => true,
],
'wgCosmosSocialProfileFollowBioRedirects' => [
'default' => false,
],
'wgCosmosSocialProfileShowGroupTags' => [
'default' => true,
],
'wgCosmosUseSocialProfileAvatar' => [
'default' => true,
],
'wgCosmosSocialProfileTagGroups' => [
'default' => [
'bureaucrat',
'bot',
'sysop',
'interface-admin'
],
],
'wgCosmosSocialProfileNumberofGroupTags' => [
'default' => 2,
],
'wgCosmosContentOpacityLevel' => [
'default' => 100,
],
'wgCosmosEnabledRailModules' => [
'default' => [
'recentchanges' => 'normal',
'interface' => [
'cosmos-custom-rail-module' => 'normal',
'cosmos-custom-sticky-rail-module' => 'sticky',
],
],
'batfamilywiki' => [
'recentchanges' => false,
'interface' => [
'cosmos-custom-rail-module' => 'normal',
'cosmos-custom-sticky-rail-module' => 'sticky',
],
],
'batmanwiki' => [
'recentchanges' => false,
'interface' => [
'cosmos-custom-rail-module' => 'normal',
'cosmos-custom-sticky-rail-module' => 'sticky',
],
],
'malwiki' => [
'recentchanges' => false,
'interface' => [
'cosmos-custom-rail-module' => 'normal',
'cosmos-custom-sticky-rail-module' => 'sticky',
],
],
'snapwikiwiki' => [
'recentchanges' => false,
'interface' => [
'cosmos-custom-rail-module' => 'normal',
'cosmos-custom-sticky-rail-module' => 'sticky',
],
],
'thewhiteroomwiki' => [
'recentchanges' => false,
'interface' => [
'cosmos-custom-rail-module' => 'normal',
'cosmos-custom-sticky-rail-module' => 'sticky',
],
],
'softcellwiki' => [
'recentchanges' => false,
'interface' => [
'cosmos-custom-rail-module' => 'normal',
'cosmos-custom-sticky-rail-module' => 'sticky',
],
],
],
'wgCosmosEnableWantedPages' => [
'default' => false,
'batmanwiki' => true,
'snapwikiwiki' => true,
],
// CreateWiki
'wgCreateWikiBlacklistedSubdomains' => [
'default' => [
'subdomain\d{0,2}',
'example\d{0,2}',
'betameta\d{0,2}',
'beta\d{0,2}',
'prueba\d{0,2}',
'community\d{0,2}',
'testwiki\d{0,2}',
'wikitest\d{0,2}',
'help\d{0,2}',
'noc',
'sandbox\d{0,2}',
'outreach',
'gazeteer',
'gazetteer',
'wikitech',
'wiki',
'www',
'wikis',
'misc\d{1,2}',
'db\d{1,2}',
'cp\d{1,2}',
'mw\d{1,2}',
'jobrunner\d{1,2}',
'gluster\d{1,2}',
'ns\d{1,2}',
'bacula\d{1,2}',
'misc\d{1,2}',
'mail\d{1,2}',
'mw\d{1,2}',
'ldap\d{1,2}',
'cloud\d{1,2}',
'mon\d{1,2}',
'lizardfs\d{1,2}',
'rdb\d{1,2}',
'phab\d{1,2}',
'services\d{1,2}',
'puppet\d{1,2}',
'test\d{1,2}',
'dbbackup\d{1,2}',
'graylog\d{1,2}',
'mem\d{1,2}',
'miraheze\d{0,2}',
'sslrequest',
'jobchron\d{0,2}',
'mwtask\d{0,2}',
'security',
'deployment',
],
],
'wgCreateWikiCannedResponses' => [
'default' => [
// Approval reasons:
'Perfect request' => 'Perfect. Clear purpose, scope, and topic. Please be advised this approval does not preclude other wikis from being approved and created that share this topic, provided they aren\'t 95-100% content forks of your wiki. Please ensure your wiki complies with all aspects of Content Policy at all times. Thank you.',
'Good request' => 'Pretty good. Purpose and description are a bit vague, but there is nonetheless a clear enough purpose, scope, and/or topic here. Please be advised this approval does not preclude other wikis from being approved and created that share this topic, provided they aren\'t 95-100% content forks of your wiki. Please ensure your wiki complies with all aspects of Content Policy at all times.',
'Okay request' => 'Okay-ish. Description doesn\'t meet our requirements, but in this case the sitename, URL, and categorisation suggest this is a wiki that would follow the Content Policy made clear by the preceding fields, and it is conditionally approved as such. Please be advised that if your wiki deviates too much from this approval, remedial action can be taken by a Steward, if necessary, and that this approval does not preclude approval of similar wikis sharing this likely topic. Please ensure your wiki complies with all aspects of Content Policy at all times. Thank you.',
'Categorised as private' => 'The purpose and scope of your wiki is clear enough. Please ensure your wiki complies with all aspects of the Content Policy at all times. Please also note that I have categorised your wiki as "Private". Thank you.',
// Decline reasons:
'Needs more details' => 'Can you give us a few more details on the purpose for, scope of, and topic of your wiki, and briefly describe some of your wiki\'s content in approximately 2-3 sentences? Additionally can you elaborate on your wiki\'s scope and topical focus a bit further? A few sentences describing the scope of your wiki and the sort of content it will contain should be helpful. Please go back into your original request and add to, but do not replace, your existing description. Thank you.',
'Invalid or unclear subdomain' => 'The scope and purpose of the wiki seem clear enough. However, your requested subdomain is either invalid, is too generic, conveys a Miraheze affiliation, or suggests the wiki is an English language or multilingual wiki when it is not. Please change it to something that better reflects your wiki\'s purpose and scope. Thank you.',
'Use Public Test Wiki' => 'Please use Public Test Wiki, https://publictestwiki.com, to test the administrator and bureaucrat tools (as well as Miraheze since the wiki is hosted by us). You should review and follow all TestWiki:Policies, especially TestWiki:Testing policy and TestWiki:Main policy, reverting all tests you perform in the reverse order which you performed them. Request permissions at TestWiki:Request permissions. Thank you.',
'Database exists (wiki still active)' => 'Wiki database name and subdomain already exist. Please visit the local wiki and contribute there. Please reach out to any local bureaucrat to request any permissions if you require them. If bureaucrats are not active on the wiki after a reasonable period of time, please start a local election and ask a Steward to evaluate it on the Stewards\' Noticeboard. Thanks.',
'Database exists (wiki already deleted)' => 'Wiki database name already exists, but the wiki itself has already been deleted in accordance with the Dormancy Policy. I will request a Steward to undelete it for you. When it has been undeleted and reopened, please visit the local wiki and ensure you make at least one edit or log action every 45 days. Wikis are only deleted after 6 months of complete inactivity; if you require a Dormancy Policy exemption, you should review the policy and request it once your wiki has at least 40-60 content pages. Thank you.',
'Duplicate request' => 'Declining as a duplicate request, which needs more information. Please do not edit this request and instead go back into your original request. Also, please do not submit duplicate requests. Thank you.',
'Content Policy (unsubstantiated insult)' => 'Declining per Content Policy provision, "Miraheze does not host wikis with the sole purpose to spread unsubstantiated insult, hate or rumours against a person or group of people." Thank you for understanding.',
'Content Policy (makes it difficult for other wikis)' => 'Declining per Content Policy provision, "A wiki must not create problems which make it difficult for other wikis." Thank you for understanding.',
'Content Policy (commercial activity)' => 'Declining per Content Policy provision, "The primary purpose of your wiki cannot be for commercial activity." Thank you for understanding. If in error, please edit this wiki request and articulate a clearer purpose and scope for your wiki that makes it clear how this wiki would not violate this criterion of Content Policy.',
'Content Policy (illegal UK activity)' => 'Declining per Content Policy provision, "Miraheze does not host any content that is illegal in the United Kingdom." Thank you for understanding. If you believe this decline reason was used incorrectly, please address this with the declining wiki creator on their user talk page first before escalating your concern at Stewards\' noticeboard. Thank you.',
'Duplicate wiki' => 'Your proposed wiki appears to duplicate, either substantially or entirely, the content of an existing wiki (see the "Request Comments" tab for one or more link(s) to the existing wiki(s)). Could you please describe in a few more sentences by adding to, but not replacing, your existing description, the scope and focus for your wiki, and also assure us that your wiki will not be a complete or substantial duplication? Thank you.',
'Author request' => 'Declined at the request of the wiki requestor.',
],
],
'wgCreateWikiCustomDomainPage' => [
'default' => 'Special:MyLanguage/Custom_domains',
],
'wgCreateWikiDatabase' => [
'default' => 'mhglobal',
],
'wgCreateWikiDatabaseClusters' => [
'default' => [
'c2',
'c3',
'c4',
]
],
// Use if you want to stop wikis being created on this cluster
'wgCreateWikiDatabaseClustersInactive' => [
'default' => [
'c1',
]
],
'wgCreateWikiGlobalWiki' => [
'default' => 'metawiki',
],
'wgCreateWikiDBDirectory' => [
'default' => '/srv/mediawiki/dblist',
],
'wgCreateWikiEmailNotifications' => [
'default' => true,
],
'wgCreateWikiNotificationEmail' => [
'default' => '[email protected]',
],
'wgCreateWikiPersistentModelFile' => [
'default' => '/mnt/mediawiki-static/requestmodel.phpml'
],
'wgCreateWikiPurposes' => [
'default' => [
'Alternate history wiki' => 'Alternate history wiki',
'Class or group project education wiki' => 'Class or group project education wiki',
'Curriculum resource wiki' => 'Curriculum resource wiki',
'Documentation (hardware) wiki' => 'Documentation (hardware) wiki',
'Documentation (software) wiki' => 'Documentation (software) wiki',
'Encyclopedia (general) wiki' => 'Encyclopedia (general) wiki',
'Encyclopedia (specialized) wiki' => 'Encyclopedia (specialized) wiki',
'Eurovision-style song contest statistics tracking wiki' => 'Eurovision-style song contest statistics tracking wiki',
'Fictional worldbuilding/constructed world wiki' => 'Fictional worldbuilding/constructed world wiki',
'Minecraft server wiki' => 'Minecraft server wiki',
'Organization (coordination) wiki' => 'Organization (coordination) wiki',
'Political simulation wiki' => 'Political simulation wiki',
'Roleplaying game wiki' => 'Roleplaying game wiki',
'Video game (specified video game) information wiki' => 'Video game (specified video game) information wiki',
'Video game (broad genre or video game series) information wiki' => 'Video game (broad genre or video game series) information wiki',
'None of the above' => 'None of the above',
],
],
'wgCreateWikiShowBiographicalOption' => [
'default' => true,
],
'wgCreateWikiSQLfiles' => [
'default' => [
"$IP/maintenance/tables.sql",
"$IP/maintenance/tables-generated.sql",
"$IP/extensions/AbuseFilter/db_patches/mysql/abusefilter.sql",
"$IP/extensions/AntiSpoof/sql/patch-antispoof.mysql.sql",
"$IP/extensions/BetaFeatures/sql/tables-generated.sql",
"$IP/extensions/CheckUser/cu_log.sql",
"$IP/extensions/CheckUser/cu_changes.sql",
"$IP/extensions/DataDump/sql/data_dump.sql",
"$IP/extensions/Echo/echo.sql",
"$IP/extensions/GlobalBlocking/sql/mysql/tables-generated-global_block_whitelist.sql",
"$IP/extensions/OAuth/schema/OAuth.sql",
"$IP/extensions/RottenLinks/sql/rottenlinks.sql",
"$IP/extensions/UrlShortener/schemas/tables-generated.sql"
],
],
'wgCreateWikiStateDays' => [
'default' => [
'inactive' => 45,
'closed' => 15,
'removed' => 120,
'deleted' => 14
],
],
'wgCreateWikiCacheDirectory' => [
'default' => '/srv/mediawiki/cache'
],
'wgCreateWikiCategories' => [
'default' => [
'Art & Architecture' => 'artarc',
'Automotive' => 'automotive',
'Business & Finance' => 'businessfinance',
'Community' => 'community',
'Education' => 'education',
'Electronics' => 'electronics',
'Entertainment' => 'entertainment',
'Fandom' => 'fandom',
'Fantasy' => 'fantasy',
'Gaming' => 'gaming',
'Geography' => 'geography',
'History' => 'history',
'Humour/Satire' => 'humour',
'Language/Linguistics' => 'langling',
'Leisure' => 'leisure',
'Literature/Writing' => 'literature',
'Media/Journalism' => 'media',
'Medicine/Medical' => 'medical',
'Military/War' => 'military',
'Music' => 'music',
'Podcast' => 'podcast',
'Politics' => 'politics',
'Private' => 'private',
'Religion' => 'religion',
'Science' => 'science',
'Software/Computing' => 'software',
'Song Contest' => 'songcontest',
'Sports' => 'sport',
'Uncategorised' => 'uncategorised',
],
],
'wgCreateWikiUseCategories' => [
'default' => true,
],
'wgCreateWikiSubdomain' => [
'default' => 'miraheze.org',
],
'wgCreateWikiUseClosedWikis' => [
'default' => true,
],
'wgCreateWikiUseCustomDomains' => [
'default' => true,
],
'wgCreateWikiUseEchoNotifications' => [
'default' => true,
],
'wgCreateWikiUseInactiveWikis' => [
'default' => true,
],
'wgCreateWikiUsePrivateWikis' => [
'default' => true,
],
'wgCreateWikiUseJobQueue' => [
'default' => true,
],
// CookieWarning
'wgCookieWarningMoreUrl' => [
'default' => 'https://meta.miraheze.org/wiki/Special:MyLanguage/Privacy_Policy#4._Cookies',
],
'wgCookieWarningEnabled' => [
'default' => true,
],
'wgCookieWarningGeoIPLookup' => [
'default' => 'php',
],
'wgCookieWarningGeoIp2' => [
'default' => true,
],
'wgCookieWarningGeoIp2Path' => [
'default' => '/srv/GeoLite2-City.mmdb',
],
// Database
'wgAllowSchemaUpdates' => [
'default' => false,
],
'wgCompressRevisions' => [
'default' => false,
],
'wgDBadminuser' => [
'default' => 'wikiadmin',
],
'wgDBuser' => [
'default' => 'mediawiki',
],
'wgReadOnly' => [
'default' => false,
],
'wgSharedDB' => [
'default' => 'metawiki',
],
'wgSharedTables' => [
'default' => [],
],
// Delete
'wgDeleteRevisionsLimit' => [
'default' => '1000', // databases don't have much memory - let's not overload them in future - set to 1,000 T5287
],