Last modified: 2011-04-14 15:13:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12503 - &action=raw to allow the raw for just a named section to be returned
&action=raw to allow the raw for just a named section to be returned
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-01-04 12:42 UTC by FT2
Modified: 2011-04-14 15:13 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Comment 2 Carl Fürstenberg 2008-01-04 12:45:06 UTC
(In reply to comment #1)

ok, you where a bit too fast here :)

Roan: get on IRC ffs!
Comment 3 FT2 2008-01-04 12:58:28 UTC
Apologies for reopening, the request being that at present you need a lookup of "section name" -> "section number" to get the raw text of a section.

The request wasn't that you cannot get the raw of a section if you know the section number; it's that if you are passed a section name it's much harder to get the raw text of it, and the natural syntax "title=PAGE#SECTION&action=raw" would be useful if easy.

Again sorry for reopening, but thinking perhaps the question was misunderstood.
Comment 4 Roan Kattouw 2008-01-04 13:01:17 UTC
That's because the # is a reserved character. You're right that there should be a way to retrieve sections by name. The syntax you're suggesting can't be used, however.
Comment 5 Brion Vibber 2008-01-04 18:14:12 UTC
Section lookups by name should be possible from the parsed output; I'm not sure offhand if we have that much detail conveniently in an array in the output object or if that'll have to be added.
Comment 6 Roan Kattouw 2008-02-01 15:24:34 UTC
This could potentially be done by first getting the section tree through the API (see ), then requesting the section's content by number (action=raw&section=3).

Note You need to log in before you can comment on or make changes to this bug.