MediaWiki:Gadget-toolbar.js

Wikipedia, erkin enciklopediya

Dıqqat: Ózgerislerińiz kóriniwi ushın jańa sazlawlarıńızdı saqlaǵannan keyin brauzerdiń keshin tazalaw kerek:
Google Chrome: Ctrl+Shift+R, Mozilla Firefox: Ctrl+Shift+R, Intenet Explorer: Ctrl+F5, Safari: Cmd+Shift+R, Konqueror: F5, Opera: Tools → Preferences arqalı keshti tazalań.

function addCustomButton( imageFile, speedTip, tagOpen, tagClose, sampleText, imageId )
{
 mwCustomEditButtons[mwCustomEditButtons.length] =
 {"imageId": "mw-editbutton-" + imageId,
  "imageFile": "//upload.wikimedia.org/wikipedia/" + imageFile,
  "speedTip": speedTip,
  "tagOpen": tagOpen,
  "tagClose": tagClose,
  "sampleText": sampleText};
}

//if ( document.getElementById('toolbar') ) {

//               imageFile                         speedTip            tagOpen       tagClose   sampleText
addCustomButton('commons/5/56/Button_big.png',"U'lkeytip jazıw",'<big>','</big>',"U'lkeytilgen tekst",'large');
addCustomButton('commons/5/58/Button_small.png',"Kishireytip jazıw",'<small>','</small>',"Kishireytilgen tekst",'small');
addCustomButton('commons/4/47/Button_redir.png',"Burıwshı kirisririw","#REDIRECT [[","]]","Burıwshı siltewi");
addCustomButton('en/e/e9/Button_headline2.png','2-і деңгей тақрыбы',"\n=== "," ===\n",'2-і деңгей тақрыбы','redirect');
addCustomButton('commons/9/9e/Btn_toolbar_gallery.png','Сурет қоймасы',"\n<gallery>\n","\n</gallery>",'Сурет:FileName.jpg|Белгілеу1\\Сурет:FileName2.jpg|Белгілеу2','gallery');
addCustomButton('en/1/1e/Button_font_color.png',"Қаріп түсі",'<span style="color: тyc_атауын_еңгізіңіз;">',"</span>","Түстелген мәтін",'color');
addCustomButton('commons/3/3b/Button_template_alt.png','Үлгі жақшалары','{'+'{','}'+'}','Үлгі','template');
addCustomButton('commons/3/35/Button_substitute.png','Үлгіні бәделдеу','{{subst:','}}','Үлгі','subst');
addCustomButton('en/e/ea/Button_align_left.png','Сол жақ бойынша туралау','<div style="text-align: left;">\n',"\n</div>",'Сол жақ еже','alignleft');
addCustomButton('en/5/5f/Button_center.png','Ортасы бойынша туралау','<div style="text-align: center;">\n',"\n</div>",'Ортадағы еже','aligncenter');
addCustomButton('en/8/80/Button_upper_letter.png','Жол үстілігі',"<sup>","</sup>",'Жол үстіндегі мәтін','sup');
addCustomButton('en/7/70/Button_lower_letter.png','Жол астылығы',"<sub>","</sub>",'Жол астындағы мәтін','sub');
addCustomButton('commons/3/30/Btn_toolbar_rayer.png','Жол сызу',"<s>","</s>",'Сызылатын жол','strike');
addCustomButton('commons/5/52/Button1.PNG','Сан пішімі',"{{formatnum:","}}",'123456789.0','formatnum');
addCustomButton('commons/8/88/Btn_toolbar_enum.png','Номірлеу',"\n# 1-ші дана\n# 2-ші дана\n# 3-ші дана","",'','enum');
addCustomButton('commons/1/11/Btn_toolbar_liste.png','Байрақшалар',"\n* дана A\n* дана B\n* дана C","",'','bullets');
addCustomButton('en/d/d3/Button_definition_list.png', "Анықтау тізімі", "\n; ",  " : ", "Анықтау атауы",'def');
addCustomButton('commons/b/b0/Button_category02.png',"Санат белгілеу","[[Санат"+":", "]]","Санат",'category');
addCustomButton('en/f/fd/Button_blockquote.png','Дәйексөз','<blockquote>\n',"\n</blockquote>",'Дәйексөз мәтіні','cite');
addCustomButton('commons/3/3c/Button_pre.png','Пішімделген мәтін',"<"+"pre>","</pre"+">",'Пішімделген мәтін','cite');
addCustomButton('commons/2/23/Button_code.png','Әмір',"<"+"code>","</code"+">",'Әмір мәтіні','code');
addCustomButton('commons/7/79/Button_reflink.png','Түсініктеме қосу','<ref>','</ref>','Түсініктеме','ref');
addCustomButton('commons/7/79/Button_include.png','Мәтінді кіріктіру','<include>','</include>','Кіріктірлетін мәтін','include');
addCustomButton('commons/c/ce/Button_no_include.png','Мәтінді кіріктірмеу','<noinclude>','</noinclude>','Кіріктірлмейтін мәтін','noinclude');
addCustomButton('commons/e/eb/Button_templatelink.png','Өзгермес мәтін',"-{","}-",'Өзгермес мәтін','noconversion');
addCustomButton('en/1/13/Button_enter.png','Жол ауыстырғыш',"<br />","",'','br');
//}