Gebruiker:Rots61/common.js

Uit Wikikids
Naar navigatie springen Naar zoeken springen

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

Mozilla (incl. Firefox) ctrl-shift-r
IE ctrl-f5
Opera f5
Safari cmd-r
Konqueror f5
mw.loader.using('mediawiki.util', function() {
	mw.util.addPortletLink('p-tb', 
		'https://nl.wikipedia.org/wiki/' + encodeURIComponent(mw.config.get('wgPageName')), 
		'Wikipedia ', '#wikipedialink', mw.config.get('wgPageName') + " op Wikipedia ");
});

mw.loader.using('mediawiki.util', function() {
	mw.util.addPortletLink('p-tb', 
		'https://www.google.nl/search?q=' + encodeURIComponent(mw.config.get('wgPageName')), 
		'Google ', '#googlelink', mw.config.get('wgPageName') + " op Google ");
});

mw.loader.using('mediawiki.util', function() {
	mw.util.addPortletLink('p-tb', 
		'https://wikikids.nl/Speciaal:AllePaginas?hideredirects=1&from=' + encodeURIComponent(mw.config.get('wgPageName')), 
		'Alles ', '#alles', " alles");
});
// Redirecten

var mpTitle = "Wikikids:Visuele tekstverwerker";
var isMainPage = wgPageName == mpTitle
if (isMainPage) 
{window.location="https://wikikids.nl/";}

// First wait for mediawiki.util to load, and the page to be ready.
$.when( mw.loader.using( 'mediawiki.util' ), $.ready ).then( function () { 

	// General usage pattern:
	// mw.util.addPortletLink( portletId, href, text /* Optional: , id, tooltip, accesskey, nextnode */ );

	// Example: Add a link to mediawiki.org to the Tools area, above the "Special pages" link.
	var newElement = mw.util.addPortletLink(
		'p-tb',
		'https://www.mediawiki.org/',
		'Link to mediawiki.org',
		't-mworg',
		'Go to www.mediawiki.org',
		'm',
		'#t-specialpages'
	);
Afkomstig van Wikikids , de interactieve Nederlandstalige Internet-encyclopedie voor en door kinderen. "https://wikikids.nl/index.php?title=Gebruiker:Rots61/common.js&oldid=683256"