Page MenuHomePhabricator

Add support for property-specific formatting of labels
Closed, ResolvedPublic

Description

For some data types (URLs in particular, but also some external identifiers), it will be important to support property-specific formatting rules when displaying the human-readable label for a given value.

With this feature in place, the user could enter an alphanumeric string value for a property like Instagram username, and see a live link to the appropriate web page upon saving.

If formatting rules already exist for a particular property, the Wikibase format value API action will apply them propertly. We just need to update some API calls and related logic.

Event Timeline

Change 553873 had a related patch set uploaded (by Eric Gardner; owner: Eric Gardner):
[mediawiki/extensions/WikibaseMediaInfo@master] Update FormatValueElement to support property-specific formatting rules

https://gerrit.wikimedia.org/r/553873

Ramsey-WMF subscribed.

Assigning to Cormac for another code review look.

Change 553873 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Update FormatValueElement to support property-specific formatting rules

https://gerrit.wikimedia.org/r/553873

Tested on Production with Twitter Username and Freebase ID, worked as expected.