Name Sequencer helps creating long lists of files' or articles' names differing only by its numbers. Done lists are easy to use with such scripts are AjaxBatchDelete and AjaxBatchUndelete.
Installation
Usage
After the script is installed, a link leading to the blank page will appear in My Tools menu. Name Sequencer will build a special page interface and will be ready to work.
The interface consists of two pieces. The first one is settings. They have some fields for data that will be used in list creation. It isn't necessary to fill all of them, except the "Max number" field.
- Namespace is a namespace of the page is specified here. You need to write it with colon like
File:. - Name: this field keeps the text locating at the page number's left. For example, if you have a pattern
File:Foo #n.png, you need to write onlyFoo #. - Max number will be a last number in our sequence. It's default value is 10.
- Suffix: unlike "Name", this field keeps only right part of page's name. For example,
File:Foo #n.pngdoesn't have right part, so you don't need to write anything here. - Extension is a string of file's extension with point sign. So if you make a list of articles, you don't need to fill this field.
- Count from zero? is a checkbox. If it's checked, the count starts from zero, else it begins from one.
When you done with settings, click the "Generate!" button, and your list will appear in a big textarea below.
The second part of the page is an "Find and Replace" tool. It consists of two fields and a button applying the edits. The first field takes text that should be found, and the second one takes the new text.
Let's consider an example. You need to make a list of 15 titles which pattern is File:Sample (n) new version.jpg, where n is a number of entry. Fill in the settings with these values corresponding to the fields: File:, Sample (, 15, ) new version, and .jpg, and click the button. Here's the result:
File:Sample (1) new version.jpg File:Sample (2) new version.jpg File:Sample (3) new version.jpg ... File:Sample (15) new version.jpg