Last modified: 2014-11-18 23:28:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T75332, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73332 - Add fallback classes for information fields in TemplateParser
Add fallback classes for information fields in TemplateParser
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
CommonsMetadata (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-12 22:32 UTC by Guillaume Paumier
Modified: 2014-11-18 23:28 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Guillaume Paumier 2014-11-12 22:32:47 UTC
TemplateParser currently looks for classes for license templates, and IDs for information fields, because that's how most of the information is organized on Commons.

Now that we're in the process of spreading machine-readable to as many files as possible on Commons and all other wikis with file uploads, we're running into situations where the information template isn't necessarily built with a table (example: https://commons.wikimedia.org/wiki/Template:Audio_upload ). The table+ID approach doesn't work for those.

It would be great if TemplateParser could look for regular classes, in addition to IDs, when looking for information-like data. From a user perspective, it would be simpler if the classes had the same name as the IDs, but if it's not possible / preferable from a development standpoint, it's not a big problem.
Comment 1 Guillaume Paumier 2014-11-18 23:28:37 UTC
In addition to templates not using tables, classes would also be useful for templates that do use tables but whose cells already have IDs, like [[w:Template:Non-free media data]].

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links