User talk:Harin4wiki
This is Harin4wiki's talk page, where you can send them messages and comments. |
|
Re: How can I get ... through exapndtemplates API in various languages ?
[edit]I saw the question you asked at Wikipedia:Village pump (technical)/Archive 117. The page you posted on is an archive of old discussions; it should not be used for active discussion. Archives are not watched by many people, so you are less likely to get a response when posting to an archive. I have removed your post.
I'll have a go at answering your question, though I'm not sure my answer is quite what you want. Many languages of Wikipedia have tens of thousands of templates, so getting a list of all of them for all languages will take a while. Using the web interface, you can get a list of all templates for the English Wikipedia at Special:AllPages/Template:. The same page name will work on any language of Wikipedia (e.g. French, German, Welsh, etc). You can't get the list on one page; you'll need to follow the "Next page" link hundreds of times to browse the whole list.
It's also possible to get the list of templates using API:Allpages. E.g. http://en.wikipedia.org/w/api.php?action=query&list=allpages&apnamespace=10&aplimit=50&continue=&format=xmlfm will return the templates on the English Wikipedia 50 at a time. You need to make a separate request for each batch of results; see mw:API:Query#Continuing queries for details. You can increase the number of results per request by changing the aplimit=
parameter in the URL; the maximum is 500 at a time. en.wikipedia.org will only return results for the English Wikipedia, of course. Replace with fr.wikipedia.org for the French Wikipedia, de.wikipedia.org for the German one, etc.
If the above is not sufficient for you or you have more questions, I suggest you start a new section at the main Wikipedia:Village pump (technical) page. You can add a section link to the archived discussion to make it easier for others to find and read the previous discussion. – PartTimeGnome (talk | contribs) 22:10, 16 October 2013 (UTC)
Thanks for the detailed answer. I will search through the templates for the ones I need. But this is good. --Harin4wiki (talk) 06:34, 17 October 2013 (UTC)