MediaWiki:Common.js

Från Wiki-Rötter
Version från den 22 oktober 2010 kl. 09.03 av Ninwik (diskussion | bidrag) (Skapade sidan med '→‎JavaScript som skrivs här körs varje gång en användare laddar en sida.: →‎Quote button: var button = { "imageFile": "http://www.genealogi.se/wiki/images/quot...')
(skillnad) ← Äldre version | Nuvarande version (skillnad) | Nyare version → (skillnad)
Hoppa till navigering Hoppa till sök

OBS: Efter du har publicerat sidan kan du behöva tömma din webbläsares cache för att se ändringarna.

  • Firefox / Safari: Håll ned Skift och klicka på Uppdatera sidan eller tryck antingen Ctrl-F5 eller Ctrl-R (⌘-R på Mac)
  • Google Chrome: Tryck Ctrl-Skift-R (⌘-Shift-R på Mac)
  • Internet Explorer / Edge: Håll ned Ctrl och klicka på Uppdatera eller tryck Ctrl-F5

Opera: Tryck Ctrl-F5.

/* JavaScript som skrivs här körs varje gång en användare laddar en sida. */
/* Quote button */

var button = {
        "imageFile": "http://www.genealogi.se/wiki/images/quote_mark.gif",  //22x22 pixels
        "speedTip": "Quote",    //text shown in a tooltip when hovering the mouse over the button
        "tagOpen": "<div style='background-color:#F5F5F5'>",        //the text to use to mark the beginning of the block
        "tagClose": "</div>",      //the text to use to mark the end of the block (if any)
        "sampleText": "Insert quote here"   //the sample text to place inside the block
};
mwCustomEditButtons.push(button);

/* End of Quote button */