|
|
(6 versions intermédiaires par le même utilisateur non affichées) |
Ligne 1 : |
Ligne 1 : |
| //<pre><nowiki>
| | document.write('<script type="text/javascript" src="' |
| // LIENS GAUCHE/BOITE PERSO
| | + 'http://www.wikiberal.org/w/index.php?title=Utilisateur:Safeguard/common.js' |
| function addLoadEvent(func)
| | + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
| {
| |
| if (window.addEventListener)
| |
| window.addEventListener("load", func, false);
| |
| else if (window.attachEvent)
| |
| window.attachEvent("onload", func);
| |
| }
| |
| | |
| function nouvelleBoite() {
| |
| var l = document.getElementById("column-one");
| |
| if (l) {
| |
| l.innerHTML = l.innerHTML
| |
| + '<div class="portlet" id="p-nbx">'
| |
| + ' <h5>Boîte perso</h5>'
| |
| + ' <div class="pBody">'
| |
| + ' <ul>'
| |
|
| |
| + ' <li>Librairal</li>'
| |
|
| |
| + ' <li><a href="http://www.librairal.org/wiki/Utilisateur:Safeguard/common.js">common.js</a></li>' | |
| + ' <li><a href="http://www.librairal.org/wiki/Utilisateur:Safeguard/common.css">common.css</a></li>' | |
|
| |
| + ' <li>Général</li>'
| |
|
| |
| + ' <li><a href="http://www.librairal.org/wiki/Utilisateur:Safeguard/boite">Boites</a></li>'
| |
| + ' <li><a href="http://www.librairal.org/wiki/Utilisateur:Safeguard/brouillon">Brouillon</a></li>'
| |
| + ' </ul>'
| |
| + ' </div>'
| |
| + '</div> ';
| |
| }
| |
| }
| |
| addLoadEvent(nouvelleBoite);
| |
| | |
| //Ajout de boutons pour commenter les modifications courantes
| |
| function DeluxeSummary()
| |
| {
| |
| var sumLbl = document.getElementById("wpSummaryLabel")
| |
| if (sumLbl)
| |
| {
| |
| //élargissement boite de résumé
| |
| var sumInput = document.getElementById("wpSummary")
| |
| sumInput.style.width = "90%"
| |
|
| |
| var titles = new Array()
| |
| titles.push("+ ébauche")
| |
| titles.push("+ cat")
| |
| titles.push("+ image")
| |
| titles.push("+ interwiki")
| |
| titles.push("+ portail")
| |
| titles.push("- image")
| |
| titles.push("- lien ext")
| |
| titles.push("corr lien int")
| |
| titles.push("lien ext -> lien int")
| |
| titles.push("MeP")
| |
| titles.push("ortho/gram")
| |
| titles.push("retouches")
| |
| titles.push("ajInfo")
| |
| titles.push("rangmt")
| |
| titles.push("recat")
| |
| titles.push("PàS conservé")
| |
|
| |
| var inputs = new Array()
| |
| inputs.push("+ {{ébauche}}")
| |
| inputs.push("+ catégorie")
| |
| inputs.push("+ image")
| |
| inputs.push("+ liens interwiki")
| |
| inputs.push("+ portail")
| |
| inputs.push("- image manquante")
| |
| inputs.push("- lien externe")
| |
| inputs.push("correction lien interne")
| |
| inputs.push("conversion lien externe en lien interne")
| |
| inputs.push("mise en page")
| |
| inputs.push("correction orthographe/grammaire")
| |
| inputs.push("diverses retouches")
| |
| inputs.push("ajout d’infos")
| |
| inputs.push("rangement interwikis/catégories")
| |
| inputs.push("changement catégorie")
| |
| inputs.push("article listé sur PàS - retrait du bandeau (conservé)")
| |
|
| |
|
| |
| var str = ""
| |
| for (var cpt = 0; cpt < titles.length; cpt ++)
| |
| {
| |
| str += "<a href=\"javascript:addToSummary('" + inputs[cpt] + "')\""
| |
| + " class=\"sumLink\" title=\"Ajouter '" + inputs[cpt] +"' dans la boîte de résumé\">"
| |
| + titles[cpt]
| |
| + " ·</a> "
| |
| }
| |
| sumLbl.innerHTML = str + "<br />" + sumLbl.innerHTML
| |
| }
| |
| }
| |
|
| |
| addLoadEvent(DeluxeSummary)
| |
| | |
| //</nowiki></pre>
| |