Requests for comment/Reimplement info action
Reimplement info action | |
---|---|
Component | General |
Creation date | |
Author(s) | MZMcBride |
Document status | implemented |
This is a request for comment regarding reimplementing the info action.
Background
[edit]The info action (?action=info
) has existed in MediaWiki since rev:4242. Since rev:4247, the action has been disabled by default behind the $wgAllowPageInfo
global variable due to performance issues.
Currently, to obtain the information that this proposed action would provide, a user needs to manually query the wiki database, query the MediaWiki API, or hunt down the appropriate MediaWiki Special page (e.g., Special:WhatLinksHere). Many of the proposed additions to the info action are currently completely unexposed in the MediaWiki interface, but these additions provide demonstrable value to readers, editors, and power editors.
Due to the info action being disabled by default in MediaWiki core, it has received very little attention since its introduction in 2004. The current output is below, using the English Wikipedia's w:Talk:Barack Obama page as an example.
Current design | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Information for "Talk:Barack Obama"
|
Reimplementation
[edit]The "info" action should provide human-readable metadata about a particular page title (e.g., "Main Page" or "Barack Obama"). Some of this data is a view into the page_props table; other data is simply interesting to editors and readers.
The data contained in this info dashboard will likely need to be split between expensive and inexpensive queries. For larger wikis, $wgMiserMode can be relied upon to block the expensive queries.
Inexpensive properties
[edit]- DEFAULTSORT value
- DISPLAYTITLE value
- (NO)INDEX status
- LiquidThreads status
- page protection status
- first edit timestamp
- page creator
- last edit timestamp
- most recent editor
- templates transcluded on this page
- hidden categories on this page
- magic word usage
- broken (red) links?
- file links
- category links
- page links
- etc.
- number of recent edits/authors
- page length (in bytes)
- page ID
- number of subpages (with link to Special:PrefixIndex)
- number of redirects to the title (with link to filtered Special:WhatLinksHere)
- number of watchers
- already implemented!
Expensive properties
[edit]- number of total edits
- number of unique contributors (anonymous and logged in)
- number of views (link to outside service?)
Action interface exposure
[edit]Currently the "info" action is not exposed in the user interface, regardless of the value of $wgAllowPageInfo (bugzilla:16362). A tab or a link in the sidebar in the "Toolbox" section should provide easy access to the "info" action.
Redesign
[edit]Action interface
[edit]- external tools or external links section
- header and footer messages
- remove talk page info
Mock-up
[edit]
Proposed redesign | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Information for "Talk:Barack Obama"
The following is an overview of the page "Talk:Barack Obama", as of 01:30, 22 July 2012 (UTC): Basic information
Edit history
Page properties
|
Plan
[edit]- File tracking bug about reimplementing the info action
- File bug about killing $wgAllowPageInfo and enabling the "info" action by default
- File (many) bugs about adding specific data to the action, as detailed above