ArticleInfo | |
---|---|
Description | Shows page information underneath the title. |
Author(s) | Terasail |
Status | Working |
First released | April 29, 2021 |
Updated | August 31, 2024 (3 months ago) |
Skins |
|
Source | User:Terasail/ArticleInfo.js |
Name | Total Users | Active Users | |
---|---|---|---|
ArticleInfo (source) | 14 | 5 |
This userscript displays page information at the top of the page, directly below the title. It has been based on the "XTools" gadget in preferences.
This script is designed to work on all wikis so that you can always track the page information on any wiki. However this will only work with the Vector 2022 or Vector legacy skins.
How to use
editLocal (English wiki)
editTo use this script on english wiki, add the following to your common.js page:
importScript('User:Terasail/ArticleInfo.js'); // [[User:Terasail/ArticleInfo]]
Global (All wikis)
editTo use this script on all wikis (Commons, Meta, Mediawiki...), add the following to your global.js page:
mw.loader.load("https://en.wikipedia.org/w/index.php?action=raw&title=User:Terasail/ArticleInfo.js&ctype=text/javascript"); // [[en:User:Terasail/ArticleInfo]]
Information
editPage information
editThe script will display a line of information below the title and above the Article/Talk/Read/Edit... toolbar. Which includes the following:
- The page wikiproject class, if it has one.
- The page protections in use.
- The number of revisions.
- The number of editors.
- The number of pageviews in the last 30 days.
- The number of page watchers (If more than 30).
- The page creation date in the form: DMY.
- The user who created the page.
- The username of the user who created the page.
- The number of edits the user has made.
- The user will also have the total number of user groups they are in.
A link to the xTools page information breakdown will be added to the actions section in the sidebar.
Example
editThe following is a recreation of how the information was shown at Hogwarts Legacy on 29 December 2023:
- 1,524 Revisions
- 435 Editors
- 134,921 Pageviews
- 123 Watchers
- Created 16 Sep 2020, by Salvidrim! (28,555 edits | 5 groups)
Classes
editThe page class will be displayed as a class icon if it has been given a wikiproject class. This will only work on en wiki, if a wikiproject banner is found but a class has not been given a questionmark icon will be displayed.
Page protection
editPage protection will be displayed by showing the appropriate padlock icon. These would be Semi / Extended / Template / Full .
If the page is move protected, will be shown (Green padlock) and will not relate to the specific move protection (Semi/Extended...). This is also the same for upload protected pages, except with (Purple padlock). If a page is cascade protected then (Turquoise padlock) will also be shown. This means a maximum of 4 protection icons can be shown at the same time.
- Pending changes can't be detected and therefore will not be shown.
- Creation protected pages will not be marked since the page does not exist.
Revisions
editThe revision counter will only be able to count up to 30,000 revisions and after that point it will just display "30,000 " since there are limited pages with that many revisions and it would just increase the loading time of the information bar.
Page creator information
editThe user who created the page will have their username displayed along with their edit count. Their username can be clicked to take you to their userpage. The number of user groups they are in will be shown (If they have any).
User links
editWithin the toolbar, a new section "User Information" will be created above the "General/Tools" section. This will move the existing links User conributions, User logs and View user groups links into this section as well as adding two more links, Global account and Open xTools. These links will be specific to the userpage that you have open. In addition, the edit count and list of user groups will be shown at the top of the page, inline with the title.
User example
editThe following is a recreation of how the information was shown at User:Terasail on 29 December 2023:
- 56 Revisions
- 3 Editors
- 441 Pageviews
- Created 25 Jun 2020, by Terasail (22,333 edits | 7 groups)
User groups list
editIf the user also has additional user groups they will be displayed in shortform:
- confirmed: "C"
- extendedconfirmed: "EC",
- reviewer: "PCR",
- rollbacker: "R",
- autopatrolled: "AP",
- autoreviewer: "AP",
- patroller: "P",
- filemover: "FM",
- extendedmover: "PM",
- accountcreator: "AC",
- eventcoordinator: "EvCo",
- templateeditor: "TE",
- ipblock-exempt: "IPE",
- abusefilter: "EFM",
- abusefilter-helper: "EFH",
- massmessage-sender: "MMS",
- sysop: "A",
- bureaucrat: "B",
- steward: "S",
- interface-admin: "IA",
- suppress: "O",
- checkuser: "CU",
- bot: "BOT",
- translationadmin: "TA",
- import: "IM",
- propertycreator: "PROP",
- gwtoolset: "GWT",
- transwiki: "TW",
- uploader: "U",
- centralnoticeadmin: "CNA",
- oauthadmin: "OAA",
- global-renamer: "GR",
- flood: "Fl",
- functioneer: "F",
- functionmaintainer: "M",
- wikifunctions-staff: "WFS",
- image-reviewer: "IR",
- upwizcampeditors: "UWC",
- machinevision-tester: "MVT"
Questions / Issues
editPlease leave any questions or issues on my talk page, Thanks.