Open sharnett opened 12 years ago
One way to check if it's a disambifuation page is to query section = 0, titles = "section" for the line of text "may refer to" which accompanies most (check!) disambiguation pages. So for the case of "burger" see http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&rvsection=0&titles=burger&format=json
Example: burger
The wiki text we put into the presentation is garbage for these. Ideally we'd be able to recognize that it's a disambiguation page and follow the first link or something