Last modified: 2012-04-08 13:12:14 UTC
It can be nice to use the pageid, when editing a existing page with the api. (action=edit) Please make it possible to edit a page when specifiy the pageid not the page title. Thanks.
Created attachment 10039 [details] API edit by page ID This patch should let you edit through the API by providing a page ID instead of a page title.
I can haz use case?
(In reply to comment #2) > I can haz use case? I've given up asking. It's useful for long and strange titles...
Created attachment 10040 [details] API edit by page ID I previously forgot to add to getPossibleErrors.
Created attachment 10043 [details] Slightly change in how I did this Looks like I'm going to have to correct myself again. :/ This patch is almost the same thing as the previous one, but using getRequireOnlyOneParameterErrorMessages instead, and without my unnecessary else statement.
Usecase: Computer can better handle numbers than text. The title can get long and can have UTF-8, which makes some programms problems. You can save bandwidth, heap space, need no urlencode for this part. For languages with variants you does not have to handle that and it is easy to check, if the title is the same. In my opinion there are many usecases for using a pageid rather a namespace-prefixed title.
Commited in https://gerrit.wikimedia.org/r/4368