So far it is impossible to add microdata itemprop="photo" into the img tag which is generate by wrote [[File:Test.jpg]] in editor.
<img itemprop="photo" alt="Test.jpg" src="Test.jpg" width="250" height="250" srcset="Test.jpg 2x" />
Is it possible to add a function such as [[File:Test.jpg|microdata=photo]] to generate a img tag with itemprop="photo"?
<img itemprop="photo" alt="Test.jpg" src="Test.jpg" width="250" height="250" srcset="Test.jpg 2x" />
combine this function with template, millions page about people could be easily processed by software.
Version: 1.22.4
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=28776