User:Purodha/edit.js

From translatewiki.net
< User:Purodha
Revision as of 13:33, 22 November 2009 by Purodha (talk | contribs)
Jump to navigation Jump to search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
// add buttons to the edit page toolbar
 if (mwCustomEditButtons)
 {
  function kshCustomEditButtonInsertIndex(offset)
  {
   return(offset);
   for(var i=mwCustomEditButtons.length; i>offset; --i)
   {
    mwCustomEditButtons[i] = mwCustomEditButtons[i-1]
   }
   return(offset)
  }

 // →[[]] [[Image:Button_arrow_right.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/f/ff/Button_arrow_right.png",
  "speedTip": "Loor op",
  "tagOpen": "→&nbsp;[[",
  "tagClose": "]]",
  "sampleText": "Tittel fun dä Sigk"};
 /* „“ [[Image:Button_Anführung.png]] */
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anführung.png",
  "speedTip": "Anföhronge",
  "tagOpen": "„",
  "tagClose": "“",
  "sampleText": "$1"};
 /* "" [[Image:Button_quotes.png]] */
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/4/4d/Button_quotes.png",
  "speedTip": "Ënglesche Anföhronge",
  "tagOpen": '"',
  "tagClose": '"',
  "sampleText": "Tex"};
 //big [[Image:Button_big_2.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/c/cb/Button_big_2.png",
  "speedTip": "big",
  "tagOpen": "<big>",
  "tagClose": "</big>",
  "sampleText": "Text"};
 //sup [[Image:Button_sup_2.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/9/99/Button_sup_2.png",
  "speedTip": "Huh_jeshtallt",
  "tagOpen": "<sup>",
  "tagClose": "</sup>",
  "sampleText": "Tëx huh_jeshtallt"};
 //small [[Image:Button_small_2.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/1/17/Button_small_2.png",
  "speedTip": "small",
  "tagOpen": "<small>",
  "tagClose": "</small>",
  "sampleText": "Tex en klëijn"};
 //sub [[Image:Button_sub_2.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/e/e5/Button_sub_2.png",
  "speedTip": "Noh onge jeshtallt",
  "tagOpen": "<sub>",
  "tagClose": "</sub>",
  "sampleText": "Noh onge jeshtallte Tëx"};
 //s [[Image:Button_strike.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png",
  "speedTip": "Dorschjeschtresche",
  "tagOpen": "<s>",
  "tagClose": "</s>",
  "sampleText": "Dorschjeschtresche Tëx"};
 //code [[Image:Button_code.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/2/23/Button_code.png",
  "speedTip": "code",
  "tagOpen": "<code>",
  "tagClose": "</code>",
  "sampleText": "Text"};
 //span [[Image:Button_span_2.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/7/72/Button_span_2.png",
  "speedTip": "span",
  "tagOpen": '<span class="plainlinks">',
  "tagClose": "</span>",
  "sampleText": "Text"};
 //en [[Image:Button_l_en.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/6/63/Button_l_en.png",
  "speedTip": "Ob_Änglesch",
  "tagOpen": "<i lang=\"en\">",
  "tagClose": "</i>",
  "sampleText": "English text sample"};

 // &amp;nbsp; [[Image:Button nbsp 1.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/5/55/Button_nbsp_1.png",
  "speedTip": "Enne Zwescheroum, dä nėt ed_Äng fun_enne Rëij wääde kann",
  "tagOpen": "&nbsp;",
  "tagClose": "",
  "sampleText": ""};
 // &lt;br /> [[Image:Button_enter.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png",
  "speedTip": "Eng vun de Reij, un nöüje Reij aanfange",
  "tagOpen": "<br />",
  "tagClose": "",
  "sampleText": ""};

 //{{}} [[Image:Button_plantilla.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png",
  "speedTip": "Alls_en Schablohn opprohfe",
  "tagOpen": "{{",
  "tagClose": "}}",
  "sampleText": "Schablon"};
 //{{msg|}} [[Image:Button_plantilla.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png",
  "speedTip": "ene Lengk op e Nohresch",
  "tagOpen": "{{msg-mw|",
  "tagClose": "|notext=1}}",
  "sampleText": "Nohresch"};
 //{{msg|}} [[Image:Button_broom.png]]
 mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile":"http://upload.wikimedia.org/wikipedia/commons/2/2e/Button_broom.png",
// http://commons.wikimedia.org/wiki/File:Button_d%C3%A9c%C3%A8s.png
  "speedTip": ":{{done|Corrected}} with [[:mwr:xyzzy|revision xyzzy]]. --~~"+"~~",
  "tagOpen": ":{{done|Corrected}} with [[:mwr:xyzzy|revision ",
  "tagClose": "]]. --~~"+"~~",
  "sampleText": "xyzzy"};
 //Forsooch:
 // mwCustomEditButtons[mwCustomEditButtons.length] = mwCustomEditButtons[0]
};