Note : après avoir enregistré vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

  • Firefox / Safari : Maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou pressez Ctrl-F5 ou Ctrl-R (⌘-R sur un Mac) ;
  • Google Chrome : Appuyez sur Ctrl-Maj-R (⌘-Shift-R sur un Mac) ;
  • Internet Explorer : Maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5 ;
  • Opera : Allez dans Menu → Settings (Opera → Préférences sur un Mac) et ensuite à Confidentialité & sécurité → Effacer les données d'exploration → Images et fichiers en cache.
importScript('User:Mirabel75/Searchbox.js');





{{Utilisateur:Zyephyrus/vector.js}}

//============================================================
// Lien vers les statistiques (copié sur M0tty)
//============================================================
function addArticleTrafficStatistics()
{
  var histo = document.getElementById("ca-history");
  if(histo)
  {
    var lien = document.createElement("a");
    var today = new Date();
    var annee = today.getYear() + 1900;
    var mois = new String(today.getMonth() + 1);
    if(mois.length < 2)
    {
      mois = "0" + mois;
    }
    lien.setAttribute("href", "http://stats.grok.se/fr.s/latest90/" + wgPageName);
    lien.appendChild(document.createTextNode("Stats"));
 
    var stats = document.createElement("li");
    stats.setAttribute("id", "ca-stats");
    stats.appendChild(lien);
 
    histo.parentNode.insertBefore(stats, histo.nextSibling);
  }
}
$(addArticleTrafficStatistics);







//============================================================
// Script pour long s
//============================================================
var server = mw.config.get('wgServer');
 
 
/**** Ajout au gadget long s *****/
var char_min = 'a-zéèàùâêîôûŷäëïöüÿçœæſ';
var char_maj = 'A-ZÉÈÀÂÙÊÎÔÛŶÄËÏÖÏŸÇŒÆ';
var char = char_min + char_maj;
 
var bw = '([^' + char + ']|^)';
var ew = '([^' + char + ']|$)';
 
self.typo_def_long_s_user = new Array(
    // La dernière ligne ne doit pas se finir par une ,
    bw + 'fous' +ew, '$1sous$2',
    bw + 'fécond', '$1second',
    bw + 'fuit', '$1suit',
    bw + 'furie' +ew, '$1sur le$2',
    bw + 'font' +ew, '$1sont$2',
    bw + 'confiant', '$1constant',
    bw + 'afs', '$1ass',
    'dahs', 'dans',
    bw + 'distince', '$1distinct',
    bw + 'fa' + ew, '$1sa$2',
 
    'fsque', 'fique'
);
/*** Fin du script long s ***/







/* Personnalisation */
/* transclusion */
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'Transclusion': {
          label: 'transclusion',
          filters: [ 'body.ns-0, body.ns-1' ],
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/6/6a/Nuvola_apps_icons.png',
          action: {type: 'encapsulate',
            options: { pre: "<pages index=",  post: " from= to= fromsection= tosection= header=1 />"
}}}}});});}

/* txt */
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'Paragraphe texte': {
          label: 'txt',
          filters: [ 'body.ns-0, body.ns-1' ],
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/4/4b/Button_class_text.png',
          action: {type: 'encapsulate',
            options: { pre: "<div class=text>",  post: "</div>"
}}}}});});}

/* ref */
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'Ref': {
          label: 'Ref',
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png',
          action: {type: 'encapsulate',
            options: { pre: "<ref>",  post: "</ref>"
}}}}});});}

/* références */
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'Ref_list': {
          label: 'Références',
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/6/64/Buttonrefvs8.png',
          action: {type: 'encapsulate',
            options: { pre: "Références",  post: "<references />"
}}}}});});}

/* blocage */
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'blocage': {
          label: 'Blocage',
          filters: [ 'body.ns-2, body.ns-3' ],
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/4/41/Octagon-warning-blue.png',
          action: {type: 'encapsulate',
            options: { pre: "{{compte bloqué", post: "}}"
}}}}});});}

/* blocage IP */
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'blocage ip': {
          label: 'Blocage ip',
          filters: [ 'body.ns-2, body.ns-3' ],
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/8/89/Octagon-warning.png',
          action: {type: 'encapsulate',
            options: { pre: "{{blocage ip", post: "}}"
}}}}});});}

/* tiret */
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'mdash': {
          label: 'mdash',
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/a/a2/Emdash-button-bg.png',
          action: {type: 'encapsulate',
            options: { pre: "—",  post: ""
}}}}});});}

/* séparateur */
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'séparateur 4em': {
          label: '',
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/b/b7/Sep4.png',
          action: {type: 'encapsulate',
            options: { pre: "\n\n{{sep4}}\n\n",  post: "\n\n"
}}}}});});}

/* accueil */
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'Bienvenue': {
          label: 'bienvenue',
          filters: [ 'body.ns-2, body.ns-3' ],
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/1/12/Button_accueilA.png',
          action: {type: 'encapsulate',
            options: { pre: "{{bv}}~~",  post: "~~"
}}}}});});}

/* test */
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'Test': {
          label: 'Test',
          filters: [ 'body.ns-2, body.ns-3' ],
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/5/55/Button_accueilC.png',
          action: {type: 'encapsulate',
            options: { pre: "{{test",  post: "}}"
}}}}});});}

/* titre en mode page */
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {$( function() {
    $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
      'section': 'advanced',
      'group': 'format',
      'tools': {'T3mp': {
          label: 't3mp',
          type: 'button',
          icon: 'http://upload.wikimedia.org/wikipedia/commons/7/78/Button_titre.png',
          action: {type: 'encapsulate',
            options: { pre: "{{t3mp|",  post: "}}"
}}}}});});}