Page MenuHomePhabricator

Make the inner image generate code support microdata itemprop="photo"?
Open, LowPublicFeature

Description

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

Details

Reference
bz63099

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:03 AM
bzimport set Reference to bz63099.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for sharing your idea. The bug title does not describe a bug but a solution or feature / new functionality. Hence setting priority to enhancement.

Which problem do you try to solve / what is the motivation for this?

Not sure if it's a good idea to add a bunch of possible attributes to all wikitext-generated tags. <meta> can always be used.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM