Template:Deltab

{{documentation|content={{subst only}} This code will add an "X deletion" tab to your edit screen. When you press that tab, the following line will be automatically added to the page (using {{tlsp|deletion sorting}}):


 * Note: This debate has been included in the list of X-related deletion discussions. --  –

X is whatever topic area you have specified. For instance, if you selected "China," the line would be:


 * Note: This debate has been included in the list of China-related deletion discussions. --  –

This script only works for pages in the Wikipedia: namespace if they have "for discussion" or "for deletion" in their pagenames (for example, Articles for deletion or Categories for discussion).

Use
To use this script, add the following line to your monobook.js file and then clear your cache:

 X 

Replace X with your area of interest. Thus, if your area of interest is China, you would type:

 China 

Alternatively, you can add the above code to a different subpage of yours - the name does not matter, as long as it ends in .js - and then add this line to your monobook.js:

importScript('User:Your_user_name/name_of_page.js');

So, for instance, if you named the page "delsort.js" (and your username happened to be "Example"), you would add this to your monobook.js:

importScript('User:Example/delsort.js');

Save changes, flush your cache and you're ready to start tagging discussions!

Acknowledgments
Sources: User:RandyWang/autovgdeletion, User:Dinoguy1000/scripts/amdelsort.js and User:Dinoguy1000/scripts/delsort.js (with help from User:Ioeth) }}