Hey,
Anyone know of a simple way to get a list of links in a section of a page (prop=links for a section)?
Had a user wanting it for AWB, and I seem to remember either speaking to Roan about it, or someone else had a way to do it.. As I seem to remember the way suggested being quite long winded..
http://en.wikipedia.org/wiki/Wikipedia_talk:AutoWikiBrowser/Feature_requests #To_list_the_links_in_a_section_of_a_page
Thanks
Sam Reed (Reedy)
2009/6/17 Sam Reed sam@reedyboy.net:
Hey,
Anyone know of a simple way to get a list of links in a section of a page (prop=links for a section)?
There is no simple way. The hard way is to grab the section wikitext with prop=revisions&rvprop=content&rvsection=3 and run that through action=parse&prop=links. Since this solution parses the section wikitext every single time, it's probably not desirable for mass use.
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org