Template, Images, References: Use attributeContains selector for typeof attribute

The typeof attribute that we rely based on
https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec may not be a single
string value. For exammple typeof="mw:Extension/indicator mw:Transclusion"
is a valid and usually occuring value in the Parsoid HTML output.

So use attributeContains selector [typeof*=value] to avoid missing to
detect templates, images and references

Search for typeof="mw:Extension/indicator mw:Transclusion" in
http://parsoid.wmflabs.org/frwiki/France to see an example

Change-Id: Ie946fa3f7d5098a61129de732cf468dd15f87073