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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T14503, the corresponding Phabricator task for complete and up-to-date bug report information.
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
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

Comment 2 Carl Fürstenberg 2008-01-04 12:45:06 UTC
(In reply to comment #1)
> http://en.wikipedia.org/w/index.php?title=Byte&action=raw&section=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 http://lists.wikimedia.org/pipermail/mediawiki-api/2008-January/000334.html ), 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.


Navigation
Links