Page MenuHomePhabricator

Create syntax documentation page for Special:PageData
Open, Needs TriagePublic

Description

Special:PageData introduced in T163923, seem great, but I could not find any documentation of this new feature explaining how to use it. For example I was trying to figure out if it can be used to get width and height of the images on Commons, EXIF data or URL of the actual raw file.

Event Timeline

Jarekt created this task.Jun 23 2017, 2:17 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 23 2017, 2:17 PM
Rical added a subscriber: Rical.Jun 25 2017, 4:46 PM

Are PageData interactive? Any modules can read them.
But some modules could update statistics in them, or could list called pages for 3 days.
Some modules could register their versions to help Lua coders to manage modules versions and their use.

Rical added a comment.EditedMay 30 2018, 5:25 AM

Where to find a very simple example of use of PageData in Lua?
Could you create a such example, with create, read and write datas ? Thanks in advance.

daniel added a subscriber: daniel.Jan 8 2019, 2:51 PM

Special:PageData is intended to provide a canonical way to get the raw content of a page, in machine readable form. The syntax depends on the page's content model - on most pages, it will be WikiText. Note that raw content is different from the page's meta-data. In case of media files, this line is somewhat blurry. EXIF data is currently treated as meta-data, not content. And the actual media blob is treated as a raw file, not page content either. Both could potentially be treated as page content in the future, but there are no concrete plans for this.

For more information, see T163921: [Epic] Implement canonical data URLs for machine readable page content.

Rical added a comment.Jan 9 2019, 10:28 AM

You have well advanced on PageData, but I don't find a very simple example. Could you give us a link to it? Thanks in advance.