Thread:Cqm/@comment-1158325-20130605033107/@comment-3335785-20130605094117

It looks good. A couple of suggestions though:


 * Check for  after    as the element isn't guaranteed to exist before.


 * Replace things like  with   as the former can be disabled with a backend value that we have no control over, and are meant to be disabled by default/removed in a later version of MediaWiki.


 * Why only look for file links if transclusions returns nothing?