Take the 2-minute tour ×  I need to find out the template type
of a Wikipedia page entry. Up to this point, I've relied on
parsing the results from a query to Wikipedia, which works to a
point.  For instance, if I search for Joel Spolsky, I can regex
match 'infobox' and find out that this page refers to Infobox
Person.  But the trouble is, there is no consistent naming
scheme for Wikipedia template types, and 'infobox' is often not
used in the name of the template.  For instance, if I search for
the Pittsburgh Steelers I can't reliably find out a way to
extract the NFL team template from the results.  Is anyone aware
of a way to query the template type of a Wikipedia page? Thanks
:)  share|improve this question AFAIK, there is no such thing as
"the template type of a Wikipedia page". A page can contain many
independent, unrelated templates. –  Oli Charlesworth Feb 6 '11
at 22:53 add comment  2 Answers  The easiest way would be to
look at the categories of the page instead of the templates. For
example, Joel S