-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathMezaCoreExtensions.yml
More file actions
391 lines (359 loc) · 15.5 KB
/
Copy pathMezaCoreExtensions.yml
File metadata and controls
391 lines (359 loc) · 15.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
---
list:
- name: Semantic MediaWiki
composer: "mediawiki/semantic-media-wiki"
version: "~3.1"
config: |
// Enable Semantic MediaWiki semantics
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_SLAVE for temporary table actions. Need to pick either
// DB_SLAVE 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_SLAVE 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 ];
- name: Semantic Result Formats
composer: "mediawiki/semantic-result-formats"
version: "~3.2"
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 (the phpspreadsheet library from phpoffice)
// $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';
# Allows for the display of more than one SMW inline query in one results display set.
- name: SemanticCompoundQueries
composer: "mediawiki/semantic-compound-queries"
version: "~2.1"
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.1
config: |
wfLoadExtension( 'SemanticScribunto' );
- name: SubPageList
composer: "mediawiki/sub-page-list"
version: "1.6.1"
- name: Maps
composer: "mediawiki/maps"
version: "~7.0"
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: "master"
- 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;
- 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: "master"
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: "master"
- name: ReplaceText
repo: https://github.com/wikimedia/mediawiki-extensions-ReplaceText.git
version: "master"
- 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: |
// Parsoid servers are defined based upon Ansible hosts file and thus
// cannot be easily added to MezaCoreExtensions.yml. As such, VisualEditor config
// is included directly in LocalSettings.php.j2 (mostly)
// Show visual diff on regular diff pages
$wgVisualEditorEnableDiffPage = true;
- 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: "{{ mediawiki_default_branch }}"
- 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 }}"
- 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/wikimedia/mediawiki-extensions-SemanticInternalObjects.git
version: "master"
legacy_load: true
- name: SemanticDrilldown
repo: https://github.com/wikimedia/mediawiki-extensions-SemanticDrilldown.git
version: "master"
legacy_load: true
- name: Arrays
repo: https://github.com/wikimedia/mediawiki-extensions-Arrays.git
version: "2166695159a9a5eb18cb96d4811cdefa0978ab8a"
legacy_load: true
- name: TalkRight
repo: https://github.com/enterprisemediawiki/TalkRight.git
version: tags/2.0.0
legacy_load: true
- 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/1.2
config: |
$wgHeaderTabsEditTabLink = false;
$wgHeaderTabsRenderSingleTab = true;
# - name: CopyWatchers
# repo: https://github.com/jamesmontalvo3/MediaWiki-CopyWatchers.git
# version: tags/0.10.0
- name: Wiretap
repo: https://github.com/enterprisemediawiki/Wiretap.git
version: master
- name: ApprovedRevs
repo: https://github.com/wikimedia/mediawiki-extensions-ApprovedRevs.git
version: master
config: |
$egApprovedRevsAutomaticApprovals = false;
- name: ImagesLoaded
repo: https://github.com/enterprisemediawiki/ImagesLoaded.git
version: tags/0.1.0
- name: MasonryMainPage
repo: https://github.com/enterprisemediawiki/MasonryMainPage.git
version: tags/0.3.0
# - name: WatchAnalytics
# repo: https://github.com/enterprisemediawiki/WatchAnalytics.git
# version: tags/3.1.1
# 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: 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 }}"
legacy_load: true
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: "master"
- name: PageImporter
repo: https://github.com/enterprisemediawiki/PageImporter.git
version: tags/0.1.0
legacy_load: True
- name: SemanticMeetingMinutes
repo: https://github.com/enterprisemediawiki/SemanticMeetingMinutes.git
version: tags/1.0.0
legacy_load: True
- name: HeaderFooter
repo: https://github.com/enterprisemediawiki/HeaderFooter.git
version: tags/3.0.0
- name: NumerAlpha
repo: https://github.com/wikimedia/mediawiki-extensions-NumerAlpha.git
version: tags/0.7.0
legacy_load: True