Page MenuHomePhabricator

Document how to get the current contents of a page via the MediaWiki API
Closed, ResolvedPublic


Right now this information is spread across several somewhat obscure pages:

Not to mention the Page Content Service for Wikimedia wikis.

As this is one of the most common things that the MediaWiki API is used for, we should have a high-level documentation page that points developers in the right direction depending on their specific needs.

Acceptance criteria:

  • A page exists on called something like "API:Get the contents of a page"
  • This page describes the various options available for retrieving page content via the API, with examples, and either links off to more specific documentation or transcludes such documentation within the page.
  • The page is linked from

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
kaldari updated the task description. (Show Details)

I think it is better to put relevant information in the manual namespace.

No, because the Manual: is for configuration. The API: is for API stuff.

@jeropbrenda could this task be a microtask or part of the Outreachy project T232816? What do you think?

@srishakatux, @jeropbrenda - Agreed. This seems like a nice addition to T232816. Thank you!

@Dikshagupta99: Hi! You assigned this task to yourself a while ago. Are you still working (or plan to work) on this task? Is there anything that others could help with?

kaldari claimed this task.

I finished up the page and published it.

Change 736011 had a related patch set uploaded (by Sbailey; author: Sbailey):

[mediawiki/vendor@master] Bump parsoid to 0.15.0-a7

Change 736011 merged by jenkins-bot:

[mediawiki/vendor@master] Bump parsoid to 0.15.0-a7