MediaWiki:Common.js: различия между версиями
Перейти к навигации
Перейти к поиску
Trol (обсуждение | вклад) Нет описания правки |
Trol (обсуждение | вклад) Нет описания правки |
||
Строка 5: | Строка 5: | ||
if (mwCustomEditButtons) { | if (mwCustomEditButtons) { | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
Строка 18: | Строка 12: | ||
"tagClose": "</videoflash>", | "tagClose": "</videoflash>", | ||
"sampleText": "Arm4g3dd0nX"}; | "sampleText": "Arm4g3dd0nX"}; | ||
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] = { | |||
"imageFile": "http://imod.z-c.lv/wikigd/images/button_code.png", | |||
"speedTip": "Код", | |||
"tagOpen": " <code><nowiki>", | |||
"tagClose": "</nowiki></code>", | |||
"sampleText": "Ваш код"}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://imod.z-c.lv/wikigd/images/button_ul.png", | |||
"speedTip": "Подчеркнутый текст", | |||
"tagOpen": "<u>", | |||
"tagClose": "</u>", | |||
"sampleText": "Ваш текст"}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "http://upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png", | "imageFile": "http://upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png", | ||
Строка 53: | Строка 54: | ||
"tagClose": "</spoiler>", | "tagClose": "</spoiler>", | ||
"sampleText": "Текст"}; | "sampleText": "Текст"}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png", | |||
"speedTip": "Следующая строка", | |||
"tagOpen": "<br>", | |||
"tagClose": "", | |||
"sampleText": ""}; | |||
} | } |
Версия от 16:29, 8 декабря 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_youtube.png", "speedTip": "YouTube", "tagOpen": "<videoflash>", "tagClose": "</videoflash>", "sampleText": "Arm4g3dd0nX"}; 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://imod.z-c.lv/wikigd/images/button_code.png", "speedTip": "Код", "tagOpen": " <code><nowiki>", "tagClose": "</nowiki></code>", "sampleText": "Ваш код"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://imod.z-c.lv/wikigd/images/button_ul.png", "speedTip": "Подчеркнутый текст", "tagOpen": "<u>", "tagClose": "</u>", "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": "Примечание"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://imod.z-c.lv/wikigd/images/Button_sp.png", "speedTip": "Спойлер", "tagOpen": "<spoiler>", "tagClose": "</spoiler>", "sampleText": "Текст"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png", "speedTip": "Следующая строка", "tagOpen": "<br>", "tagClose": "", "sampleText": ""}; }