-
Notifications
You must be signed in to change notification settings - Fork 10
/
MezaCoreExtensions.yml
474 lines (392 loc) · 17.1 KB
/
MezaCoreExtensions.yml
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
---
list:
- name: Semantic MediaWiki
composer: "mediawiki/semantic-media-wiki"
version: "4.0.1"
config: |
// Enable Semantic MediaWiki semantics
wfLoadExtension( 'SemanticMediaWiki' );
enableSemantics( $wikiId );
// Semantic MediaWiki Settings
$smwgQMaxSize = 5000;
// allows adding semantic properties to Templates themselves
// (not just on pages via templates).
$smwgNamespacesWithSemanticLinks[NS_TALK] = true;
$smwgNamespacesWithSemanticLinks[NS_TEMPLATE] = true;
// Always use DB_REPLICA for temporary table actions. Need to pick either
// DB_REPLICA or DB_MASTER for this, since temporary tables will either not
// replicate at all or won't replicate fast enough (or, even if they do
// technically replicate, they are only available to the session that
// created them, and thus they effectively don't replicate). Picking
// DB_REPLICA since temporary tables are effectively a read-action since
// they are used only for making more efficient queries.
$smwgLocalConnectionConf['mw.db.queryengine'] = [ 'read' => DB_REPLICA, 'write' => DB_REPLICA ];
// According to https://www.semantic-mediawiki.org/wiki/Help:$smwgDefaultStore
//
// From Semantic MediaWiki 1.8.0 to Semantic MediaWiki 3.2.3, the default
// value was SMWSQLStore3. This default value becames SMW\SQLStore\SQLStore
// in Semantic MediaWiki 4.0.0, but this is just a renaming of the class
// and SMWSQLStore3 remains a class alias. However, SemanticDrilldown
// does not seem to work unless this value is explicitly set to
// SMWSQLStore3.
//
// See https://phabricator.wikimedia.org/T305911 to determine if this has
// been resolved upstream.
//
$smwgDefaultStore = 'SMWSQLStore3';
- name: Semantic Result Formats
composer: "mediawiki/semantic-result-formats"
version: "4.0.1"
config: |
// In SRF 3.0+ you need to do this, too:
wfLoadExtension( 'SemanticResultFormats' );
// SemanticResultFormats formats enabled (beyond defaults)
// These are disabled by default because they send data to external
// web services for rendering, which may be considered a data leak
// $srfgFormats[] = 'googlebar';
// $srfgFormats[] = 'googlepie';
// Disabled until the proper dependencies are added (PHPExcel I think)
// $srfgFormats[] = 'excel';
// Enables the "filtered" format. Where do we use this?
$srfgFormats[] = 'filtered';
// Disabled due to some issue on FOD wikis. Confirm, reenable if possible
// $srfgFormats[] = 'exhibit';
- name: SemanticCompoundQueries
composer: "mediawiki/semantic-compound-queries"
version: "2.2.0"
config: |
wfLoadExtension( 'SemanticCompoundQueries' );
- name: Scribunto
repo: https://github.com/wikimedia/mediawiki-extensions-Scribunto.git
version: "{{ mediawiki_default_branch }}"
config: |
$wgScribuntoDefaultEngine = 'luasandbox';
$wgScribuntoUseGeSHi = true;
$wgScribuntoUseCodeEditor = true;
- name: "Semantic Scribunto"
composer: "mediawiki/semantic-scribunto"
version: "2.2.0"
config: |
wfLoadExtension( 'SemanticScribunto' );
- name: SubPageList
composer: "mediawiki/sub-page-list"
version: "1.6.1"
- name: Maps
composer: "mediawiki/maps"
version: "9.0.7"
config: |
// In Maps 6.0+ you need to also load the extension
wfLoadExtension( 'Maps' );
- name: DisplayTitle
repo: https://github.com/wikimedia/mediawiki-extensions-DisplayTitle.git
version: "{{ mediawiki_default_branch }}"
#
# Extensions loaded with wfLoadExtension
#
- name: ParserFunctions
repo: https://github.com/wikimedia/mediawiki-extensions-ParserFunctions.git
version: "{{ mediawiki_default_branch }}"
config: |
// Also enable StringFunctions, like len, pos, sub, replace, explode
// https://www.mediawiki.org/wiki/Extension:StringFunctions
$wgPFEnableStringFunctions = true;
- name: ExternalData
repo: https://github.com/wikimedia/mediawiki-extensions-ExternalData.git
version: "{{ mediawiki_default_branch }}"
- name: LabeledSectionTransclusion
repo: https://github.com/wikimedia/mediawiki-extensions-LabeledSectionTransclusion.git
version: "{{ mediawiki_default_branch }}"
- name: Cite
repo: https://github.com/wikimedia/mediawiki-extensions-Cite.git
version: "{{ mediawiki_default_branch }}"
config: |
$wgCiteEnablePopups = true;
# Verify 34.x functionality
- name: ParserFunctionHelper
repo: https://github.com/enterprisemediawiki/ParserFunctionHelper.git
version: tags/1.0.0
- name: CharInsert
repo: https://github.com/wikimedia/mediawiki-extensions-CharInsert.git
version: "{{ mediawiki_default_branch }}"
- name: PageForms
repo: https://github.com/wikimedia/mediawiki-extensions-PageForms.git
version: "tags/5.4"
config: |
// If enabled all "red links" will bring up a form chooser
$wgPageFormsLinkAllRedLinksToForms = false;
- name: DismissableSiteNotice
repo: https://github.com/wikimedia/mediawiki-extensions-DismissableSiteNotice.git
version: "{{ mediawiki_default_branch }}"
- name: WikiEditor
repo: https://github.com/wikimedia/mediawiki-extensions-WikiEditor.git
version: "{{ mediawiki_default_branch }}"
config: |
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
$wgDefaultUserOptions['wikieditor-publish'] = 1; # displays publish button
$wgDefaultUserOptions['wikieditor-preview'] = 1; # Displays the Preview and Changes tabs
# consider replacing with https://github.com/wikimedia/mediawiki-extensions-SyntaxHighlight_Pygments.git
- name: SyntaxHighlight_GeSHi
repo: https://github.com/wikimedia/mediawiki-extensions-SyntaxHighlight_GeSHi.git
version: "{{ mediawiki_default_branch }}"
composer_merge: True
- name: CodeEditor
repo: https://github.com/wikimedia/mediawiki-extensions-CodeEditor.git
version: "{{ mediawiki_default_branch }}"
- name: InputBox
repo: https://github.com/wikimedia/mediawiki-extensions-InputBox.git
version: "{{ mediawiki_default_branch }}"
- name: ReplaceText
repo: https://github.com/wikimedia/mediawiki-extensions-ReplaceText.git
version: "{{ mediawiki_default_branch }}"
- name: Interwiki
repo: https://github.com/wikimedia/mediawiki-extensions-Interwiki.git
version: "{{ mediawiki_default_branch }}"
config: |
$wgGroupPermissions['sysop']['interwiki'] = true;
- name: YouTube
repo: https://github.com/wikimedia/mediawiki-extensions-YouTube.git
version: "{{ mediawiki_default_branch }}"
- name: UniversalLanguageSelector
repo: https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector
version: "{{ mediawiki_default_branch }}"
config: |
// Disable international phoenetic alphabet selector that breaks searching for
// English users. From docs:
//
// $wgULSIMEEnabled - Disable the input methods feature for all users by
// default. Can still be enabled manually by the user.
//
// Refs:
//
// https://www.mediawiki.org/wiki/Help:Extension:UniversalLanguageSelector/Input_methods
// https://www.mediawiki.org/wiki/Extension:UniversalLanguageSelector
$wgULSIMEEnabled = false;
- name: VisualEditor
repo: https://github.com/wikimedia/mediawiki-extensions-VisualEditor.git
version: "{{ mediawiki_default_branch }}"
git_submodules: True
config: |
// Show visual diff on regular diff pages
$wgVisualEditorEnableDiffPage = true;
// Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;
// Don't allow users to disable it
$wgHiddenPrefs[] = 'visualeditor-enable';
// OPTIONAL: Enable VisualEditor's experimental code features
// $wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;
$wgVisualEditorAvailableNamespaces = [
"User" => true,
"Project" => true,
"Help" => true,
"_merge_strategy" => "array_plus"
];
// quickly add a namespace, without figuring out what the merge strategy is
// $wgVisualEditorAvailableNamespaces[] = NS_CUSTOM;
// $wgVisualEditorAvailableNamespaces[] = NS_PROJECT;
// None of this appears to be necessary anymore in MW 1.35 (and having it breaks VE)
// $wgVirtualRestConfig['modules']['parsoid'] = array(
// 'url' => "http://127.0.0.1:8080/$wikiId/rest.php",
// );
// Because we're manually setting the Virtual Rest Config above, need to load Parsoid manually
// wfLoadExtension( 'Parsoid', '{{ m_mediawiki }}/vendor/wikimedia/parsoid/extension.json' );
- name: TemplateData
repo: https://github.com/wikimedia/mediawiki-extensions-TemplateData.git
version: "{{ mediawiki_default_branch }}"
- name: Elastica
repo: https://github.com/wikimedia/mediawiki-extensions-Elastica.git
version: "{{ mediawiki_default_branch }}"
composer_merge: True
# - name: Thanks
# repo: https://github.com/wikimedia/mediawiki-extensions-Thanks.git
# version: "{{ mediawiki_default_branch }}"
# config: |
# $wgThanksConfirmationRequired = false;
#
- name: RevisionSlider
repo: https://github.com/wikimedia/mediawiki-extensions-RevisionSlider.git
version: "{{ mediawiki_default_branch }}"
- name: CollapsibleVector
repo: https://github.com/wikimedia/mediawiki-extensions-CollapsibleVector
version: 7b71b1b04cc77eb4621e55b3dda6b9e15f4dd029
- name: SimpleMathJax
repo: https://github.com/jamesmontalvo3/SimpleMathJax.git
version: e94afaffcdde8d926b166fdd166162f9519beaa1
legacy_load: True
- name: ImageMap
repo: https://github.com/wikimedia/mediawiki-extensions-ImageMap
version: "{{ mediawiki_default_branch }}"
# Verify 34.x functionality
- name: MezaExt
repo: https://github.com/enterprisemediawiki/MezaExt.git
version: tags/0.1.0
# Extension:PdfHandler (breaks on very large PDFs)
# https://github.com/wikimedia/mediawiki-extensions-PdfHandler
# // Location of PdfHandler dependencies
# // $wgPdfProcessor = '/usr/bin/gs'; // installed via yum
# // $wgPdfPostProcessor = '/usr/local/bin/convert'; // built from source
# // $wgPdfInfo = '/usr/local/bin/pdfinfo'; // pre-built binaries installed
#
# Extensions loaded with legacy require_once method
#
- name: StringFunctionsEscaped
repo: https://github.com/wikimedia/mediawiki-extensions-StringFunctionsEscaped.git
version: "{{ mediawiki_default_branch }}"
legacy_load: true
- name: WhoIsWatching
repo: https://github.com/wikimedia/mediawiki-extensions-WhoIsWatching.git
version: "{{ mediawiki_default_branch }}"
config: |
$wgPageShowWatchingUsers = true;
- name: SemanticInternalObjects
repo: https://github.com/djflux/mediawiki-extensions-SemanticInternalObjects.git
version: master
legacy_load: true
- name: SemanticDrilldown
repo: https://github.com/SemanticMediaWiki/SemanticDrilldown.git
version: "master"
legacy_load: false
- name: Arrays
repo: https://github.com/wikimedia/mediawiki-extensions-Arrays.git
version: "8ffa3c6a4ae43824d8128c120ff25d569bae3d53"
# Verify 34.x functionality
- name: TalkRight
repo: https://github.com/enterprisemediawiki/TalkRight.git
version: tags/2.0.0
legacy_load: false
- name: AdminLinks
repo: https://github.com/wikimedia/mediawiki-extensions-AdminLinks.git
version: "master"
config: |
$wgGroupPermissions['sysop']['adminlinks'] = true;
- name: BatchUserRights
repo: https://github.com/wikimedia/mediawiki-extensions-BatchUserRights.git
version: "{{ mediawiki_default_branch }}"
- name: HeaderTabs
repo: https://github.com/wikimedia/mediawiki-extensions-HeaderTabs.git
version: tags/2.2.1
config: |
$wgHeaderTabsEditTabLink = false;
$wgHeaderTabsRenderSingleTab = true;
# Verify 34.x functionality
- name: CopyWatchers
repo: https://github.com/jamesmontalvo3/MediaWiki-CopyWatchers.git
version: tags/0.11.0
# Verify 34.x functionality
- name: Wiretap
repo: https://github.com/enterprisemediawiki/Wiretap.git
version: tags/0.2.0
# Verify 34.x functionality
- name: ImagesLoaded
repo: https://github.com/enterprisemediawiki/ImagesLoaded.git
version: tags/0.1.0
# Verify 34.x functionality
- name: MasonryMainPage
repo: https://github.com/enterprisemediawiki/MasonryMainPage.git
version: tags/0.3.0
# Verify 34.x functionality
- name: WatchAnalytics
repo: https://github.com/djflux/WatchAnalytics.git
version: "7f9c0b74f815f7cb55fe2b7ea6b8bd3bcc8f4357"
config: |
$egPendingReviewsEmphasizeDays = 10; // makes Pending Reviews shake after X days
- name: Variables
repo: https://github.com/wikimedia/mediawiki-extensions-Variables.git
version: "{{ mediawiki_default_branch }}"
- name: ContributionScores
repo: https://github.com/wikimedia/mediawiki-extensions-ContributionScores.git
version: "{{ mediawiki_default_branch }}"
legacy_load: true
config: |
// Exclude Bots from the reporting - Can be omitted.
$wgContribScoreIgnoreBots = true;
// Exclude Blocked Users from the reporting - Can be omitted.
$wgContribScoreIgnoreBlockedUsers = true;
// Use real user names when available - Can be omitted. Only for MediaWiki 1.19 and later.c
$wgContribScoresUseRealName = true;
// Set to true to disable cache for parser function and inclusion of table.
$wgContribScoreDisableCache = false;
// Each array defines a report - 7,50 is "past 7 days" and "LIMIT 50" - Can be omitted.
$wgContribScoreReports = array(
array(7,50),
array(30,50),
array(0,50)
);
- name: SemanticExtraSpecialProperties
composer: "mediawiki/semantic-extra-special-properties"
version: "3.0.1"
- name: PipeEscape
repo: https://github.com/wikimedia/mediawiki-extensions-PipeEscape.git
version: "{{ mediawiki_default_branch }}"
legacy_load: true
- name: CirrusSearch
repo: https://github.com/wikimedia/mediawiki-extensions-CirrusSearch.git
version: "{{ mediawiki_default_branch }}"
config: |
// CirrusSearch cluster(s) are defined based upon Ansible hosts file and thus
// cannot be easily added to MezaCoreExtensions.yml. As such, CirrusSearch config
// is included directly in LocalSettings.php.j2
- name: Echo
repo: https://github.com/wikimedia/mediawiki-extensions-Echo.git
version: "{{ mediawiki_default_branch }}"
config: |
$wgEchoEmailFooterAddress = $wgPasswordSender;
- name: UploadWizard
repo: https://github.com/wikimedia/mediawiki-extensions-UploadWizard
version: "{{ mediawiki_default_branch }}"
config: |
// Needed to make UploadWizard work in IE, see bug 39877
// See also: https://www.mediawiki.org/wiki/Manual:$wgApiFrameOptions
$wgApiFrameOptions = 'SAMEORIGIN';
// Use UploadWizard by default in navigation bar
$wgUploadNavigationUrl = "$wgScriptPath/index.php/Special:UploadWizard";
$wgUploadWizardConfig = array(
'debug' => false,
'autoCategory' => 'Uploaded with UploadWizard',
'feedbackPage' => 'Project:UploadWizard/Feedback',
'altUploadForm' => 'Special:Upload',
'fallbackToAltUploadForm' => false,
'enableFormData' => true, # Should FileAPI uploads be used on supported browsers?
'enableMultipleFiles' => true,
'enableMultiFileSelect' => true,
'tutorial' => array('skip' => true),
'fileExtensions' => $wgFileExtensions, //omitting this can cause errors
'licensing' => array(
// alternatively, use "thirdparty". Set in postLocalSettings.php like:
// $wgUploadWizardConfig['licensing']['defaultType'] = 'thirdparty';
'defaultType' => 'ownwork',
'ownWork' => array(
'type' => 'or',
// Use [[Project:General disclaimer]] instead of default [[Template:Generic]]
'template' => 'Project:General disclaimer',
'defaults' => array( 'generic' ),
'licenses' => array( 'generic' )
),
'thirdParty' => array(
'type' => 'or',
'defaults' => array( 'generic' ),
'licenseGroups' => array(
array(
'head' => 'mwe-upwiz-license-generic-head',
'template' => 'Project:General disclaimer', // again, use General disclaimer
'licenses' => array( 'generic' ),
),
)
),
),
);
- name: DataTransfer
repo: https://github.com/wikimedia/mediawiki-extensions-DataTransfer.git
version: "tags/1.1.1"
- name: PageImporter
repo: https://github.com/enterprisemediawiki/PageImporter.git
version: tags/0.1.0
legacy_load: True
# Verify 34.x functionality
- name: SemanticMeetingMinutes
repo: https://github.com/enterprisemediawiki/SemanticMeetingMinutes.git
version: tags/1.0.0
legacy_load: True
- name: NumerAlpha
repo: https://github.com/wikimedia/mediawiki-extensions-NumerAlpha.git
version: "{{ mediawiki_default_branch }}"