Please make [[Special:ProtectedTitles]] available with API.
A possibility: Add "create" to param "apprtype" from "list=allpages"
Version: unspecified
Severity: enhancement
Please make [[Special:ProtectedTitles]] available with API.
A possibility: Add "create" to param "apprtype" from "list=allpages"
Version: unspecified
Severity: enhancement
(In reply to comment #0)
Please make [[Special:ProtectedTitles]] available with API.
A possibility: Add "create" to param "apprtype" from "list=allpages"
That won't work, since create-protected pages usually don't exist.
(In reply to comment #1)
(In reply to comment #0)
Please make [[Special:ProtectedTitles]] available with API.
A possibility: Add "create" to param "apprtype" from "list=allpages"
That won't work, since create-protected pages usually don't exist.
But when list this page, it can have the missing-flag. The same way by using prop=info and inprop=protection (http://de.wikipedia.org/w/api.php?action=query&prop=info&inprop=protection&titles=Benutzer:Raymond/sperre)
It was only a possibility. In my opinion it is the best way, because it is easy for the user of a API to have all protectionlevel at one point and can create the query he need. I see there no inconsistency, because list=allpages lists all defined pagetitles. The one are defined by a exists page, the other by a protection. (The next step is the "WantedPages", because the pagetitle is defined by a link.)
I hope the bug can realize in any way.
(In reply to comment #2)
(In reply to comment #1)
(In reply to comment #0)
Please make [[Special:ProtectedTitles]] available with API.
A possibility: Add "create" to param "apprtype" from "list=allpages"
That won't work, since create-protected pages usually don't exist.
But when list this page, it can have the missing-flag. The same way by using
prop=info and inprop=protection
(http://de.wikipedia.org/w/api.php?action=query&prop=info&inprop=protection&titles=Benutzer:Raymond/sperre)
That's a possibility, but it violates the principle of list=allpages: listing all pages that exist. apprtype and similar parameters should limit the list, not expand it.
It was only a possibility. In my opinion it is the best way, because it is easy
for the user of a API to have all protectionlevel at one point and can create
the query he need. I see there no inconsistency, because list=allpages lists
all defined pagetitles. The one are defined by a exists page, the other by a
protection. (The next step is the "WantedPages", because the pagetitle is
defined by a link.)
The WantedPage query is quite expensive, and probably won't be accepted into the API for performance reasons.
I hope the bug can realize in any way.
I'll think about this over the holidays; I won't be able to do much until January.