Jump to content

User:Nageh/rollbackSum

From Wikipedia, the free encyclopedia

Installation

[edit]

Not fixed (yet):

To install the tool with the extra rollback summary button, add the following to your skin.js or common.js file, then bypass your cache:

importScript('User:Porchcorpter/rollback.js');

To install the tool that prompts a summary by using rollback, add the following to your skin.js or common.js file, then bypass your cache:

importScript('User:Nageh/rollbackSum.js');

Extra options

[edit]

To have any extra options, add the following codes to your skin.js or common.js, then bypass your cache.

To disable rollback links, copy the code below. The options are 'diff', 'history', 'user', 'recent', and 'watchlist'. Here is an example:

rollbackLinksDisable = [ 'history', 'user' ]

To add a custom summary, copy the code below. Here is an example of a custom summary:

rollbackSummaryDefault = "Reverted edits by [[Special:Contributions/$2|$2]] ([[User talk:$2|talk]]) to last version by $1"

Parameters/Usage

[edit]
  • $1 = The user who you are restoring
  • $2 = The user who you are reverting
  • $3 = The first diff you are reverting' ID number
  • $4 = The first diff you are reverting' time
  • $5 = The first diff you are reverting' date
  • $6 = Your diff's ID number
  • $7 = Your diff's time
  • $8 = Your diff's date

NOTE: You cannot put a blank rollback summary, because if you do, rollback will be canceled.