MediaWiki:Common.js: Skillnad mellan sidversioner

Från Wiki-Rötter
Hoppa till navigering Hoppa till sök
(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...')
 
Ingen redigeringssammanfattning
Rad 1: Rad 1:
/* JavaScript som skrivs här körs varje gång en användare laddar en sida. */
/* JavaScript som skrivs här körs varje gång en användare laddar en sida. */
/* Quote button */
<!-- Google tag (gtag.js) -->
<!--<script async src="https://www.googletagmanager.com/gtag/js?id=UA-44868260-2"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());


var button = {
  gtag('config', 'UA-44868260-2');
        "imageFile": "http://www.genealogi.se/wiki/images/quote_mark.gif",  //22x22 pixels
</script>-->
        "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 */

Versionen från 21 november 2022 kl. 15.16

/* JavaScript som skrivs här körs varje gång en användare laddar en sida. */
<!-- Google tag (gtag.js) -->
<!--<script async src="https://www.googletagmanager.com/gtag/js?id=UA-44868260-2"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-44868260-2');
</script>-->