2012/9/13 Gunaratna, Dalkandura Arachchige Kalpa Shashika Silva <[email protected]>: > Hi Masti, > Thank you for the reply. As I see and searched in the API, there is no way > that I can get the template extraction through the API. So what I am thinking > is to get the list of templates through API as follows for Amoxicillin. > > http://en.wikipedia.org/w/api.php?action=query&prop=templates&titles=Amoxicillin > > But I do not see the template "Template:Cell_wall_disruptive_antibiotics" as > you mentioned in the last e-mail. I expected prop=templates query would give > me all the properties in the wiki page. Then select the appropriate template > to get external links using API as follows.
Try https://en.wikipedia.org/w/api.php?action=query&prop=templates&titles=Amoxicillin&tllimit=max, with tllimit=max. (max = 500 for non-bots) -- Matma Rex _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
