Aller au contenu

Utilisateur:Dr Brains/LiveRC.js

Une page de Wikipédia, l'encyclopédie libre.
Note : après avoir enregistré la page, vous devrez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

Mozilla / Firefox / Konqueror / Safari : maintenez la touche Majuscule (Shift) en cliquant sur le bouton Actualiser (Reload) ou pressez Maj-Ctrl-R (Cmd-R sur Apple Mac) ;

Firefox (sur GNU/Linux) / Chrome / Internet Explorer / Opera : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5.
LiveRC_Config["LogEntries"] = {
    'move' :              {'move':'1movedto2', 'move_redir':'1movedto2_redir', 'move-noredirect':'', 'move_redir-noredirect':'' },
    'delete' :            {'delete':'deletedarticle', 'restore':'undeletedarticle'},
    'patrol' :            {'patrol':'patrol-log-diff'},
    'protect' :           {'protect':'protectedarticle', 'unprotect':'unprotectedarticle', 'modify':'modifiedarticleprotection'},
    'newusers':           {'newusers':'', 'create':'newuserlog-create-entry', 'create2':'newuserlog-create2-entry', 'autocreate':'newuserlog-autocreate-entry'},
    'upload' :            {'upload':'uploadedimage', 'overwrite':'overwroteimage'},
    'merge':              {},
    'block':              {},
    'rights':             {},
    'import':             {},
    'gblrights':          {},
    'gblblock':           {},
    'globalauth':         {},
    'renameuser':         {},
    'abusefilter':        {},
    'abuselog':           {},
    'thanks':             {},
    'articlefeedbackv5':  {},
    'massmessage':        {},
    'suppress':           {},
    'checkuser':          {},
    'pagetriage-curation':{},
    'pagetriage-deletion':{},
    'review':             {},
    'stable':             {},
    'online':             {},
    'campus':             {},
    'course':             {},
    'institution':        {},
    'instructor':         {},
    'student':            {},
    'student':            {},
    'translatorsandbox':  {},
    'translationreview':  {},
    'pagetranslation':    {},
    'notifytranslators':  {},
    'liquidthreads':      {},
    'mwoauthconsumer':    {},
    'moodbar':            {},
    'interwiki':          {}
}





















function getRevision_td3Content_LogCommentEntryText(rc){
  var type = rc.type;
  if(!LiveRC_Config["LogEntries"][type]) return false;
  var action = rc.action;
  if(!LiveRC_Config["LogEntries"][type][action]) return false;
  return LiveRC_Config["LogEntries"][type][action];
}


 
function getRevision_td3Content_LogComment(rc){
  var state = rc.state;
  var type = rc.type;
  var action = rc.action;
  var comment = "";
  var MSG = getRevision_td3Content_LogCommentEntryText(rc);
  if(!MSG) return ""
  var replaceItems = new Array();

  /* TODO */

  comment = lrcGetMediawikiMessage(MSG, true, replaceItems);

  return comment;
}