MediaWiki:Common.js: различия между версиями
Перейти к навигации
Перейти к поиску
Trol (обсуждение | вклад) Нет описания правки |
Trol (обсуждение | вклад) Нет описания правки |
||
Строка 3: | Строка 3: | ||
// This is based on the original code on Wikipedia:Tools/Editing tools | // This is based on the original code on Wikipedia:Tools/Editing tools | ||
// To disable this script, add <code>mwCustomEditButtons = [];<code> to [[Special:Mypage/monobook.js]] | // To disable this script, add <code>mwCustomEditButtons = [];<code> to [[Special:Mypage/monobook.js]] | ||
if (mwCustomEditButtons) { | if (mwCustomEditButtons) { | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "http://sonic-planet.ru/skins/common/images/button_mp3.png", | "imageFile": "http://sonic-planet.ru/skins/common/images/button_mp3.png", | ||
"speedTip": "Mp3", | "speedTip": "Mp3", | ||
"tagOpen": "<flashmp3></flashmp3>", | "tagOpen": "<flashmp3>filename.mp3</flashmp3>", | ||
"tagClose": " | "tagClose": "", | ||
"sampleText": " | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png", | "imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png", | ||
"speedTip": "Следующая строка", | "speedTip": "Следующая строка", | ||
"tagOpen": "<br>", | "tagOpen": "<br />", | ||
"tagClose": "", | "tagClose": "", | ||
"sampleText": ""}; | "sampleText": ""}; | ||
Строка 21: | Строка 22: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "http://sonic-planet.ru/skins/common/images/button_vq.png", | "imageFile": "http://sonic-planet.ru/skins/common/images/button_vq.png", | ||
"speedTip": "Цветной | "speedTip": "Цветной текс", | ||
"tagOpen": "<font style='color: #*Код цвета*;'>, | "tagOpen": "<font style='color: #*Код цвета*;'>'''*Ваш текст*'''", | ||
"tagClose": "</font>", | "tagClose": "</font>", | ||
"sampleText": " | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
Строка 33: | Строка 34: | ||
"sampleText": "Comment"}; | "sampleText": "Comment"}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png", | "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png", |
Версия от 16:37, 28 ноября 2010
/* Размещённый здесь JavaScript код будет загружаться всем пользователям при обращении к каждой странице */ //This is a modified copy of a script by User:MarkS for extra features added by User:Voice of All. // This is based on the original code on Wikipedia:Tools/Editing tools // To disable this script, add <code>mwCustomEditButtons = [];<code> to [[Special:Mypage/monobook.js]] if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://sonic-planet.ru/skins/common/images/button_mp3.png", "speedTip": "Mp3", "tagOpen": "<flashmp3>filename.mp3</flashmp3>", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png", "speedTip": "Следующая строка", "tagOpen": "<br />", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://sonic-planet.ru/skins/common/images/button_vq.png", "speedTip": "Цветной текс", "tagOpen": "<font style='color: #*Код цвета*;'>'''*Ваш текст*'''", "tagClose": "</font>", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png", "speedTip": "Вставить скрытый комментарий", "tagOpen": "<!-- ", "tagClose": " -->", "sampleText": "Comment"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png", "speedTip": "Вставить примечание", "tagOpen": "<ref>", "tagClose": "</ref>", "sampleText": "Примечание"}; }