title: Does the Wikipedia API support searches for a specific template?
body: <p>Is it possible to query the Wikipedia API for articles that contain a specific template? <a href="http://en.wikipedia.org/w/api.php" rel="noreferrer">The documentation</a> does not describe any action that would filter search results to pages that contain a template. Specifically, I am after pages that contain <code>Template:Persondata</code>. After that, I am hoping to be able to retrieve just that specific template in order to populate genealogy data for the <a href="http://openancestry.org" rel="noreferrer">openancestry.org</a> project.</p>
  
  <p>The query below shows that the Albert Einstein page contains the Persondata Template, but it doesn't return the contents of the template, and I don't know how to get a list of page titles that contain the template.
  <a href="http://en.wikipedia.org/w/api.php?action=query&amp;prop=templates&amp;titles=Albert%20Einstein&amp;tlcontinue=736|10|ParmPart" rel="noreferrer">http://en.wikipedia.org/w/api.php?action=query&amp;prop=templates&amp;titles=Albert%20Einstein&amp;tlcontinue=736|10|ParmPart</a></p>
  
  <p>Returns:</p>
  
  <pre><code>&lt;api&gt;
   &lt;query&gt;
    &lt;pages&gt;
     &lt;page pageid="736" ns="0" title="Albert Einstein"&gt;
      &lt;templates&gt;
       ...
       &lt;tl ns="10" title="Template:Persondata"/&gt;
       ...
      &lt;/templates&gt;
     &lt;/page&gt;
    &lt;/pages&gt;
   &lt;/query&gt;
   &lt;query-continue&gt;
    &lt;templates tlcontinue="736|10|Reflist"/&gt;
   &lt;/query-continue&gt;
  &lt;/api&gt;
  </code></pre>
  
  <p>I suspect that I can't get what I need from the API, but I'm hoping I'm wrong and that someone has already blazed a trail down this path.</p>