https://bugzilla.wikimedia.org/show_bug.cgi?id=36987

--- Comment #5 from Brad Jorsch <[email protected]> 2012-05-21 
12:55:00 UTC ---
You'd have to somehow set up the conditions I mentioned: have namespace 0 be
case-insensitive on the first letter, and the target namespace have titles
beginning with a lowercase letter (i.e. the target namespace be case-sensitive,
or insert impossible titles into the database for the target namespace). 

Then you construct an API allpages query with an appropriate apfrom and aplimit
so that the continuation is supposed to be a page with a lowercase title, and
it will be output with an uppercase title instead.


For example, I just created a "Foo" namespace on my local test wiki with this
configuration:

$wgExtraNamespaces[500] = "Foo";
$wgExtraNamespaces[501] = "Foo_talk";
$wgCapitalLinkOverrides[500] = false;
$wgCapitalLinkOverrides[501] = false;

Then I created pages Foo:A through Foo:Z and Foo:a through Foo:z, and a query
like
http://localhost/w/api.php?action=query&list=allpages&apnamespace=500&apfrom=Y&aplimit=4
gives me a continuation of "C" rather than "c".

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to