User:Utcursch/Migrate Infobox Indian Jurisdiction to Infobox settlement

Back in 2011, it was decided that {{Infobox Indian jurisdiction}} would be deleted, since {{Infobox settlement}} makes it redundant. This script aims to make the migration from {{Infobox Indian jurisdiction}} to {{Infobox settlement}} easier.

Installation

edit

To install this script, add the following code to your user script page:

migrateIIJ = { auto_replace: true };
importScript('User:Utcursch/Migrate Infobox Indian Jurisdiction to Infobox settlement/main.js');

Save and bypass your cache (Ctrl + F5 for most browsers).

Next time you edit a page, the script will search for {{Infobox Indian jurisdiction}} and replace it with {{Infobox settlement}}.

Note

edit

If you do not want the script to automatically replace the infobox, use the following code:

migrateIIJ = { auto_replace: false };
importScript('User:Utcursch/Migrate Infobox Indian Jurisdiction to Infobox settlement/main.js');

This will add a link at the top of the page (visible only in the editing mode). Clicking on it will replace {{Infobox Indian jurisdiction}} with {{Infobox settlement}}.