User talk:Dr pda/templatecheck.js
The purpose of this script is to allow you to tell at a glance which pages within a category contain a particular template. This can be used, for example, on Category:2007 deaths to see which articles already contain {{Persondata}}, or on Category:GA-Class biography articles to see which use the {{ArticleHistory}} template.
Installation
Add {{subst:js|User:Dr_pda/templatecheck.js}}
to your monobook.js, and save it.
After saving, you have to bypass your browser's cache to see the changes. Mozilla/Safari: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Internet Explorer: press Ctrl-F5, Opera/Konqueror: press F5.
Usage
Go to a category page, e.g. Category:2007 deaths, and click the Check for template link in the toolbox (below What links here). This will bring up a prompt asking you for the name of the template. Enter the template name without the namespace, i.e. Persondata, not Template:Persondata. (Note that the script will automatically capitalise the first letter of the template name for you). After a few seconds articles which contain the template will have a tick before their name, instead of a bullet.
Example
For example, checking for {{Persondata}} on Category:2007 deaths will give a result like:
A
- Benjamin Aaron
- Tayeb Abdallah
- Haidar Abdel-Shafi
- Abdul Majeed bin Abdul Aziz
- Norifumi Abe
- Pépé Abed
- Frankie Abernathy
- Tom Abraham
- Yehuda Meir Abramowicz
- Abdul Sattar Abu Risha
- Liliane Ackermann
- Bahaedin Adab
- Ladislav Adamec
- Clark Adams
- Adebayo Adefarati
...