Accept comments in template targets

This fixes the parsing of pages like
https://fr.wikipedia.org/wiki/Coat_of_Arms.

Change-Id: Ie0ddc175fbbfb47dcd8e49aed3f4d0204a56bc70