Use only the first item of various magic words

Bug: T273231
Change-Id: I1f88eb3e043cb95f939a7e38ddaa3e39a49523fa
Follows-Up: Ib03932d3d85a5540bea325f2717da3365756a90e
This commit is contained in:
Reedy 2021-01-29 02:32:13 +00:00
parent b16eb935b2
commit 4dcd3baab0

View file

@ -277,7 +277,7 @@
action: {
type: 'encapsulate',
options: {
pre: configData.magicWords.redirect + ' [[',
pre: configData.magicWords.redirect[ 0 ] + ' [[',
periMsg: 'wikieditor-toolbar-tool-redirect-example',
post: ']]',
ownline: true
@ -532,7 +532,7 @@
syntax: { htmlMsg: [
'wikieditor-toolbar-help-content-file-syntax',
fileNamespace,
configData.magicWords.img_thumbnail,
configData.magicWords.img_thumbnail[ 0 ],
mw.message( 'wikieditor-toolbar-help-content-file-caption' ).text()
] },
result: { html: '<div class="thumbinner" style="width: 102px;">' +