Last modified: 2007-09-26 16:12:40 UTC
hello, it should be very useful that api.php can load only a section of wikitext like index.php can do : index.php?title=titleOfThePage&action=edit§ion=nSection something like action=query&prop=revisions&rvprop=content&titles=wgTitle§ion=nSection ?
This could be quite problematic when loading content from a page's revisions over time. In particular, section numbers are determined based upon the placement of the sections within the current revision. In previous revisions, the section referred to may not exist or there may have been other sections previous to it that would effect the numbering of the section. For one revision, this should be do-able; however, I think it's best implemented not as a feature of the API but rather as a function of "action=raw". For instance, http://en.wikipedia.org/w/index.php?title=Chad&action=raw§ion=1 (which doesn't work at the moment) could provide you with the contents of the "History" section.
Committed r26142 which enables the retrieval of the raw content of a section of a page via action=raw; e.g. http://en.wikipedia.org/w/index.php?title=Chad&action=raw§ion=1 now works. I think this should suffice.
the raw fits my need perfectly (absolutely nothing to strip above all) so it's even better than i expected with api.php, thanks.(In reply to comment #2) > Committed r26142 which enables the retrieval of the raw content of a section of > a page via action=raw; e.g. > http://en.wikipedia.org/w/index.php?title=Chad&action=raw§ion=1 now works. > I think this should suffice.