Gebruiker:Forkboy/common.js

Uit WikiWoordenboek

Let op! Nadat u de veranderingen heeft opgeslagen, moet u de cache van uw browser nog legen om ze daadwerkelijk te zien.

Mozilla (incl. Firefox) Ctrl+Shift+R
Internet Explorer Ctrl+F5
Opera F5
Safari Cmd+R
Konqueror F5
$(function() {
        mw.util.addPortletLink('p-tb', "/wiki/Special:Prefixindex/" + wgPageName, "Prefixindex", 'tb-prefixindex');
});
 
 
// === Extra buttons in toolbar ===
 
/* Van Gebruiker:Londenp/monobook.js: */
// [[User:Lupin/popups.js]] - please include this line 
// document.write('<script type="text/javascript" src="' 
//              + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' 
//              + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// simplePopups=true;
// popupFixDabs=true;
// popupDelay=1;
// popupImages=false;
// popupLiveOptions=true;
// popupFixRedirs = true;
// popupRedirAutoClick = 'wpPreview';
// popupStructure = 'menus';
 
// This is based on the original code at en:User:MarkS/extraeditbuttons.jsbased which
// was based on the original code on Wikipedia:Tools/Editing tools
//
// The original code was on the project page and needed to be cut and paste to the user's
// monobook.js page. However, this caused problems with the quote marks. So I have moved 
// it to its own page. 
//
// I do not know a lot about Javascript so please do not ask for a complicated change
//
// See the [[User:MarkS/Extra edit buttons]] for changes log
 
// === Extra buttons in toolbar ===

//Invoegen zn tabel
mw.toolbar.addButton({
    "imageId": "mw-firstusereditbutton",
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png",
    "speedTip": "Tabel zelfstandig naamwoord",
    "tagOpen": "\{\{-nlnoun-\|\{\{pn\}\}\|\{\{pn\}\}",
    "tagClose": "en|\{\{pn\}\}tje|\{\{pn\}\}tjes\}\}",
    "sampleText": ""})


//Invoegen '''\{\{pn\}\}'''
mw.toolbar.addButton({
    "imageId": "mw-firstusereditbutton",
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/44/Knop_paginanaam.png",
    "speedTip": "Invoegen '''\{\{pn\}\}'''",
    "tagOpen": "'''\{\{pn\}\}'''",
    "tagClose": "",
    "sampleText": ""})

//Uitspraaksjabloon met geluidslink
mw.toolbar.addButton({
    "imageId": "mw-firstusereditbutton",
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/49/Button_talk.png",
    "speedTip": "Uitspraak met geluidslink",
    "tagOpen": "\{\{-pron-\}\}\n*\{\{sound\}\}: \{\{audio|nl-\{\{pn\}\}.ogg|\{\{pn\}\}\}\}\n<!--*\{\{WikiW|IPA\}\}: \{\{IPA|/xxxx/\}\}-->",
    "tagClose": "",
    "sampleText": ""})

document.write('<script type="text/javascript" src="'
+ 'http://nl.wiktionary.org/w/index.php?title=Gebruiker:Forkboy/sjabloon.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');


function openvenster(url){ window.open(url); }
 
 
function stats1() { 
mw.util.addPortletLink('p-cactions', 'http://woordenlijst.org/zoek/?q='+wgPageName, "woordenlijst.org", "ca-stats1", "woordenlijst.org"); 
}
$(stats1);
 
 
function stats2() { 
mw.util.addPortletLink('p-cactions', 'http://www.vandale.nl/vandale/zoekService.do?selectedDictionary=nn&selectedDictionaryName=Nederlands&searchQuery='+wgPageName, "vandale.nl", "ca-stats2", "vandale.nl"); 
}
$(stats2);