Basic MediaWiki page template structure → array scraper

This is the basic building block of the server part, so I took my time to optimize performance on this one.