PageMetrics fetches QueryPage data and displays them at the top of the page if they apply
Installation
Supported metrics
- Uncategorized pages
- Pages with the fewest revisions
- Orphaned pages
- Long pages
- Dead-end pages
- Pages with the most categories
- Pages with the most interwikis
- Most linked-to pages
- Pages with the most revisions
- Short pages
- Oldest pages
Roadmap
- Thresholds
- Metric todos
Configuration
Ways to configure
Configuration via JavaScript
- Stored in
window.dev.pageMetricsConfig - Must be set before the import of the script file
- Contra: Has to go through the JavaScript review process
Configuration via JSON
- Stored in MediaWiki:Custom-Page-Metrics-Config.json (can be changed via
configPageconfig option) - Pro: Doesn't have to go through the JavaScript review process
Configuration variables
| variable | Description | Type | Possible values | Availability |
|---|---|---|---|---|
configPage
|
Use a different page to store your JSON config than MediaWiki:Custom-Page-Metrics-Config.json | string
|
n/a |
|
excludeUserGroups
|
List of user groups for whom PageMetrics will not be displayed (can be combined with includeUserGroups)
|
string[]
|
see of groups List of groups (+ "anon")
|
|
includeUserGroups
|
List of user groups for whom PageMetrics will be displayed (can be combined with excludeUserGroups)
|
string[]
|
see of groups List of groups (+ "anon")
|
|
Text above can be found here (edit)