michalbe / wiki-infobox

Simple Wikipedia infobox scraper
https://github.com/michalbe/wiki-infobox
MIT License
16 stars 8 forks source link

Handle templates #44

Open michalbe opened 9 years ago

michalbe commented 9 years ago

There are plenty of templates in Wikipedia that we don't support so far. For instance field that contains {{flag|Poland}} is threated as simple text for now. It should return the template's content with proper type.

More information on templates can be find here, the most important part is probably this sentence: {{templatename}} is replaced by the content of the page "Template:templatename". Also in related SO question.

This is probably a huge umbrella issue for small templates support patches. We should create issue for every type of template and solve it individually, tracking changes in here. Templates I found so far:

Every new bug related to templates should be added to the Templates milestone and the list above.