On Wed, Oct 10, 2012 at 02:34:14PM -0700, Roan Kattouw wrote:
On Wed, Oct 10, 2012 at 2:15 PM, Brian Keegan bkeegan@gmail.com wrote:
(2) count only the links occurring in the body and not parsing the links in templates.
You would have to do some kind of processing of your own to get this information.
Since you're dealing with articles you shouldn't have to worry much about parser functions within the actual body text, so you should be able to get a decent approximation by just removing/replacing "{{" throughout the wikitext and then passing it to action=parse&prop=links. That would miss cases like {{see also|Foo}} which generates a link to Foo that isn't entirely due to the template, but it might be enough for your purposes.