User:Rodejong/vector.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin is at User:Rodejong/vector.css. |
- Report page listing warnings and errors.
//full_page_name
importScript('full_page_name');
// Laatste Update: woensdag 23 maart 2011
//*--------------------------------------------------* HIER ONDER WERKEND *--------------------------------------------------*
// Omwille van Bugs:
//Pop-ups toegevoegd 040909
//importScript('MediaWiki:Gadget-popups.js');
/*jshint scripturl:true*/
//mw.util.addPortletLink('p-tb', 'javascript:importScript("MediaWiki:VisualFileChange.js");', 'Perform batch task', 't-AjaxQuickDeleteOnDemand');
/*jshint scripturl:false*/
//importScript('User:Jheald/wdcat.js');
//</pre>
//*--------------------------------------------------* [[ Redirect ]] *--------------------------------------------------*
//
// Redirect van Hoofdpagina naar Overlegpagina
//if (wgPageName == "Hoofdpagina") {
//hookEvent("load", function() {window.location="http://commons.wikipedia.org/wiki/User_talk:Rodejong";});
//}
//*--------------------------------------------------* [[ Import ]] *--------------------------------------------------*
//
// [[File:Krinkle_RTRC.js]] -> [[:en:User:Krinkle/Tools/Real-Time Recent Changes]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');
//*-------------importScript('collegae');-----------*
//importScript('User:Arkanosis/iKiwi.js');
//mw.loader.load('//nl.wikimedia.org/w/index.php?title=User:MrBlueSky/markeer.js'); // -[[Markeerlink]]-Nieuwe verbeterde versie
//*-------------importScript('Rodejong/');-----------*
//mw.loader.load('//nl.wikimedia.org/w/index.php?title=User:Rodejong/interwiki.js');
//mw.loader.load('//nl.wikimedia.org/w/index.php?title=User:Rodejong/wikilove.js');
//mw.loader.load('//nl.wikimedia.org/w/index.php?title=User:Rodejong/strings-nl.js');
//mw.loader.load('//nl.wikimedia.org/w/index.php?title=User:Rodejong/ajaxpreview.js');
//mw.loader.load('//nl.wikimedia.org/w/index.php?title=User:Rodejong/crosswikicontr.js');
//*--------------------------------------------------* [[ ADD LINKS ]] *--------------------------------------------------*
// Voeg extra links toe aan het menu links m.b.v. de functie addLink
function addLink(where, url, name, id, title, key, after) {
// addLink() accepts either an id or a DOM node, mw.util.addPortletLink() only takes a node
if (after && !after.cloneNode)
after = document.getElementById(after);
return mw.util.addPortletLink(where, url, name, id, title, key, after);
}
// ---- link naar Barnstars m.b.v. addLink
addOnloadHook( function(){
addLink("p-navigation", "http://commons.wikimedia.org/wiki/Category:Barnstars", "Barnstars", "n-barnstars", "Barnstars", 0);
});
// ---- link naar Geheugensteuntjes voor Vandalisme bestrijding m.b.v. addLink
addOnloadHook( function(){
addLink("p-navigation", "http://nl.wikipedia.org/wiki/Gebruiker:Rodejong/Geheugensteuntjes_voor_Vandalismebestrijding", "Vandalisme", "n-vandalisme", "Vandalisme bestrijding", 0);
});
// ---- link naar de Kroeg m.b.v. addLink
addOnloadHook( function(){
addLink("p-navigation", "http://nl.wikipedia.org/wiki/Wikipedia:De_kroeg", "De Kroeg", "n-kroeg", "De kroeg", 0);
});
// ---- link naar mijn kladblok m.b.v. addLink
addOnloadHook( function(){
addLink("p-navigation", "http://nl.wikipedia.org/wiki/Gebruiker:Rodejong/kladblok", "Kladblok", "n-kladblok", "Mijn Kladblok", 0);
});
// ---- link naar mijn blacklist
addOnloadHook( function(){
addLink("p-navigation", "http://nl.wikipedia.org/wiki/Gebruiker:Rodejong/blacklist", "Blacklist", "n-blacklist", "Mijn Blacklist", 0);
});
// ---- link naar nog ongecontroleerde anonieme wijzigingen m.b.v. addLink
addOnloadHook( function(){
addLink("p-navigation", "http://nl.wikipedia.org/w/index.php?title=Speciaal:Recentchanges&hidepatrolled=1&limit=200&hideliu=1", "Checklist", "n-checklist", "Ongecontroleerde anonieme wijzigingen", 0);
});
// ---- link naar Verzoekpagina voor Moderatoren
addOnloadHook( function(){
addLink("p-navigation", "http://nl.wikipedia.org/wiki/Wikipedia:Verzoekpagina_voor_moderatoren", "MOD", "n-MOD", "Verzoekpagina voor Moderatoren", 0);
});
// ---- link naar de Arbitragecommissie
addOnloadHook( function(){
addLink("p-navigation", "http://nl.wikipedia.org/wiki/Wikipedia:Arbitragecommissie/Zaken", "ArbCom", "n-ArbCom", "Arbitragecommissie", 0);
});
// ---- link naar Hulp & Beheer
addOnloadHook( function(){
addLink("p-navigation", "http://nl.wikipedia.org/wiki/Wikipedia:Help", "Hulp & Beheer", "n-Hulp & Beheer", "Portaal:Hulp en beheer", 0);
});
// Prefixindex bovenin hulpmiddelen-menu
$(function() {
mw.util.addPortletLink('p-tb', "/wiki/Special:Prefixindex/" + wgPageName, "Prefixindex", 'tb-prefixindex', 'Prefixindex', null, document.getElementById('t-whatlinkshere') || document.getElementById('t-upload') );
});
//*--------------------------------------------------* [[DropDownToTabs]] *--------------------------------------------------*
//
// changes the drop-down menu in Vector into tabs from: en:User:Svick/DropDownToTabs.js
//function fixTab(item) {
// if (item.innerHTML.indexOf('<span>') == -1)
// item.innerHTML = "<span>" + item.innerHTML + "</span>";
//}
//addOnloadHook(function() {
// document.getElementById('p-cactions').className = 'vectorTabs';
// var elems = document.getElementById('p-cactions').getElementsByTagName('li');
// for (var i = 0; i < elems.length; i++)
// fixTab(elems[i]);
//})
//*--------------------------------------------------* [[ TAB TOEVOEGEN]] *--------------------------------------------------*
//*---------------* [[Import]] *---------------*
mw.loader.load('https://nl.wikimedia.org/w/index.php?title=Gebruiker:Rodejong/userinfo.js');
mw.loader.load('//nl.wikimedia.org/w/index.php?title=Gebruiker:Rodejong/totalen.js'); // Laat totalen zien in logs en bijdragen
//*---------------* [[ TAB ]] *---------------*
// Toevoeging tabbladen voor statistieken
// Oude versie:
// function stats() {
// mw.util.addPortletLink('p-cactions', 'http://stats.grok.se/nl/200812/'+wgPageName, "stats", "ca-stats", "See article stats");
// }
// addOnloadHook(stats);
function stats1() {
var currentTime = new Date();
var maand = currentTime.getMonth();
var jaar = currentTime.getFullYear();
mw.util.addPortletLink('p-cactions', 'http://stats.grok.se/nl/' + jaar + (maand < 10 ? "0" : "") + maand + "/" + wgPageName, "stats", "ca-stats", "See article stats");
}
$(stats1);
function stats2() {
var currentTime = new Date();
var jaar = currentTime.getFullYear();
mw.util.addPortletLink('p-cactions', 'http://stats.grok.se/nl/' + jaar + "/" + wgPageName, "jr", "ca-stats", "See article stats");
}
$(stats2);
function PurgePage() {
var paginanaam = wgPageName
mw.util.addPortletLink('p-cactions', 'http://commons.wikimedia.org/w/index.php?title=' + pagename + '&action=purge', "P", "purge-page", "Purge");
}
$(PurgePage);
// ---------- (( "Kopje toevoegen" vervangen door "+" )) ----------
$(function(){
jQuery("#ca-addsection span a").html("+");
});
// ---------- (( "Geschiedenis" vervangen door "Gesch." )) ----------
$(function(){
jQuery("#ca-history span a").text("Gesch.");
});
//*--------------------------------------------------* [[ Extra Buttons ]] *--------------------------------------------------*
//
function InsertButtonsToToolBar() {
// Invoegen PAGENAME
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/13/Toolbaricon_bold_N.png",
"speedTip": "PAGENAME",
"tagOpen": "\{\{PAGENAME\}\}",
"tagClose": "",
"sampleText": ""}
//Samenvatting Tip plaatsen
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstusereditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/5e/Aac_tipp.png",
"speedTip": "Samenvatting",
"tagOpen": "\{\{Gebruiker:Rodejong/Tip/Samenvatting\}\} - \~\~\~\~",
"tagClose": "",
"sampleText": ""}
//*-----* Nieuwe regel *-----*
//Insert Credit Camera
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstusereditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f2/Button_prononciation.png",
"speedTip": "Credit Camera",
"tagOpen": "{\{RodejongCredit}\}",
"tagClose": "",
"sampleText": ""}
//Insert Credit3 (C)kort
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstusereditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f2/Button_prononciation.png",
"speedTip": "Credit3 (C) kort",
"tagOpen": "{\{RodejongCredit3}\}",
"tagClose": "",
"sampleText": ""}
//Insert Credit1 (C) lang
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstusereditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f2/Button_prononciation.png",
"speedTip": "Credit1 (C) lang",
"tagOpen": "{\{RodejongCredit1}\}",
"tagClose": "",
"sampleText": ""}
//Welkom nieuwe gebruiker
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstusereditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f2/Button_prononciation.png",
"speedTip": "Welkom gebruiker",
"tagOpen": "{\{welkom}\}\nWelkom\! - \~\~\~\~",
"tagClose": "",
"sampleText": ""}
//Welcome new user
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstusereditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f2/Button_prononciation.png",
"speedTip": "Welcome user",
"tagOpen": "{\{welcome}\}\nWelcome\! - \~\~\~\~",
"tagClose": "",
"sampleText": ""}
// Bronvermelding anderstalige Wikipedia
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/67/Button_BY.png",
"speedTip": "Bronvermelding anderstalige Wikipedia invoegen",
"tagOpen": "\* \{\{Bronvermelding anderstalige Wikipedia|taal=|titel=|oldid=|datum={\{subst:LOCALYEAR}}{\{subst:LOCALMONTH2}}{\{subst:LOCALDAY2}}|sectie=}}",
"tagClose": "",
"sampleText": ""}
// Invoegen Geen Coördinaten
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/25/Nuvola_apps_kmines.png",
"speedTip": "Geen Coördinaten invoegen",
"tagOpen": "\{\{Geen coördinaten\|Denemarken\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen largethumb
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/12/Button_gallery.png",
"speedTip": "Largethumb invoegen",
"tagOpen": "\{\{Largethumb\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen Uitgevoerd
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "uitgevoerdafbeelding",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/e9/Button_done.png",
"speedTip": "Uitgevoerd",
"tagOpen": "\[\[Bestand:Crystal Clear action apply.png|17px|Uitgevoerd\]\] '''",
"tagClose": "'''",
"sampleText": "Uitgevoerd"}
// Invoegen Voorweg
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/c3/Symbol_support_vote-tango.svg",
"speedTip": "Voorweg",
"tagOpen": "\{\{Voorweg\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen Tegenweg
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/5e/Symbol_oppose_vote_oversat.svg",
"speedTip": "Tegenweg",
"tagOpen": "\{\{Tegenweg\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen opmerking
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a6/Pictogram_voting_comment.svg",
"speedTip": "opmerking",
"tagOpen": "\{\{opmerking\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen Voor
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/c3/Symbol_support_vote-tango.svg",
"speedTip": "Voor",
"tagOpen": "\{\{Voor\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen Tegen
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/5e/Symbol_oppose_vote_oversat.svg",
"speedTip": "Tegen",
"tagOpen": "\{\{Tegen\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen Neutraal
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/d/d2/Symbol_neutral_vote_black.svg",
"speedTip": "Neutraal",
"tagOpen": "\{\{Neutraal\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen dpintro
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/5e/Button_disambig_small.png",
"speedTip": "dpintro",
"tagOpen": "\{\{dpintro\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen dp
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/62/Button_desambig.png",
"speedTip": "dp",
"tagOpen": "\{\{dp\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen Zandbak
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/77/Button_Nuvola_apps_edu_phi.png",
"speedTip": "Zandbak invoegen",
"tagOpen": "\{\{zandbak\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen Berisping
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/9d/Button_halt.png",
"speedTip": "Vandalisme invoegen",
"tagOpen": "\{\{berisping\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen Waarschuwing
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b4/Button_opinion.png",
"speedTip": "Waarschuwing invoegen",
"tagOpen": "\{\{waarschuwing\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen Tilde
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/38/Button_plume.png",
"speedTip": "Uitleg Tilde invoegen",
"tagOpen": "\{\{tilde\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen WIU
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/48/Deletewarn1.png",
"speedTip": "Wiu invoegen",
"tagOpen": "\{\{wiu\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen WEG
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/7d/Deletewarn2.png",
"speedTip": "Weg invoegen",
"tagOpen": "\{\{weg\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen NUWEG
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/07/Deletewarn3.png",
"speedTip": "Nuweg invoegen",
"tagOpen": "\{\{nuweg\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen COMMONS
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f8/Button_Tool_commons.png",
"speedTip": "Categorie Commons invoegen",
"tagOpen": "\{\{commonscat\|\}\}",
"tagClose": "",
"sampleText": ""}
// Invoegen MMSI Scheepsinformatie (tracking vessels)
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageId": "mw-firstextraeditbutton",
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/32/Ferry_icon.png",
"speedTip": "MMSI Scheepsinformatie invoegen",
"tagOpen": "\{\{Scheepsinformatie\|mmsi=\}\}",
"tagClose": "",
"sampleText": ""}
}
$( InsertButtonsToToolBar );
//*--------------------------------------------------* [[ Unwatch Link ]] *--------------------------------------------------*
// Unwatchlink per item op volglijst
// Geeft op de volglijst een link "niet volgen" bij elk artikel
$(function () {
// Alleen voor "Volglijst":
if (window.location.href.indexOf("Special:Watchlist") == -1) return;
// Niet voor "Volglijst bekijken en bewerken":
if (window.location.href.indexOf("Special:Watchlist/edit") > 0) return;
// Idem, via link op "Ruwe volglijst bewerken":
if (window.location.href.indexOf("Special:Watchlist/raw") > 0) return;
var query_prefix = "&action=unwatch";
var count = 0;
var links = document.getElementById('content').getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
if (links[i].href.substring(links[i].href.length-15) != '&action=history')
continue;
var unwatch = document.createElement('a');
count++;
if (count>35) {
break;
}
unwatch.href = "/w/index.php?title=" + encodeURIComponent(links[i].title) + query_prefix;
unwatch.title = "Verwijder "+links[i].title+" van je volglijst";
unwatch.appendChild(document.createTextNode("unwatch"));
links[i].parentNode.insertBefore(unwatch, links[i].nextSibling);
// kluge to handle case where "diff" is unlinked:
var delim = links[i].previousSibling;
delim = (delim.nodeType == 3 ? delim.nodeValue : "");
links[i].parentNode.insertBefore(document.createTextNode(delim.replace(/^.*diff/, "")), unwatch);
}
});
//*--------------------------------------------------* [[SUMURAI]] [[Extra Buttons]] *--------------------------------------------------*
//********************************
// Eigen script om standaard *
// samenvattingen mogelijk te *
// maken. *
// *
// By: Sumurai8 *
// Problemen/bugs: Mijn overleg *
//********************************
//***************************
// Set to true to disable this
var rsDisabled = false
//Lijst van samenvattingen:
array_reas = new Array()
//******************************************
//Toevoegen van de samenvattingen:
//
//Op de volgende manier:
//array_reas[volgnummer] = new Reas("weergegeven naam", "samenvatting")
array_reas[0] = new Reas("betere naam in lijn andere sjabs","Betere naam in lijn met andere sjablonen")
array_reas[1] = new Reas("archief: weg","Archivering na verwijdernominatie")
array_reas[2] = new Reas("archief: oud","Archivering wegens veroudering")
array_reas[3] = new Reas("dp-achtervoegsel","Achtervoegsels tussen haakjes zijn alleen bedoeld ter disambiguering, hier totaal onnodig")
array_reas[4] = new Reas("meerdere met naam","Er zijn meerdere onderwerpen met deze naam")
//Tot hier
//******************************************
//******************************************
//Vanaf hier niet bewerken
//Om een nieuwe samenvatting te kunnen toevoegen:
function Reas(naam, reas) {
this.naampje = naam
this.reas = reas
}
//Toevoegen van de lijst:
if((!rsDisabled) && (document.location.toString().indexOf("Speciaal:PaginaHernoemen") != -1)) {
$(addReason);
}
function addReason() {
array_length = array_reas.length
tekst2 = "<td id=\"standaardredenen\">Standaard: "
//***************************
//Regular expression starts here
for(var counter=0;counter<array_length;counter++) {
tekst2 += "<a style=\"cursor:pointer; cursor:hand\" OnClick=\"document.getElementById('wpReason').value=\'"
tekst2 += array_reas[counter].reas
tekst2 += "\'\">"
tekst2 += array_reas[counter].naampje
tekst2 += "</a>; "
}
tekst2 += "</td>"
var tag2 = document.getElementById('bodyContent')
if(tag2) {
var div = document.createElement('div')
div.innerHTML=tekst2
tag2.insertBefore(div,tag2.getElementsByTagName('h2')[0])
}
}
//********************************
// Eigen script om standaard *
// samenvattingen mogelijk te *
// maken. *
// *
// By: Sumurai8 *
//********************************
//***************************
//Voeg de volgende regel toe wanneer u
//tijdelijk geen standaard samenvattingen
//wilt zien:
//var noSamenvatting = true
//Lijst van samenvattingen:
array_sam = new Array()
//******************************************
//Toevoegen van de samenvattingen:
//
//Op de volgende manier:
//array_sam[volgnummer] = new Sam("weergegeven naam", "samenvatting")
array_sam[0] = new Sam("antwoord", "Antwoord gegeven")
array_sam[1] = new Sam("nuweg", "\{\{Nuweg\}\}")
array_sam[2] = new Sam("aanv", "Aanvulling")
array_sam[3] = new Sam("fix", "Cat-, Link- en/of opmaakfix")
array_sam[4] = new Sam("+ref", "Referentie toegevoegd")
array_sam[5] = new Sam("+cat", "Categorie toegevoegd")
array_sam[6] = new Sam("+interwiki", "Interwiki toegevoegd")
array_sam[7] = new Sam("wikEd", "linkfix met wikEd!, [[Gebruiker:Rodejong/wikEd|help mee!]]")
array_sam[8] = new Sam("linkfix dp", "Linkfix, geen link naar dp’s, [[WP:LND|help mee!!]]")
array_sam[9] = new Sam("update", "Update")
array_sam[10] = new Sam("Arkiv", "Gearchiveerd naar [[Overleg gebruiker:Rodejong/Archief2011]]")
array_sam[11] = new Sam("dp", "DP indeling / aanvulling")
array_sam[12] = new Sam("poets", "Poetsje")
array_sam[13] = new Sam("feit", "\{\{feit\}\}?")
array_sam[14] = new Sam("-beg", "-Beg, allang geen beginnetje meer, zie [[Wikipedia:Beginnetje]]")
array_sam[15] = new Sam("bron", "Bronnen, noten en referenties")
array_sam[16] = new Sam("+", "+")
array_sam[17] = new Sam("wiu", "\{\{wiu}\}")
array_sam[18] = new Sam("weg", "\{\{weg}\}")
array_sam[19] = new Sam("welkom", "\{\{Welkom\}\} --\~\~\~\~")
array_sam[20] = new Sam("tilde", "\{\{Tilde\}\}")
array_sam[21] = new Sam("dubb", "Dubbeling verwijdert")
array_sam[22] = new Sam("fyi", "Ter uwer informatie")
array_sam[23] = new Sam("op", "Zie het OP")
array_sam[24] = new Sam("war", "Geachte moderatoren: Er is een Bewerkingsoorlog aan de gang!")
array_sam[25] = new Sam("NyLm", "Nieuw Lemma. Even wachten graag met editen.")
array_sam[26] = new Sam("feit", "\{\{feit\|\|2=2011\|3=\|4=}\}")
//******************************************
//Om een nieuwe samenvatting te kunnen toevoegen:
function Sam(naam, sam) {
this.naam = naam
this.sam = sam
}
//Toevoegen van de lijst:
if(typeof(noSamenvatting)=='undifined') var noSamenvatting=false
if((!noSamenvatting) && (document.location.toString().indexOf("http://nl.wikipedia.org/w/") != -1)) {
if (window.addEventListener) {
window.addEventListener('load',addSamenvatting,false)
}
else if(window.attachEvent) {
window.attachEvent('onload',addSamenvatting)
}
}
function addSamenvatting() {
array_length = array_sam.length
tekst = "<span id=\"standaardsamenvattingen\">Samenvatting: "
//***************************
//Need this to define wpSummary in FireFox
if( typeof( window.innerWidth ) == 'number') {
wpSummary = document.getElementById('wpSummary')
}
//***************************
//Regular expression starts here
for(var counter=0;counter<array_length;counter++) {
tekst += "<a style=\"cursor:pointer; cursor:hand\" OnClick=\"wpSummary.value=\'"
tekst += array_sam[counter].sam
tekst += "\'\">"
tekst += array_sam[counter].naam
tekst += "</a>; "
}
tekst += "</span>"
var tag = document.getElementById('wpSummaryLabel')
if(tag) {
var div = document.createElement('div')
div.innerHTML=tekst
tag.insertBefore(div,null)
}
}
//*--------------------------------------------------* Conflicteert met Extra knoppen *--------------------------------------------------*
//--------------------[[ wikEd ]]-------------------- ( Disabled )
//importScript('Rodejong/wikEd.js'); // Software
//importScript('Gebruiker:Rodejong/wikEd international nl.js);
//*--------------------------------------------------* Conflicteert met Extra knoppen *--------------------------------------------------*
//--------------------[[ Zeus ]]-------------------- ( Te veel Bugs )
//importScript('User:Trijnstel/zeusmode.js'); // Zeusmodus
//importScript('User:Rodejong/zeusmodepreferences.js');