User:Whiteknight/Tester Gadget
From Wikibooks, open books for an open world
Type in the name of a book to gather information about the page.
Contents |
[edit] How to Install
To install, add these lines to your personal javascript:
import_script('User:Whiteknight/gadgetscore.js');
import_script('User:Whiteknight/pagetester.js');
Your personal Javascript page is most likely located at "User:<YOUR USER NAME>/monobook.js" Go to that page and copy+paste the above line of code and click Save Page.
Once you save your javascript, you will need to perform a hard reset, typically by pressing Ctrl + F5, or some other key combination.
- This script is tested to work with Internet Explorer 7
- This script is tested to work with Internet Explorer 6
- This script is tested to work with Fire Fox
- This script is not tested in Safari
- This script is not tested in Opera
- Browsers not listed here have not been tested or are known not to work
[edit] About This Gadget
This gadget displays information about the target page. It can determine:
- Whether the page exists or not
- Whether the page is a redirect, and if so, to where
It counts:
- The number of characters in the page
- the number of "words" in the page (words are non-space chunks of text, such as numbers or symbols)
- The number of templates used
- The number of categories used (but not categories used through template inclusion)
- The number of links used
It lists:
- Templates used in the page
- Categories used in the page (but not transcluded)
- Links on the page
[edit] To Do:
- Handle nested templates correctly (currently does not)
- Determine if the page has been tagged with specific templates (delete, vfd, merge, query, etc)
- sort links and remove duplicates (sort of works)
- Make sure that categories arent counted as links (they are sometimes)
[edit] Version History
- 2.01 Added support for IE
- 2.00 Rewrote using new gadgetscore.js
- 1.30 Added link to book in the results, added word count, added list of links
- 1.20 Added list of categories, fixed redirect handling
- 1.10 Added list of templates
- 1.01 refactored template and javascript
- 1.00 First stable version