MediaWiki:Onlyifediting.js — различия между версиями
Taktarova (обсуждение | вклад) (Новая: //============================================================ // Extra toolbar options //============================================================ //********WRITTEN BY User:MarkS****...) |
Taktarova (обсуждение | вклад) |
||
| (не показана 1 промежуточная версия этого же участника) | |||
| Строка 1: | Строка 1: | ||
| + | // <pre> | ||
| + | |||
//============================================================ | //============================================================ | ||
// Extra toolbar options | // Extra toolbar options | ||
| Строка 11: | Строка 13: | ||
//Перенаправление | //Перенаправление | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| − | "imageFile": "http:// | + | "imageFile": "http://draft.hayazg.info/skins/common/images/button_bold.png", |
"speedTip": "Перенаправление", | "speedTip": "Перенаправление", | ||
"tagOpen": "#REDIRECT [[", | "tagOpen": "#REDIRECT [[", | ||
| Строка 18: | Строка 20: | ||
//Категория | //Категория | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| − | "imageFile": "http:// | + | "imageFile": "http://draft.hayazg.info/skins/common/images/button_bold.png", |
"speedTip": "Категория", | "speedTip": "Категория", | ||
"tagOpen": "[[Категория:", | "tagOpen": "[[Категория:", | ||
| Строка 25: | Строка 27: | ||
//Комментарий | //Комментарий | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| − | "imageFile": "http:// | + | "imageFile": "http://draft.hayazg.info/skins/common/images/button_bold.png", |
"speedTip": "Комментарий", | "speedTip": "Комментарий", | ||
"tagOpen": "<!-- ", | "tagOpen": "<!-- ", | ||
| Строка 32: | Строка 34: | ||
//Цитата | //Цитата | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| − | "imageFile": "http:// | + | "imageFile": "http://draft.hayazg.info/skins/common/images/button_bold.png", |
"speedTip": "Развёрнутая цитата", | "speedTip": "Развёрнутая цитата", | ||
"tagOpen": "<blockquote>\n", | "tagOpen": "<blockquote>\n", | ||
| Строка 40: | Строка 42: | ||
addOnloadHook( InsertButtonsToToolBar ); | addOnloadHook( InsertButtonsToToolBar ); | ||
| + | |||
| + | // </pre> | ||
Текущая версия на 05:44, 21 августа 2007
// <pre>
//============================================================
// Extra toolbar options
//============================================================
//********WRITTEN BY User:MarkS********
//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
function InsertButtonsToToolBar()
{
//Перенаправление
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://draft.hayazg.info/skins/common/images/button_bold.png",
"speedTip": "Перенаправление",
"tagOpen": "#REDIRECT [[",
"tagClose": "]]",
"sampleText": "название страницы"}
//Категория
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://draft.hayazg.info/skins/common/images/button_bold.png",
"speedTip": "Категория",
"tagOpen": "[[Категория:",
"tagClose": "]]\n",
"sampleText": "название категории"}
//Комментарий
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://draft.hayazg.info/skins/common/images/button_bold.png",
"speedTip": "Комментарий",
"tagOpen": "<!-- ",
"tagClose": " -->",
"sampleText": "Комментарий"}
//Цитата
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://draft.hayazg.info/skins/common/images/button_bold.png",
"speedTip": "Развёрнутая цитата",
"tagOpen": "<blockquote>\n",
"tagClose": "\n</blockquote>",
"sampleText": "Развёрнутая цитата одним абзацем"}
}
addOnloadHook( InsertButtonsToToolBar );
// </pre>