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
[edit]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
[edit]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.
The script can now be used on the WikiProject Persondata's List of biographies subpages, e.g. Wikipedia:WikiProject Persondata/List of biographies/1. As before click the Check for template link in the toolbox, and enter Persondata as the template. You will then be prompted to enter the number of the section of the page you want to check. These lists are broken up into 100 chunks per page, so enter a number between 1 and 100. Scroll down to the appropriate section, and those articles with persondata will have a tick in front of them, rather than a number.
Example
[edit]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
...