Обсуждение MediaWiki:Editpage.js
Проблема с кнопкой[править]
Cinemantique требуется исправить следующий кусок кода, чтобы иконка перенаправления появилась:
// Adding groups to an existing toolbar section:
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'main',
'groups': {
'extra': {
},
'insert': {
'tools': {
'redirect': {
'labelMsg': 'wikieditor-toolbar-tool-redirect',
'type': 'button',
'icon': {'default': 'insert-redirect.png', 'default-rtl': 'insert-redirect-rtl.png'},
'action': {
'type': 'encapsulate',
'options': {
'pre': "#перенаправление [[",
'periMsg': 'wikieditor-toolbar-tool-redirect-example',
'post': "]]",
'ownline': true
}
}
В этом коде название файла insert-redirect.png надо заменить на Insert_redirect.png. OlegCinema (обсуждение) 07:01, 20 июня 2018 (UTC)
- Спасибо. Теперь понадобится время, чтобы изменения вступили в силу.
- Спасибо, так неожиданно! Cinemantique (обсуждение) 07:10, 20 июня 2018 (UTC)
- Cinemantique: Замените
'icon': {'default': 'insert-redirect.png', 'default-rtl': 'insert-redirect-rtl.png'},
на'icon': '//upload.wikimedia.org/wikipedia/commons/7/76/Insert_redirect.png',
. То есть требуется, чтобы иконка вытягивалась отсюда: https://upload.wikimedia.org/wikipedia/commons/7/76/Insert_redirect.png?1jmdr7j OlegCinema (обсуждение) 07:12, 20 июня 2018 (UTC)- Cinemantique: Всё, сработало! Удачной работы! OlegCinema (обсуждение) 07:21, 20 июня 2018 (UTC)
- Cinemantique: Замените