MediaWiki:Common.js

Aus Truth-Quark

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „/** Extra toolbar options ****************************************************** * * Description: UNDOCUMENTED * Maintainers: User:MarkS?, [[User:Voic...“)
K (hat „Common.js“ nach „MediaWiki:Common.js“ verschoben)

Version vom 21:34, 23. Mär. 2009

/** Extra toolbar options ******************************************************
  *
  *  Description: UNDOCUMENTED
  *  Maintainers: [[User:MarkS]]?, [[User:Voice of All]], [[User:R. Koot]]
  */
 
 //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://upload.wikimedia.org/wikipedia/commons/c/c8/Button_redirect.png",
     "speedTip": "Umleitung",
     "tagOpen": "#REDIRECT [[",
     "tagClose": "]]",
     "sampleText": "Dein Text"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/c9/Button_strike.png",
     "speedTip": "Durchstreichen",
     "tagOpen": "<s>",
     "tagClose": "</s>",
     "sampleText": "Dein durchgestrichener Text"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/13/Button_enter.png",
     "speedTip": "Umbruch",
     "tagOpen": "<br />",
     "tagClose": "",
     "sampleText": ""};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/99/Button_sup_2.png",
     "speedTip": "Hochgestellt",
     "tagOpen": "<sup>",
     "tagClose": "</sup>",
     "sampleText": "Dein Text"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/e5/Button_sub_2.png",
     "speedTip": "Tiefgestellt",
     "tagOpen": "<sub>",
     "tagClose": "</sub>",
     "sampleText": "Dein Text"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/65/Button_petit.png",
     "speedTip": "Klein",
     "tagOpen": "<small>",
     "tagClose": "</small>",
     "sampleText": "Dein Text"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/56/Button_big.png",
     "speedTip": "Groß",
     "tagOpen": "<big>",
     "tagClose": "</big>",
     "sampleText": "Dein Text"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f0/Btn_infotexto.png",
     "speedTip": "Versteckter Kommentar",
     "tagOpen": "<!-- ",
     "tagClose": " -->",
     "sampleText": "Dein Text"};
 
   /*mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/12/Button_gallery.png",
     "speedTip": "Insert a picture gallery",
     "tagOpen": "\n<gallery>\n",
     "tagClose": "\n</gallery>",
     "sampleText": "Image:Example.jpg|Caption1\nImage:Example.jpg|Caption2"};
    */
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fd/Button_blockquote.png",
     "speedTip": "Zitat auf Diskussionsseiten",
     "tagOpen": "<blockquote>",
     "tagClose": "</blockquote>",
     "sampleText": "Text"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/04/Button_array.png",
     "speedTip": "Tabelle",
     "tagOpen": '{| class="wikitable"\n|-\n',
     "tagClose": "\n|}",
     "sampleText": "! header 1\n! header 2\n! header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.schoenebuntewelt.cheex.de/wiki/skins/common/images/button_forum.png",
     "speedTip": "blabla",
     "tagOpen": "<plab>",
     "tagClose": "</plab>",
     "sampleText": "file"};
 
 }